X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=dd1fc62b1d5e2f08378ba9563d996c62449a0d6d;hp=4eabfbcb162f8f298389bb631759670414dc56ce;hb=37e974a5eed8aafc6fc865b57e803837eebd3509;hpb=9728ce37ea4348d4bdb2eefbaafee75ad651758c diff --git a/fio.h b/fio.h index 4eabfbcb..dd1fc62b 100644 --- a/fio.h +++ b/fio.h @@ -214,8 +214,8 @@ enum fio_ioengine_flags { 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 */ }; /* @@ -296,6 +296,7 @@ struct thread_data { 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; @@ -618,6 +619,8 @@ extern int __must_check init_random_state(struct thread_data *); 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 *); /*