t/zbd: add test case to confirm no write with rwmixwrite=0 option
[fio.git] / ioengines.h
index 11d2115ce700ac1fe702ab57c29dccc9523505df..4391b31e3ca2a30900aa85d38bc0275f13ee68f5 100644 (file)
@@ -7,8 +7,9 @@
 #include "flist.h"
 #include "io_u.h"
 #include "zbd_types.h"
+#include "fdp.h"
 
-#define FIO_IOOPS_VERSION      31
+#define FIO_IOOPS_VERSION      33
 
 #ifndef CONFIG_DYNAMIC_ENGINES
 #define FIO_STATIC     static
@@ -61,8 +62,12 @@ struct ioengine_ops {
                        uint64_t, uint64_t);
        int (*get_max_open_zones)(struct thread_data *, struct fio_file *,
                                  unsigned int *);
+       int (*get_max_active_zones)(struct thread_data *, struct fio_file *,
+                                   unsigned int *);
        int (*finish_zone)(struct thread_data *, struct fio_file *,
                           uint64_t, uint64_t);
+       int (*fdp_fetch_ruhs)(struct thread_data *, struct fio_file *,
+                             struct fio_ruhs_info *);
        int option_struct_size;
        struct fio_option *options;
 };
@@ -87,6 +92,11 @@ enum fio_ioengine_flags {
        FIO_NO_OFFLOAD  = 1 << 15,      /* no async offload */
        FIO_ASYNCIO_SETS_ISSUE_TIME
                        = 1 << 16,      /* async ioengine with commit function that sets issue_time */
+       FIO_SKIPPABLE_IOMEM_ALLOC
+                       = 1 << 17,      /* skip iomem_alloc & iomem_free if job sets mem/iomem */
+       FIO_RO_NEEDS_RW_OPEN
+                       = 1 << 18,      /* open files in rw mode even if we have a read job; only
+                                          affects ioengines using generic_open_file */
 };
 
 /*