t/zbd: Add ignore_zone_limit option to test with special max_open_zones
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Fri, 4 Jun 2021 11:32:51 +0000 (20:32 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Jun 2021 21:15:56 +0000 (15:15 -0600)
commit351fe91089c3babb06ae421a1abce3632f42b672
treebd9b583cb57ca7f128f3391390acb752b236c23b
parente1315822835ceaa976a2b8ac6a74ce7bb46b079f
t/zbd: Add ignore_zone_limit option to test with special max_open_zones

Recent commit d2f442bc0bd5 ("ioengines: add get_max_open_zones zoned
block device operation") modified fio to compare --max_open_zones option
value and max_open_zones reported by the device. When the option
--max_open_zones is larger than the device limit, fio exits with an
error. However, sometimes it is useful to run fio with --max_open_zones
larger than the device limit to check performance impact of implicit
zone open and close by the zoned block devices. The test script
t/zbd/test-zbd-support has an option -o so that users can specify such
larger max_open_zones value. After the commit, such test runs fail with
the fio error.

To avoid the failure, modify the test script to specify another option
--ignore_zone_limits to fio command, which was added by the commit
575686bb85fa (zbd: add a new --ignore_zone_limits option). This option
is added to fio command only when users specify -o option and special
max_open_zones value to the test script. This change does not affect
default test conditions.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/test-zbd-support