X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=file.h;h=da1b894706a64227af9a484d760fadc79edcd0d5;hb=HEAD;hp=5e2ef99851a2f33308c4cb96a8bcf7af64923233;hpb=6081231af0fd6b15e88b5ba0189e10695e366ec0;p=fio.git diff --git a/file.h b/file.h index 5e2ef998..e38ed2f1 100644 --- a/file.h +++ b/file.h @@ -12,6 +12,7 @@ /* Forward declarations */ struct zoned_block_device_info; +struct fdp_ruh_info; /* * The type of object we are working on @@ -101,6 +102,9 @@ struct fio_file { uint64_t file_offset; uint64_t io_size; + struct fio_ruhs_info *ruhs_info; + struct fio_ruhs_scheme *ruhs_scheme; + /* * Zoned block device information. See also zonemode=zbd. */ @@ -126,12 +130,14 @@ struct fio_file { unsigned int last_write_idx; /* - * For use by the io engine for offset or private data storage + * For use by the io engine to store offset */ - union { - uint64_t engine_pos; - void *engine_data; - }; + uint64_t engine_pos; + + /* + * For use by the io engine for private data storage + */ + void *engine_data; /* * if io is protected by a semaphore, this is set @@ -207,6 +213,7 @@ extern "C" { extern int __must_check generic_open_file(struct thread_data *, struct fio_file *); extern int __must_check generic_close_file(struct thread_data *, struct fio_file *); extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *); +extern int __must_check generic_prepopulate_file(struct thread_data *, struct fio_file *); #ifdef __cplusplus } #endif @@ -231,5 +238,6 @@ extern void fio_file_reset(struct thread_data *, struct fio_file *); extern bool fio_files_done(struct thread_data *); extern bool exists_and_not_regfile(const char *); extern int fio_set_directio(struct thread_data *, struct fio_file *); +extern void fio_file_free(struct fio_file *); #endif