generic: fsx IO_URING soak tests

After fsx supports IO_URING read/write, add a test to do IO_URING
soak test of fsx.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Zorro Lang
2020-11-08 20:26:22 +08:00
committed by Eryu Guan
parent 6f87118198
commit c3eb999477
4 changed files with 77 additions and 0 deletions
+16
View File
@@ -1956,6 +1956,22 @@ _require_aiodio()
_require_odirect
}
# this test requires that the kernel supports IO_URING
_require_io_uring()
{
$here/src/feature -R
case $? in
0)
;;
1)
_notrun "kernel does not support IO_URING"
;;
*)
_fail "unexpected error testing for IO_URING support"
;;
esac
}
# this test requires that a test program exists under src/
# $1 - command (require)
#