X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fskeleton_external.c;h=cff83a10ef6c2631f6df2045bec6f4ffe6a238d8;hb=HEAD;hp=7f3e4cb3a13c7d9cdb4fcee9b877f5a9b26e9e5d;hpb=427a7e0950a49a6e350a8e63a31cd8b1f331d4cc;p=fio.git diff --git a/engines/skeleton_external.c b/engines/skeleton_external.c index 7f3e4cb3..cff83a10 100644 --- a/engines/skeleton_external.c +++ b/engines/skeleton_external.c @@ -156,7 +156,6 @@ static int fio_skeleton_close(struct thread_data *td, struct fio_file *f) /* * Hook for getting the zoned model of a zoned block device for zonemode=zbd. * The zoned model can be one of (see zbd_types.h): - * - ZBD_IGNORE: skip regular files * - ZBD_NONE: regular block device (zone emulation will be used) * - ZBD_HOST_AWARE: host aware zoned block device * - ZBD_HOST_MANAGED: host managed zoned block device @@ -193,6 +192,18 @@ static int fio_skeleton_reset_wp(struct thread_data *td, struct fio_file *f, return 0; } +/* + * Hook called for getting the maximum number of open zones for a + * ZBD_HOST_MANAGED zoned block device. + * A @max_open_zones value set to zero means no limit. + */ +static int fio_skeleton_get_max_open_zones(struct thread_data *td, + struct fio_file *f, + unsigned int *max_open_zones) +{ + return 0; +} + /* * Note that the structure is exported, so that fio can get it via * dlsym(..., "ioengine"); for (and only for) external engines. @@ -212,6 +223,7 @@ struct ioengine_ops ioengine = { .get_zoned_model = fio_skeleton_get_zoned_model, .report_zones = fio_skeleton_report_zones, .reset_wp = fio_skeleton_reset_wp, + .get_max_open_zones = fio_skeleton_get_max_open_zones, .options = options, .option_struct_size = sizeof(struct fio_skeleton_options), };