linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] Implement overlayfs verify_dir mount option
@ 2017-10-17 15:23 Amir Goldstein
  2017-10-17 15:23 ` [PATCH 1/7] ovl: fix rmdir problem on origin dir Amir Goldstein
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Amir Goldstein @ 2017-10-17 15:23 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-unionfs, zhangyi

Miklos,

This is the first of two prep patch sets [1][2] for NFS export [3].
NFS export is enabled with the 'verify_dir' and 'index=all'
mount options.

The requirement for 'verify_dir' can be relaxed if we attach
generation numbers to index entries as you suggested, but
this was not implemented for first version of NFS export.

The first two patches in this series, one from zhangyi and
one from me are not directly related to 'verify_dir', but
they make sense in this context, because 'verify_dir' may
refuse to follow to lower dir and leave a pure upper dir
with ORIGIN and whiteouts.
These two patches have been around for a while and already
have a merged xfstest to verify them (overlay/031).

The last two patches add the actual verification of lower
dir. They have been on my development branch for a few cycles
already and the feature is being exercised with snapshots test.

[1] https://github.com/amir73il/linux/commits/ovl-verify-dir
[2] https://github.com/amir73il/linux/commits/ovl-index-all
[3] https://github.com/amir73il/linux/commits/ovl-nfs-export

Amir Goldstein (7):
  ovl: fix rmdir problem on origin dir
  ovl: no direct iteration for dir with copy up origin
  ovl: remove unneeded arg from ovl_verify_origin()
  ovl: disable redirect_dir and index when no xattr support
  ovl: ignore redirect_dir and index when no upper layer
  ovl: add support for verify_dir mount option
  ovl: follow decoded origin file handle of merge dir

 Documentation/filesystems/overlayfs.txt | 20 ++++++++++
 fs/dcache.c                             |  1 +
 fs/overlayfs/dir.c                      | 21 +++++++---
 fs/overlayfs/namei.c                    | 60 +++++++++++++++++++++++++----
 fs/overlayfs/overlayfs.h                |  8 ++--
 fs/overlayfs/ovl_entry.h                |  1 +
 fs/overlayfs/readdir.c                  | 59 ++++++++++++++++++++++------
 fs/overlayfs/super.c                    | 68 +++++++++++++++++++++++----------
 fs/overlayfs/util.c                     | 20 ++++++++++
 9 files changed, 209 insertions(+), 49 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-10-31 13:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17 15:23 [PATCH 0/7] Implement overlayfs verify_dir mount option Amir Goldstein
2017-10-17 15:23 ` [PATCH 1/7] ovl: fix rmdir problem on origin dir Amir Goldstein
2017-10-31 12:54   ` Miklos Szeredi
2017-10-17 15:23 ` [PATCH 2/7] ovl: no direct iteration for dir with copy up origin Amir Goldstein
2017-10-31 13:08   ` Miklos Szeredi
2017-10-17 15:23 ` [PATCH 3/7] ovl: remove unneeded arg from ovl_verify_origin() Amir Goldstein
2017-10-17 15:23 ` [PATCH 4/7] ovl: disable redirect_dir and index when no xattr support Amir Goldstein
2017-10-17 15:23 ` [PATCH 5/7] ovl: ignore redirect_dir and index when no upper layer Amir Goldstein
2017-10-17 15:23 ` [PATCH 6/7] ovl: add support for verify_dir mount option Amir Goldstein
2017-10-17 15:23 ` [PATCH 7/7] ovl: follow decoded origin file handle of merge dir Amir Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).