X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengines.h;h=54dadba2cbce34921d6d46b05c233b4aeb8c4a8a;hb=b34eb155e4a6a05dbe43b0f7342a8118d09fdc7c;hp=01a9b5860085f13885885edb326bcf8c14d5ccc3;hpb=04ba61dfa67784d4dfcc22a2b3de7ede28e22e40;p=fio.git diff --git a/ioengines.h b/ioengines.h index 01a9b586..54dadba2 100644 --- a/ioengines.h +++ b/ioengines.h @@ -6,8 +6,15 @@ #include "compiler/compiler.h" #include "flist.h" #include "io_u.h" +#include "zbd_types.h" -#define FIO_IOOPS_VERSION 25 +#define FIO_IOOPS_VERSION 26 + +#ifndef CONFIG_DYNAMIC_ENGINES +#define FIO_STATIC static +#else +#define FIO_STATIC +#endif /* * io_ops->queue() return values @@ -44,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; };