Merge branch 'directory-operation' of https://github.com/friendy-su/fio
[fio.git] / ioengines.h
index 9484265e6f0fcb817f9766d185c8f865a0c4f87a..2fd7f52ca714231119010f27df6006dd48a72551 100644 (file)
@@ -9,7 +9,7 @@
 #include "zbd_types.h"
 #include "fdp.h"
 
-#define FIO_IOOPS_VERSION      32
+#define FIO_IOOPS_VERSION      33
 
 #ifndef CONFIG_DYNAMIC_ENGINES
 #define FIO_STATIC     static
@@ -62,6 +62,8 @@ 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 *,
@@ -95,6 +97,8 @@ enum fio_ioengine_flags {
        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 */
+       FIO_MULTI_RANGE_TRIM
+                       = 1 << 19,      /* ioengine supports trim with more than one range */
 };
 
 /*