Add the file sharing bits
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index fe1a227d317649f52398565881edbce715e7c998..ffd3d7d00a1252cc60ca1280269977a7f1f2b36e 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -22,6 +22,7 @@
 #include "arch/arch.h"
 #include "os/os.h"
 #include "mutex.h"
+#include "sem.h"
 #include "log.h"
 #include "debug.h"
 
@@ -309,6 +310,13 @@ struct fio_file {
 
        unsigned long long last_pos;
 
+       /*
+        * if io is protected by a semaphore, this is set
+        */
+       struct fio_sem *sem;
+       void *sem_owner;
+       unsigned int sem_batch;
+
        /*
         * block map for random io
         */
@@ -407,6 +415,8 @@ struct thread_options {
 
        unsigned int nr_files;
        unsigned int open_files;
+       unsigned int lockfile;
+       unsigned int lockfile_batch;
 
        unsigned int odirect;
        unsigned int invalidate_cache;