Fix multithread issues when operating on a single shared file
[fio.git] / file.h
diff --git a/file.h b/file.h
index da1b894706a64227af9a484d760fadc79edcd0d5..e646cf22f6b7ec184fe4fb6ab94f8fb5918cb76e 100644 (file)
--- a/file.h
+++ b/file.h
@@ -201,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