X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengines.h;h=b3f755b477de01f2ece25e93e9ad4d0edfa7bcda;hb=864314464e2772a9885da34ea041f130073affe9;hp=f48b4db934851fd944eba8e66f462858aed183a5;hpb=427a7e0950a49a6e350a8e63a31cd8b1f331d4cc;p=fio.git diff --git a/ioengines.h b/ioengines.h index f48b4db9..b3f755b4 100644 --- a/ioengines.h +++ b/ioengines.h @@ -8,7 +8,13 @@ #include "io_u.h" #include "zbd_types.h" -#define FIO_IOOPS_VERSION 26 +#define FIO_IOOPS_VERSION 30 + +#ifndef CONFIG_DYNAMIC_ENGINES +#define FIO_STATIC static +#else +#define FIO_STATIC +#endif /* * io_ops->queue() return values @@ -24,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 *); @@ -40,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 *); @@ -51,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; }; @@ -71,7 +81,8 @@ enum fio_ioengine_flags { 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 */ + = 1 << 14, /* io engine has async ->queue except for trim */ + FIO_NO_OFFLOAD = 1 << 15, /* no async offload */ }; /*