Implement overlayfs verify_dir mount option
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ovl: fix rmdir problem on origin dirfs/ fs/ fs/ +2 more | +57 | 1 reply | |
| 2/7 | ovl: no direct iteration for dir with copy up originfs/ | +25 | 1 reply | |
| 3/7 | ovl: remove unneeded arg from ovl_verify_origin()fs/ fs/ fs/ | +8 | 0 replies | |
| 4/7 | ovl: disable redirect_dir and index when no xattr supportfs/ | +3 | 0 replies | |
| 5/7 | ovl: ignore redirect_dir and index when no upper layerfs/ | +19 | 0 replies | |
| 6/7 | ovl: add support for verify_dir mount optionDocumentation/ fs/ fs/ +3 more | +65 | 0 replies | |
| 7/7 | ovl: follow decoded origin file handle of merge dirDocumentation/ fs/ fs/ | +40 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] Implement overlayfs verify_dir mount option
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(-)
Signature · 1 line
2.7.4