]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: Add tests for nesting private xattrs
authorAmir Goldstein <amir73il@gmail.com>
Mon, 11 Dec 2023 06:52:24 +0000 (08:52 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 15 Dec 2023 17:56:45 +0000 (01:56 +0800)
commitf0f8f248dd0b7f0c384ad3f1550174d34c7507e4
treeaed864b5d868564945af370ec3d6d352edd1ecbc
parent4050ac7b38b0386bff53db1f636ae6f7bc8783b2
overlay: Add tests for nesting private xattrs

If overlayfs xattr escaping is supported, ensure:
 * We can create "overlay.*" xattrs on a file in the overlayfs
 * We can create an xwhiteout file in the overlayfs

We check for nesting support by trying to getattr an "overlay.*" xattr
in an overlayfs mount, which will return ENOTSUPP in older kernels.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/overlay/084 [new file with mode: 0755]
tests/overlay/084.out [new file with mode: 0644]