]> git.proxmox.com Git - mirror_zfs.git/commitdiff
ZTS: Fix io_uring support check
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Jul 2022 21:39:23 +0000 (14:39 -0700)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2022 21:39:23 +0000 (14:39 -0700)
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 <hutter2@llnl.gov>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Co-authored-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13648
Closes #13685

tests/zfs-tests/tests/functional/io/io_uring.ksh

index 601445f6a43d58c887bc3f98852d696db4403fd9..47e439d0f4d5ca617a0485d9f0b3a090150cb2c7 100755 (executable)
@@ -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