Skip to content

Overlayfs fixes for exposed whiteouts

Amir Goldstein linux-unionfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 2 repliesIn review
  2. v11 patch 3 repliesSuperseded

Changes in v6 from the cover letter

- Split ovl_check_empty_and_clear() changes from bug fix patch
- Cache "origin" xattr of non-merge dir in inode flag OVL_WHITEOUTS (OVL_ORIGIN would have been too confusing)
- Replace layer idx with is_upper boolean

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ovl: no direct iteration for dir with origin xattrfs/overlayfs/inode.c fs/overlayfs/overlayfs.h fs/overlayfs/readdir.c +1 more+47 -40 replies
2/3ovl: simplify ovl_check_empty_and_clear()fs/overlayfs/dir.c fs/overlayfs/readdir.c+22 -100 replies
3/3ovl: fix rmdir problem on non-merge dir with origin xattrfs/overlayfs/dir.c+10 -30 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [PATCH v6 0/3] Overlayfs fixes for exposed whiteouts

Miklos,

Let's call my previous version v5 (Zhangyi's last post was v4).

Changes since v5:
- Split ovl_check_empty_and_clear() changes from bug fix patch
- Cache "origin" xattr of non-merge dir in inode flag OVL_WHITEOUTS (OVL_ORIGIN would have been too confusing)
- Replace layer idx with is_upper boolean

I tested these changes with upstream xfstest overlay/031 by Zhangyi. Pushed to ovl-whiteouts branch [1] and rebased the non-samefs patches on top of it [2].

Thanks,
Amir.

[1] https://github.com/amir73il/linux/commits/ovl-whiteouts
[1] https://github.com/amir73il/linux/commits/overlayfs-devel

Amir Goldstein (3):
ovl: no direct iteration for dir with origin xattr
ovl: simplify ovl_check_empty_and_clear()
ovl: fix rmdir problem on non-merge dir with origin xattr

 fs/overlayfs/dir.c       | 18 ++++++++++------
 fs/overlayfs/inode.c     |  5 +++++
 fs/overlayfs/overlayfs.h |  4 ++++
 fs/overlayfs/readdir.c   | 56 ++++++++++++++++++++++++++++++++++++++----------
 fs/overlayfs/util.c      | 13 +++++++++++
 5 files changed, 79 insertions(+), 17 deletions(-)
Signature · 1 line
2.7.4