summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2022-07-26 14:39:23 -0700
committerBrian Behlendorf <[email protected]>2022-07-27 13:38:56 -0700
commit98315be03600dee78f5c844ed4ef422098493a24 (patch)
tree11bfb4d79943bf197403f80f84d6af422640c079 /tests
parent69ad0bd769f696158ceb9dde3ff16b9775834370 (diff)
ZTS: Fix io_uring support check
Not all Linux distribution kernels enable io_uring support by default. Update the run time check to verify that the booted kernel was built with CONFIG_IO_URING=y. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Co-authored-by: George Melikov <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #13648 Closes #13685
Diffstat (limited to 'tests')
-rwxr-xr-xtests/zfs-tests/tests/functional/io/io_uring.ksh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/tests/functional/io/io_uring.ksh b/tests/zfs-tests/tests/functional/io/io_uring.ksh
index 2d2b18f8b..189c11f0d 100755
--- a/tests/zfs-tests/tests/functional/io/io_uring.ksh
+++ b/tests/zfs-tests/tests/functional/io/io_uring.ksh
@@ -40,7 +40,7 @@
verify_runnable "global"
-if [[ $(linux_version) -lt $(linux_version "5.1") ]]; then
+if ! $(grep -q "CONFIG_IO_URING=y" /boot/config-$(uname -r)); then
log_unsupported "Requires io_uring support"
fi