appveyor: cleanup and add separate install script
[fio.git] / ioengines.h
index feb21db893456ae4ba5948d47f620f13e3ba3c46..54dadba2cbce34921d6d46b05c233b4aeb8c4a8a 100644 (file)
@@ -6,8 +6,15 @@
 #include "compiler/compiler.h"
 #include "flist.h"
 #include "io_u.h"
+#include "zbd_types.h"
 
-#define FIO_IOOPS_VERSION      24
+#define FIO_IOOPS_VERSION      26
+
+#ifndef CONFIG_DYNAMIC_ENGINES
+#define FIO_STATIC     static
+#else
+#define FIO_STATIC
+#endif
 
 /*
  * io_ops->queue() return values
@@ -25,6 +32,7 @@ struct ioengine_ops {
        int flags;
        int (*setup)(struct thread_data *);
        int (*init)(struct thread_data *);
+       int (*post_init)(struct thread_data *);
        int (*prep)(struct thread_data *, struct io_u *);
        enum fio_q_status (*queue)(struct thread_data *, struct io_u *);
        int (*commit)(struct thread_data *);
@@ -43,6 +51,12 @@ struct ioengine_ops {
        void (*iomem_free)(struct thread_data *);
        int (*io_u_init)(struct thread_data *, struct io_u *);
        void (*io_u_free)(struct thread_data *, struct io_u *);
+       int (*get_zoned_model)(struct thread_data *td,
+                              struct fio_file *f, enum zbd_zoned_model *);
+       int (*report_zones)(struct thread_data *, struct fio_file *,
+                           uint64_t, struct zbd_zone *, unsigned int);
+       int (*reset_wp)(struct thread_data *, struct fio_file *,
+                       uint64_t, uint64_t);
        int option_struct_size;
        struct fio_option *options;
 };
@@ -62,6 +76,8 @@ enum fio_ioengine_flags {
        FIO_FAKEIO      = 1 << 11,      /* engine pretends to do IO */
        FIO_NOSTATS     = 1 << 12,      /* don't do IO stats */
        FIO_NOFILEHASH  = 1 << 13,      /* doesn't hash the files for lookup later. */
+       FIO_ASYNCIO_SYNC_TRIM
+                       = 1 << 14       /* io engine has async ->queue except for trim */
 };
 
 /*