ci: Verify the Android build
[fio.git] / ioengines.h
index fbe52fa4154978f2a9e6a33b586714b9b0c9c41d..fafa1e48186c15f2010f68310122127616651aad 100644 (file)
@@ -8,7 +8,7 @@
 #include "io_u.h"
 #include "zbd_types.h"
 
-#define FIO_IOOPS_VERSION      26
+#define FIO_IOOPS_VERSION      31
 
 #ifndef CONFIG_DYNAMIC_ENGINES
 #define FIO_STATIC     static
@@ -30,6 +30,7 @@ struct ioengine_ops {
        const char *name;
        int version;
        int flags;
+       void *dlhandle;
        int (*setup)(struct thread_data *);
        int (*init)(struct thread_data *);
        int (*post_init)(struct thread_data *);
@@ -46,6 +47,7 @@ struct ioengine_ops {
        int (*invalidate)(struct thread_data *, struct fio_file *);
        int (*unlink_file)(struct thread_data *, struct fio_file *);
        int (*get_file_size)(struct thread_data *, struct fio_file *);
+       int (*prepopulate_file)(struct thread_data *, struct fio_file *);
        void (*terminate)(struct thread_data *);
        int (*iomem_alloc)(struct thread_data *, size_t);
        void (*iomem_free)(struct thread_data *);
@@ -57,6 +59,8 @@ struct ioengine_ops {
                            uint64_t, struct zbd_zone *, unsigned int);
        int (*reset_wp)(struct thread_data *, struct fio_file *,
                        uint64_t, uint64_t);
+       int (*get_max_open_zones)(struct thread_data *, struct fio_file *,
+                                 unsigned int *);
        int option_struct_size;
        struct fio_option *options;
 };
@@ -79,6 +83,8 @@ enum fio_ioengine_flags {
        FIO_ASYNCIO_SYNC_TRIM
                        = 1 << 14,      /* io engine has async ->queue except for trim */
        FIO_NO_OFFLOAD  = 1 << 15,      /* no async offload */
+       FIO_ASYNCIO_SETS_ISSUE_TIME
+                       = 1 << 16,      /* async ioengine with commit function that sets issue_time */
 };
 
 /*