Android: Enable the 'sg' engine
[fio.git] / file.h
diff --git a/file.h b/file.h
index 493ec04a6677e90f6c0d0182e0b082b31302451f..da1b894706a64227af9a484d760fadc79edcd0d5 100644 (file)
--- a/file.h
+++ b/file.h
@@ -126,12 +126,14 @@ struct fio_file {
        unsigned int last_write_idx;
 
        /*
-        * For use by the io engine for offset or private data storage
+        * For use by the io engine to store offset
         */
-       union {
-               uint64_t engine_pos;
-               void *engine_data;
-       };
+       uint64_t engine_pos;
+
+       /*
+        * For use by the io engine for private data storage
+        */
+       void *engine_data;
 
        /*
         * if io is protected by a semaphore, this is set
@@ -207,6 +209,7 @@ extern "C" {
 extern int __must_check generic_open_file(struct thread_data *, struct fio_file *);
 extern int __must_check generic_close_file(struct thread_data *, struct fio_file *);
 extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *);
+extern int __must_check generic_prepopulate_file(struct thread_data *, struct fio_file *);
 #ifdef __cplusplus
 }
 #endif