Skip to content

Overlayfs casefold fixes

Amir Goldstein linux-fsdevel linux-unionfs stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ovl: fail the mount if the casefold flag has changedfs/overlayfs/super.c+11 -10 replies
2/3ovl: do not let chattr change the casefold flagfs/overlayfs/inode.c+8 -00 replies
3/3ovl: fix whiteout creation in casefolded directoriesfs/overlayfs/dir.c fs/overlayfs/overlayfs.h fs/overlayfs/readdir.c +1 more+29 -320 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchHungyu Lin
SeriesT-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] Overlayfs casefold fixes

Hungyu,

You indicated that you are willing to review and test overlayfs casefold fixes.

Here are a bunch of fixes that I recived from Chris and added my edits.

They pass the basic sanity tests, but I fear that given the nature of those reports, the test coverage for casefold overlayfs is not so good and possibly there are no many users, so I am reluctant to merged the changes without a champion to verify them.

I am not really interested in adding test coverage for underlying change races, but the functional bugs that are not related to delicate timing deserve test coverage.

Please see fstest generic/783 and see if a similar test could be added to add test coverage.

Note that it is intentionally not an overlay/ fstest, but a generic test which only runs on filesystems that support casefold (e.g. ext4) and the test itself takes care of mounting overlayfs.

Thanks,
Amir.

Chris Mason (3):
ovl: fail the mount if the casefold flag has changed
ovl: do not let chattr change the casefold flag
ovl: fix whiteout creation in casefolded directories

 fs/overlayfs/dir.c       | 46 ++++++++++++++++++++++------------------
 fs/overlayfs/inode.c     |  8 +++++++
 fs/overlayfs/overlayfs.h | 10 +--------
 fs/overlayfs/readdir.c   |  3 ++-
 fs/overlayfs/super.c     | 12 ++++++++++-
 fs/overlayfs/util.c      |  2 +-
 6 files changed, 48 insertions(+), 33 deletions(-)
Signature · 1 line
2.55.0