FIO_CPUIO = 1 << 1, /* cpu burner, doesn't do real io */
FIO_MMAPIO = 1 << 2, /* uses memory mapped io */
FIO_RAWIO = 1 << 3, /* some sort of direct/raw io */
- FIO_NETIO = 1 << 4, /* networked io */
- FIO_NULLIO = 1 << 5, /* no real data transfer (cpu/null) */
+ FIO_DISKLESSIO = 1 << 4, /* no disk involved */
+ FIO_SELFOPEN = 1 << 5, /* opens its own devices */
};
/*
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 *);
/*