t/zbd: Mandate blkzone capacity report for devices with zone capacity
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 17 Jul 2020 09:36:34 +0000 (18:36 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jul 2020 15:17:32 +0000 (09:17 -0600)
commit552e214c3a88a9a231034e675a512357a133ca2f
tree18bf374af085b2d6e2cac1c3e025c1452acf54fe
parentb8dd975022e9d5b0d656de989d858772ecc005d2
t/zbd: Mandate blkzone capacity report for devices with zone capacity

For NVMe ZNS and null_blk zoned drives, a zone capacity can be smaller
than its size. To test zone capacity handling by fio for these devices,
t/zbd/test-zbd-support must be able to discover zone capacities to avoid
test failures.

To avoid the failures, make zone capacity report by blkzone mandatory if
the test target device is a ZNS device or a null_blk device.

Reviewed-by: Damien Le Moal <damien.lemoal@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