Make profile io op overrides a dedicated structure
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 7eb02ad42dbbb9b66f7569ff6f82f34a6f2cf17d..09cd01cdcf6a17fccc627ec1261eb048e5c6ab68 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -29,6 +29,8 @@
 #include "ioengine.h"
 #include "iolog.h"
 #include "helpers.h"
+#include "options.h"
+#include "profile.h"
 
 #ifdef FIO_HAVE_GUASI
 #include <guasi.h>
@@ -425,6 +427,11 @@ struct thread_data {
         */
        unsigned int total_err_count;
        int first_error;
+
+       /*
+        * Can be overloaded by profiles
+        */
+       struct prof_io_ops prof_io_ops;
 };
 
 /*
@@ -539,7 +546,7 @@ extern void options_mem_free(struct thread_data *);
 extern void td_fill_rand_seeds(struct thread_data *);
 extern void add_job_opts(const char **);
 #define FIO_GETOPT_JOB         0x89988998
-#define FIO_NR_OPTIONS         128
+#define FIO_NR_OPTIONS         (FIO_MAX_OPTS + 128)
 
 /*
  * ETA/status stuff