]> www.infradead.org Git - users/hch/blktests.git/commit
block/004: Adjust fio conditions for zoned block devices
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Mon, 28 Jan 2019 13:14:46 +0000 (22:14 +0900)
committerOmar Sandoval <osandov@fb.com>
Tue, 5 Feb 2019 18:41:35 +0000 (10:41 -0800)
commit4225b3fff3b9dfa36b6124d9f1a0074394dfd4b2
tree5416009f0296fc5b15e92931bf7518b8d8777129
parent3095d6a0e10085459e6116e04df59e40dd39d224
block/004: Adjust fio conditions for zoned block devices

For a random write pattern to a zoned block device, fio requires --direct=1
and --zonemode=zbd options as well as deadline I/O scheduler to be
specified. Specify these options and set the I/O scheduler if the target
device is a zoned block device. Before doing that, also make sure that the
deadline scheduler is available and that fio supports the zbd zone mode.
Set CAN_BE_ZONED flag to run this test case for zoned block devices.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/block/004