Add file locking hooks
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index ca35ffcd5e7884c8fce02f9ad741b45bb8a67e10..6b8ffe29512bffe563a28263e7bbebb1bd50cd67 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -306,7 +306,6 @@ struct fio_file {
        unsigned long long io_size;
 
        unsigned long long last_pos;
-       unsigned long long last_completed_pos;
 
        /*
         * block map for random io
@@ -809,6 +808,8 @@ extern int __must_check generic_close_file(struct thread_data *, struct fio_file
 extern int add_file(struct thread_data *, const char *);
 extern void get_file(struct fio_file *);
 extern int __must_check put_file(struct thread_data *, struct fio_file *);
+extern void lock_file(struct thread_data *, struct fio_file *);
+extern void unlock_file(struct fio_file *);
 extern int add_dir_files(struct thread_data *, const char *);
 extern int init_random_map(struct thread_data *);
 extern void dup_files(struct thread_data *, struct thread_data *);