]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: add tests for casefolded layers master v2025.11.18
authorAmir Goldstein <amir73il@gmail.com>
Fri, 14 Nov 2025 19:48:52 +0000 (20:48 +0100)
committerZorro Lang <zlang@kernel.org>
Sat, 15 Nov 2025 08:28:16 +0000 (16:28 +0800)
commita668057f00dd5cf757e332afe8035b67dca69ae1
treee927290e6156279bcb6b6783872b47707c02e84f
parentc34a6b5628402972f6c4c34d074de9c15a95aa78
overlay: add tests for casefolded layers

Overalyfs did not allow mounting layers with casefold capable fs
until kernel v6.17 and did not allow casefold enabled layers
until kernel v6.18.

Since kernel v6.18, overalyfs allows this kind of setups,
as long as the layers have consistent encoding and all the directories
in the subtree have consistent casefolding.

Create test cases for the following scenarios:
- Mounting overlayfs with casefold disabled
- Mounting overlayfs with casefold enabled
- Lookup subdir in overlayfs with mismatch casefold to parent dir
- Change casefold of underlying subdir while overalyfs is mounted
- Mounting overlayfs with strict enconding, but casefold disabled
- Mounting overlayfs with strict enconding casefold enabled
- Mounting overlayfs with layers with inconsistent UTF8 version

Co-developed-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: André Almeida <andrealmeid@igalia.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/generic/783 [new file with mode: 0755]
tests/generic/783.out [new file with mode: 0644]