diff options
author | Brian Behlendorf <[email protected]> | 2022-07-26 14:39:23 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-26 14:39:23 -0700 |
commit | 34aa0f0487705671c81262adb7646a90d15c5a12 (patch) | |
tree | ca3d55b7ef1a0b9c3f1357631f70f6d637ea721d /tests | |
parent | 3a1ce4914172ce4c1e39123cd31b1e5245765a5e (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-x | tests/zfs-tests/tests/functional/io/io_uring.ksh | 2 |
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 601445f6a..47e439d0f 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 |