X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=file.h;h=e646cf22f6b7ec184fe4fb6ab94f8fb5918cb76e;hb=acbda87c34c743ff2d9e125d9539bcfbbf49eb75;hp=faf65a2a013846fb716f0b80403d6549b90120d2;hpb=1487c122c651191b34d8f0b2ac1c6ee5cd343874;p=fio.git diff --git a/file.h b/file.h index faf65a2a..e646cf22 100644 --- a/file.h +++ b/file.h @@ -126,12 +126,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 @@ -199,6 +201,7 @@ struct thread_data; extern void close_files(struct thread_data *); extern void close_and_free_files(struct thread_data *); extern uint64_t get_start_offset(struct thread_data *, struct fio_file *); +extern int __must_check setup_shared_file(struct thread_data *); extern int __must_check setup_files(struct thread_data *); extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *); #ifdef __cplusplus