t/zbd: fix max_open_zones determination in tests
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Sun, 16 Oct 2022 01:43:08 +0000 (10:43 +0900)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Oct 2022 23:05:03 +0000 (17:05 -0600)
commit842fb796d249ef4c2b97a54442aa8055668888a0
tree498bcd7567f628d7c6fd102c87c97872d3a167ec
parent349d5f6c30cc7be60da8878d0b0078697f356897
t/zbd: fix max_open_zones determination in tests

The test script erroneously falls back to using libzbc for finding out
the max_open_zones setting if the device being tested is not a SCSI
device. This causes false positives if libzbc is not installed in the
test system. To fix, unless the option to use libzbc is explicitly set,
set this value to 0 for non-SCSI devices to let fio find the actual
max_open_zones value using the system block interface.

Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Link: https://lore.kernel.org/r/20221016014309.53682-1-dmitry.fomichev@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/functions