summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2019-08-30 11:16:05 +0900
committerJens Axboe <axboe@kernel.dk>2019-08-29 20:51:17 -0600
commit971d6a22bad5942234496683d89a2f8deed57172 (patch)
treead1a4230a135011740812086d3163e11dfbb8c21
parentfc52e44996fd74ee43520acbab81f0cf3206a30d (diff)
downloadfio-971d6a22bad5942234496683d89a2f8deed57172.tar.gz
fio-971d6a22bad5942234496683d89a2f8deed57172.tar.bz2
zbd: Improve job zonesize initialization checks
For a multijob workload, each job may specify a zonesize option for access to a zoned block device or regular device with zonemode=zbd. In such case, make sure that the zone size value specified by each job matches the device zone size. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--zbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zbd.c b/zbd.c
index 0a573692..99310c49 100644
--- a/zbd.c
+++ b/zbd.c
@@ -127,6 +127,11 @@ static bool zbd_verify_sizes(void)
f->file_name);
return false;
}
+ } else if (td->o.zone_size != f->zbd_info->zone_size) {
+ log_err("%s: job parameter zonesize %llu does not match disk zone size %llu.\n",
+ f->file_name, (unsigned long long) td->o.zone_size,
+ (unsigned long long) f->zbd_info->zone_size);
+ return false;
}
if (td->o.zone_skip &&