From 6f635d6f72ad3d4ae76fff63671a208c27bdaf2d Mon Sep 17 00:00:00 2001 From: Shin'ichiro Kawasaki Date: Fri, 25 Apr 2025 14:21:42 +0900 Subject: [PATCH] ioengine: add move_zone_wp() callback As a preparation for continue_on_error option support for zonemode=zbd, introduce a new callback move_zone_wp() for the IO engines. It moves the write pointer by writing data in the specified buffer. Also bump up FIO_IOOPS_VERSION to note that the new callback is added. Signed-off-by: Shin'ichiro Kawasaki Reviewed-by: Damien Le Moal Link: https://lore.kernel.org/r/20250425052148.126788-3-shinichiro.kawasaki@wdc.com Signed-off-by: Jens Axboe --- ioengines.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ioengines.h b/ioengines.h index 1531cd89..bd5d189c 100644 --- a/ioengines.h +++ b/ioengines.h @@ -9,7 +9,7 @@ #include "zbd_types.h" #include "dataplacement.h" -#define FIO_IOOPS_VERSION 36 +#define FIO_IOOPS_VERSION 37 #ifndef CONFIG_DYNAMIC_ENGINES #define FIO_STATIC static @@ -60,6 +60,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 (*move_zone_wp)(struct thread_data *, struct fio_file *, + struct zbd_zone *, uint64_t, const char *); int (*get_max_open_zones)(struct thread_data *, struct fio_file *, unsigned int *); int (*get_max_active_zones)(struct thread_data *, struct fio_file *, -- 2.25.1