Skip to content

generic: test overlayfs casefold flags and whiteouts

Hungyu Lin fstests linux-unionfs 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Move the flag test into test_casefold() and call the enabled and disabled cases explicitly, as suggested by Amir.
- Add Amir's Reviewed-by to both patches.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2generic: test overlayfs casefold flag changestests/generic/998 tests/generic/998.out+150 -00 replies
2/2generic: test whiteouts on casefolded overlay layerstests/generic/999 tests/generic/999.out+150 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAmir Goldstein
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] generic: test overlayfs casefold flags and whiteouts

Add coverage for directory casefold flag changes and whiteout creation on casefolded overlayfs layers, following the setup in generic/783. The tests run on a casefold-capable backing filesystem and mount their own overlay.

The tests cover patches 2 and 3 of the following kernel series:
https://lore.kernel.org/linux-unionfs/[email protected]/

Tested on arm64 under QEMU with ext4 and tmpfs as the backing filesystems. The baseline kernel was overlayfs ovl-fixes at 1d27da7de3f7. The fixed kernel used the same baseline with all three patches from the series.

On both backing filesystems:
- generic/783 passes before and after the fixes.
- generic/998 fails before the fixes because a casefold flag change succeeds, and passes with the fixes.
- generic/999 fails before the fixes because removing a lower-only file returns EINVAL, and passes with the fixes.

The runtime tests used fstests at 22348afe338c. Both patches also apply to for-next at d07dca72d245 and pass bash -n there; the runtime tests were not repeated on that fstests base.

The tests also need "ovl: check the casefold flag of directories only", which is included in the kernel baseline above. The fix hints use placeholder IDs pending final kernel commit IDs. The test numbers 998 and 999 are temporary.

Changes in v2:
- Move the flag test into test_casefold() and call the enabled and disabled cases explicitly, as suggested by Amir.
- Add Amir's Reviewed-by to both patches.

v1: https://lore.kernel.org/r/[email protected]

Thanks,
Hungyu

Hungyu Lin (2):
generic: test overlayfs casefold flag changes
generic: test whiteouts on casefolded overlay layers

 tests/generic/998     | 147 ++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/998.out |   3 +
 tests/generic/999     | 148 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/999.out |   2 +
 4 files changed, 300 insertions(+)