]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/645: Add hint for expected failure with old kernel
authorTaylor Jackson <tjackson9431@gmail.com>
Wed, 17 Apr 2024 19:34:24 +0000 (19:34 +0000)
committerZorro Lang <zlang@kernel.org>
Sat, 20 Apr 2024 14:40:48 +0000 (22:40 +0800)
The following hint is added to reflect that any old kernel
without kernel commit dacfd001eaf2 (“fs/mnt_idmapping.c: Return
-EINVAL when no map is written”) is expected to fail this generic
645 test since without that commit, mount_setattr won’t return
EINVAL when attempting to create an idmapped mount using a user
namespace with no mappings.

Reported-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Taylor Jackson <tjackson9431@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/645

index 556d2450299e97d844307f6e265a4d5cbb85330b..249e9cc0791609da1a5547290b5fc0363a6982de 100755 (executable)
@@ -17,6 +17,8 @@ _begin_fstest auto quick idmapped mount
 _supported_fs generic
 _require_idmapped_mounts
 _require_test
+_wants_kernel_commit dacfd001eaf2 \
+       "fs/mnt_idmapping.c: Return -EINVAL when no map is written"
 
 echo "Silence is golden"