@@ -16,10 +16,20 @@ requires() {
test_device() {
echo "Running ${TEST_NAME}"
+ local directio=""
+ local zbdmode=""
+
+ if _test_dev_is_zoned; then
+ directio="--direct=1"
+ zbdmode="--zonemode=zbd"
+ set_scheduler "$(basename "$(readlink -f "${TEST_DEV}")")" \
+ deadline
+ fi
+
FIO_PERF_FIELDS=("write iops")
_fio_perf --bs=4k --rw=randwrite --norandommap --fsync=1 \
--number_ios=256 --numjobs=64 --name=flushes \
- --filename="$TEST_DEV"
+ ${directio} ${zbdmode} --filename="$TEST_DEV"
echo "Test complete"
}