Overlayfs consistency verification with full index
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest23 patches 52 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | ovl: disable index when no xattr supportfs/ | +2 | 0 replies | |
| 2/23 | ovl: ignore index mount option when no upper layerfs/ | +14 | 3 replies | |
| 3/23 | ovl: store layer index in ovl_layerfs/ fs/ fs/ | +4 | 7 replies | |
| 4/23 | ovl: factor out ovl_check_origin_fh()fs/ | +92 | 0 replies | |
| 5/23 | ovl: pass ovl_layer array to ovl_check_origin_fh()fs/ fs/ fs/ +1 more | +22 | 2 replies | |
| 6/23 | ovl: add support for "verify" featurefs/ fs/ fs/ +2 more | +69 | 13 replies | |
| 7/23 | ovl: verify stored origin fh matches lower dirDocumentation/ fs/ | +29 | 9 replies | |
| 8/23 | ovl: unbless lower st_ino of files under unverified redirected dirfs/ fs/ fs/ +1 more | +49 | 3 replies | |
| 9/23 | ovl: lookup index for directoriesfs/ | +35 | 2 replies | |
| 10/23 | ovl: verify whiteout index entries on mountfs/ | +13 | 0 replies | |
| 11/23 | ovl: verify directory index entries on mountfs/ fs/ | +73 | 0 replies | |
| 12/23 | ovl: cleanup temp index entriesfs/ | +24 | 2 replies | |
| 13/23 | ovl: create ovl_need_index() helperfs/ fs/ fs/ | +22 | 0 replies | |
| 14/23 | ovl: index all files on copy up with 'verify=on'fs/ | +4 | 2 replies | |
| 15/23 | ovl: index directories on copy up with 'verify=on'fs/ fs/ fs/ +1 more | +115 | 4 replies | |
| 16/23 | ovl: cleanup dir index when dir nlink drops to zerofs/ | +3 | 0 replies | |
| 17/23 | ovl: whiteout index when union nlink drops to zerofs/ fs/ fs/ | +48 | 2 replies | |
| 18/23 | ovl: whiteout orphan index entries on mountfs/ fs/ | +47 | 0 replies | |
| 19/23 | ovl: factor out ovl_get_index_fh() helperfs/ fs/ | +50 | 0 replies | |
| 20/23 | ovl: do not pass overlay dentry to ovl_get_inode()fs/ fs/ fs/ | +12 | 0 replies | |
| 21/23 | ovl: grab i_count reference of lower inodefs/ fs/ | +2 | 0 replies | |
| 22/23 | ovl: use d_splice_alias() in place of d_add() in lookupfs/ | +1 | 0 replies | |
| 23/23 | ovl: copy up of disconnected dentriesfs/ fs/ fs/ | +48 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/23] Overlayfs consistency verification with full index
Miklos,
This is the 2nd revision of the prep patch series for NFS export. I am posing the prep patches only to overlayfs list and will post NFS export implementation to fsdevel.
In the 1st revision the mount option 'index=all' was used to request a full index. This revision re-brands the feature as 'verify=on', including a config/module option and documentation that explains the benefits of full index (i.e. avoid multiple redirect).
The prep series goes on a bit beyond implementation of 'verify=on'. Patches 17-23 create the whiteout index entries and make some more changes that are prerequisites for NFS export implementation.
To sanity test full index, I have implemented _overlay_check_fs() helper for xfstests [3], which is a very basic "fsck" of the index dir. This helper is called at the end of each overlay xfstest to verify the sanity of the index entries. There is also a new test to verify multiple redirect dir is detected on lookup.
The series is based on top of my ovl-fixes [1] branch, which includes some patches I had already posted. The complete NFS export work is available here [2].
Amir.
[1] https://github.com/amir73il/linux/commits/ovl-fixes
[2] https://github.com/amir73il/linux/commits/ovl-nfs-export-v2
[3] https://github.com/amir73il/xfstests/commits/ovl-index-all
Amir Goldstein (23):
ovl: disable index when no xattr support
ovl: ignore index mount option when no upper layer
ovl: store layer index in ovl_layer
ovl: factor out ovl_check_origin_fh()
ovl: pass ovl_layer array to ovl_check_origin_fh()
ovl: add support for "verify" feature
ovl: verify stored origin fh matches lower dir
ovl: unbless lower st_ino of files under unverified redirected dir
ovl: lookup index for directories
ovl: verify whiteout index entries on mount
ovl: verify directory index entries on mount
ovl: cleanup temp index entries
ovl: create ovl_need_index() helper
ovl: index all files on copy up with 'verify=on'
ovl: index directories on copy up with 'verify=on'
ovl: cleanup dir index when dir nlink drops to zero
ovl: whiteout index when union nlink drops to zero
ovl: whiteout orphan index entries on mount
ovl: factor out ovl_get_index_fh() helper
ovl: do not pass overlay dentry to ovl_get_inode()
ovl: grab i_count reference of lower inode
ovl: use d_splice_alias() in place of d_add() in lookup
ovl: copy up of disconnected dentries
Documentation/filesystems/overlayfs.txt | 16 ++ fs/dcache.c | 1 + fs/overlayfs/Kconfig | 18 ++ fs/overlayfs/copy_up.c | 179 ++++++++++--- fs/overlayfs/dir.c | 58 +++-- fs/overlayfs/inode.c | 38 ++- fs/overlayfs/namei.c | 442 +++++++++++++++++++++++--------- fs/overlayfs/overlayfs.h | 29 ++- fs/overlayfs/ovl_entry.h | 3 + fs/overlayfs/readdir.c | 37 ++- fs/overlayfs/super.c | 74 ++++-- fs/overlayfs/util.c | 94 +++++-- 12 files changed, 752 insertions(+), 237 deletions(-)
Signature · 1 line
2.7.4