Skip to content

overlay: implement fsck.overlay utility

zhangyi (F) fstests linux-unionfs 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 4 repliesIn review
  2. v36 patches 11 repliesSuperseded
  3. v218 patches 28 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC1 patch18 repliesSuperseded

Changes in v4 from the cover letter

- Use existing library for path manipulation and separate self-implemented manipulation helpers. (Comment from Amir)
- Use fstatat() with relative path instead of lstat() with absolute path when traverse layers and lookup target. (Amir)
- Split check routines into two pass, the first pass check redirect dir to confirm directory structure, the second pass check whiteouts and impure xattr.
- Change list to linux kernel style.
- Fix duplicate redirect xattr check, correct questions and default actions, and handle cases of duplicate redirect xattr in different layers. (Amir)
- Fix impure xattr comments and invalid error message. (Amir & Vivek)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5overlay: implement fsck utilityMakefile README.md check.c +12 more+2339 -00 replies
2/5fsck.overlay: correct redirect xattr checkREADME.md check.c+159 -470 replies
3/5fsck.overlay: add origin countcheck.c lib.c lib.h+49 -10 replies
4/5fsck.overlay: add merge and redirect subdir countcheck.c lib.c lib.h+40 -02 replies
5/5fsck.overlay: add impure xattr checkREADME.md check.c lib.c +1 more+102 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [ANNOUNCE PATCH v4 0/5] overlay: implement fsck.overlay utility

Hi All,

Here is the forth version of fsck.overlay. Most of comments from last three iterations have been handled. Now, this tool have three basic features (see README for detail, include TODO list):
1. Check and fix orphan whiteouts,
2. Check and fix invalid/duplicate redirect directories,
3. Check and fix missing impure xattrs.

This incubation tool will post to github repository[1] directly. Any suggestion is helpful if you review the source code or find bugs/improvements when you use/test this tool.

Thanks,
Yi.

[1] https://github.com/hisilicon/overlayfs-progs

Changes since v3:
- Use existing library for path manipulation and separate self-implemented manipulation helpers. (Comment from Amir)
- Use fstatat() with relative path instead of lstat() with absolute path when traverse layers and lookup target. (Amir)
- Split check routines into two pass, the first pass check redirect dir to confirm directory structure, the second pass check whiteouts and impure xattr.
- Change list to linux kernel style.
- Fix duplicate redirect xattr check, correct questions and default actions, and handle cases of duplicate redirect xattr in different layers. (Amir)
- Fix impure xattr comments and invalid error message. (Amir & Vivek)

----------------

Changes since v2(v1):

- Add "-n -p -y" options. (Comment from Amir and Darrick)
- Change underlying dirs input to '-o' option like mount(8). (Miklos)
- Remove invalid opaque check. (Miklos)
- Correct redirect xattr check. (Amir and Miklos)
- Fix lower target lookup, handle the missing case of opaque and redirect parent.
- Add impure xattr check. (Amir)

zhangyi (F) (5):
overlay: implement fsck utility fsck.overlay: correct redirect xattr check fsck.overlay: add origin count fsck.overlay: add merge and redirect subdir count fsck.overlay: add impure xattr check