X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengines.h;h=9484265e6f0fcb817f9766d185c8f865a0c4f87a;hb=4d9521fd4d679f914ccf425f6c06864484352fea;hp=b3f755b477de01f2ece25e93e9ad4d0edfa7bcda;hpb=d2f442bc0bd507510089d56cd510616093415702;p=fio.git diff --git a/ioengines.h b/ioengines.h index b3f755b4..9484265e 100644 --- a/ioengines.h +++ b/ioengines.h @@ -7,8 +7,9 @@ #include "flist.h" #include "io_u.h" #include "zbd_types.h" +#include "fdp.h" -#define FIO_IOOPS_VERSION 30 +#define FIO_IOOPS_VERSION 32 #ifndef CONFIG_DYNAMIC_ENGINES #define FIO_STATIC static @@ -61,6 +62,10 @@ struct ioengine_ops { uint64_t, uint64_t); int (*get_max_open_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; }; @@ -83,6 +88,13 @@ enum fio_ioengine_flags { FIO_ASYNCIO_SYNC_TRIM = 1 << 14, /* io engine has async ->queue except for trim */ 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 */ }; /*