Add support for zoned block devices
[fio.git] / init.c
diff --git a/init.c b/init.c
index 38f51288c638ba6ee613697076f958e5ef4b3e23..b925b4ca33d2521031f4dd6a844d233b5ca8ee05 100644 (file)
--- a/init.c
+++ b/init.c
@@ -623,6 +623,11 @@ static int fixup_options(struct thread_data *td)
                ret |= 1;
        }
 
+       if (o->zone_mode == ZONE_MODE_STRIDED && !o->zone_size) {
+               log_err("fio: --zonesize must be specified when using --zonemode=strided.\n");
+               ret |= 1;
+       }
+
        if (o->zone_mode == ZONE_MODE_NOT_SPECIFIED) {
                if (o->zone_size)
                        o->zone_mode = ZONE_MODE_STRIDED;