t/zbd: Add support for libzbc IO engine tests
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Tue, 7 Apr 2020 01:59:00 +0000 (10:59 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Apr 2020 20:47:07 +0000 (14:47 -0600)
commit6dcb098d62764d03fe1bad47a253373af7de67b5
tree7966cf398596be08b1a9193f9e0ca01af992152c
parent56a1932582ca46e2d23fdc60bb39508797c797f2
t/zbd: Add support for libzbc IO engine tests

Modify the test-zbd-support script to accept SG node device files for
tests with the libzbc IO engine. This IO engine can also be tested with
a block device file using the new -l option which forces all test cases
to have the option --ioengine=libzbc.

New helper functions are added to discover the capacity, logical block
size etc of devices specified using an SG node file.

To facilitate troubleshooting of problems, the option -z is also added
to automatically add the option --debug=zbd to all test cases.

Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/zbd/functions
t/zbd/test-zbd-support