t/zbd: Support testing zone capacity smaller than zone size
authorHans Holmberg <hans.holmberg@wdc.com>
Fri, 17 Jul 2020 09:36:35 +0000 (18:36 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jul 2020 15:17:34 +0000 (09:17 -0600)
commitd7c7539faf5f1c23962590f80b40dafe2d232207
tree041c2738362df98482aa1a5bc19be863a2d4eeea
parent552e214c3a88a9a231034e675a512357a133ca2f
t/zbd: Support testing zone capacity smaller than zone size

Add support for testing zoned block devices where zone capacity is less
than zone size. If the test case runs sequential workloads or workloads
with verify, use zone capacity instead of zone size to complete.

To use zone capacity of the test target zones, introduce a helper
function total_zone_capacity() which sums up zone capacity numbers of the
test target zones.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/functions
t/zbd/test-zbd-support