Skip to content

overlayfs assorted fixes for v4.13

Amir Goldstein linux-unionfs stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ovl: mark parent impure on ovl_link()fs/overlayfs/copy_up.c fs/overlayfs/dir.c fs/overlayfs/overlayfs.h +1 more+22 -100 replies
2/10ovl: fix random return value on mountfs/overlayfs/super.c+1 -00 replies
3/10ovl: fix origin verification of index dirfs/overlayfs/overlayfs.h+2 -10 replies
4/10ovl: remove unneeded check for IS_ERR()fs/overlayfs/super.c+0 -40 replies
5/10ovl: suppress file handle support warnings on read-only mountfs/overlayfs/super.c+3 -00 replies
6/10ovl: force read-only mount with no index dirfs/overlayfs/super.c+4 -73 replies
7/10ovl: mount overlay read-only on failure to verify index dirfs/overlayfs/super.c+9 -78 replies
8/10ovl: do not cleanup directory and whiteout index entriesfs/overlayfs/namei.c+12 -30 replies
9/10ovl: verify origin of merge dir lowerDocumentation/filesystems/overlayfs.txt fs/overlayfs/namei.c+26 -00 replies
10/10ovl: follow decoded origin file handle of merge dirDocumentation/filesystems/overlayfs.txt fs/dcache.c fs/overlayfs/namei.c+40 -514 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10] overlayfs assorted fixes for v4.13

Miklos,

This is a collection of fixes on top of current overlayfs-next. None of the fixes are urgent for -rc1, so up to you. Also wanted to remind you that the top commit of overlayfs-next is missing your s-o-b.

Patch 1 is a fix for an oversight from v4.12. Patch 2 is a fix for error handing from v4.7. Patches 3-7 are various fixes to index=on,ro mount. Patches 8-10 are forward compat fixes for when index dir will be used for NFS export.

Specifically, patches 9-10 introduce a behavior change in the case of changes to lower layer (rename or delete of lower dir). The new behavior is to verify origin fh and try to decode it if verification fails (overlayfs.txt updated).

This change in needed for snapshots and I argue in the commit message of patch 10 why it is needed for indexing of directories. I admit that the argument is not rigorous, but since the behavior of changes to lower layer is documented as "undefined", I recon you don't really mind if we change it for index=on.

The rational of making this change in v4.13 as opposed to when directory indexing is implemented, is that index=on already introduces a behavior change related to copying layers, so IMO it is better to introduce all those behavior changes together on index=on.

Thanks,
Amir.

Amir Goldstein (10):
ovl: mark parent impure on ovl_link()
ovl: fix random return value on mount
ovl: fix origin verification of index dir
ovl: remove unneeded check for IS_ERR()
ovl: suppress file handle support warnings on read-only mount
ovl: force read-only mount with no index dir
ovl: mount overlay read-only on failure to verify index dir
ovl: do not cleanup directory and whiteout index entries
ovl: verify origin of merge dir lower
ovl: follow decoded origin file handle of merge dir

 Documentation/filesystems/overlayfs.txt | 20 +++++++++++
 fs/dcache.c                             |  1 +
 fs/overlayfs/copy_up.c                  |  4 +--
 fs/overlayfs/dir.c                      | 20 ++++++++---
 fs/overlayfs/namei.c                    | 63 +++++++++++++++++++++++++++++----
 fs/overlayfs/overlayfs.h                |  5 +--
 fs/overlayfs/super.c                    | 35 +++++++++---------
 fs/overlayfs/util.c                     |  6 ++--
 8 files changed, 118 insertions(+), 36 deletions(-)
Signature · 1 line
2.7.4