Skip to contentSkip to conversation

generic/633: add _require_idmapped_mounts check

PATCH In review Anthony Iliopoulos 3 participants 3 messages Mar 4, 2025 – Mar 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/633: add _require_idmapped_mounts check

Skip the test on older kernels that don't implement mount_setattr and open_tree syscalls, instead of failing.

---
 tests/generic/633 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/633 +1 -1
index 3bd18df68ba5..f58dbbf5f222 100755
@@ -12,7 +12,7 @@ _begin_fstest auto quick atime attr cap idmapped io_uring mount perms rw unlink
 # Import common functions.
 . ./common/filter
 
-
+_require_idmapped_mounts
 _require_test
 
 echo "Silence is golden"
Signature · 1 line
2.44.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Anthony Iliopoulos

Skip the test on older kernels that don't implement mount_setattr and open_tree syscalls, instead of failing.

---
 tests/generic/633 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/633 +0 -0
index 3bd18df68ba5..f58dbbf5f222 100755

tests/generic/633 _begin_fstest auto quick atime attr cap idmapped io_uring mount perms rw unlink · line 18

Quoted 8 lines
tests/generic/633 +1 -1
@@ -12,7 +12,7 @@ _begin_fstest auto quick atime attr cap idmapped io_uring mount perms rw unlink
 # Import common functions.
 . ./common/filter
 
-
+_require_idmapped_mounts
 _require_test
 
 echo "Silence is golden"

Looks good, although generic/696 and generic/697 probably should be covered too.

Reviewed-by
#2 lore raw
Quoted 22 lines · David Disseldorp
Quoted 20 lines · Anthony Iliopoulos

Skip the test on older kernels that don't implement mount_setattr and open_tree syscalls, instead of failing.

---
 tests/generic/633 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/633 +1 -1
index 3bd18df68ba5..f58dbbf5f222 100755
@@ -12,7 +12,7 @@ _begin_fstest auto quick atime attr cap idmapped io_uring mount perms rw unlink
 # Import common functions.
 . ./common/filter
 
-
+_require_idmapped_mounts
 _require_test
 
Quoted 6 lines

tests/generic/633 _begin_fstest auto quick atime attr cap idmapped io_uring mount perms rw unlink · line 18

Quoted 1 line
tests/generic/633 +0 -0
 echo "Silence is golden"

Looks good, although generic/696 and generic/697 probably should be covered too.

Thanks David points out that:)

Hi Anthony, if you'd like to fix missed "_require_idmapped_mounts", could you help to fix above two cases together. With that change:

Quoted 1 line