Allow profiles to override internal io_u functions
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 23e007b863550a10931cbf0d02addc5e4d20bd90..751fc3d18ecc8d59c1de03fac09501de6c8c53ef 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -426,6 +426,12 @@ struct thread_data {
         */
        unsigned int total_err_count;
        int first_error;
+
+       /*
+        * Can be overloaded by profiles
+        */
+       int (*fill_io_u_off)(struct thread_data *, struct io_u *);
+       int (*fill_io_u_size)(struct thread_data *, struct io_u *);
 };
 
 /*