TD_DDIR_RAND = 1 << 2,
TD_DDIR_RW = TD_DDIR_READ | TD_DDIR_WRITE,
TD_DDIR_RANDREAD = TD_DDIR_READ | TD_DDIR_RAND,
- TD_DDIR_RANDWRITE = TD_DDIR_WRITE | TD_DDIR_READ,
+ TD_DDIR_RANDWRITE = TD_DDIR_WRITE | TD_DDIR_RAND,
TD_DDIR_RANDRW = TD_DDIR_RW | TD_DDIR_RAND,
};
FIO_RAWIO = 1 << 3, /* some sort of direct/raw io */
FIO_DISKLESSIO = 1 << 4, /* no disk involved */
FIO_SELFOPEN = 1 << 5, /* opens its own devices */
- FIO_NULLIO = 1 << 6, /* no real data transfer (cpu/null) */
};
/*
char *name;
char *directory;
char *filename;
- char verror[80];
+ char verror[128];
pthread_t thread;
int thread_number;
int groupid;
enum fio_filetype filetype;
struct fio_file *files;
unsigned int nr_files;
+ unsigned int nr_open_files;
unsigned int nr_uniq_files;
union {
unsigned int next_file;
extern void close_files(struct thread_data *);
extern int __must_check setup_files(struct thread_data *);
extern int __must_check open_files(struct thread_data *);
+extern int open_file(struct thread_data *, struct fio_file *, int, int);
+extern void close_file(struct thread_data *, struct fio_file *);
extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *);
/*