overlayfs: Delayed copy up of data
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v15 Latest30 patches 46 repliesIn review
- v1431 patches 35 repliesSuperseded
- v1328 patches 62 repliesSuperseded
Earlier versions · 12
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v12 | 17 patches | 45 replies | Superseded | |
| v11 | 18 patches | 7 replies | Superseded | |
| v10 | 18 patches | 14 replies | Superseded | |
| v9 | 15 patches | 32 replies | Superseded | |
| v8 RFC | 15 patches | 6 replies | Superseded | |
| v7 RFC | 14 patches | 18 replies | Superseded | |
| v6 RFC | 15 patches | 19 replies | Superseded | |
| v5 RFC | 13 patches | 30 replies | Superseded | |
| v4 RFC | 11 patches | 36 replies | Superseded | |
| v3 RFC | 9 patches | 21 replies | Superseded | |
| v2 RFC | 8 patches | 6 replies | Superseded | |
| v1 RFC | 7 patches | 22 replies | Superseded |
Changes in v15 from the cover letter
- Rebased on top of latest overlayfs-rorw branch.
- Took care of amir's comments on V14.
- Started passing arguments to ovl_get_inode() in a structure, as argument list was getting too long.
- Simplified ovl_fsync() and helper patches a bit.
- unioned new field lowerdata with dir cache.
- Renamed few helper functions with suffix _realdata instead of
- Renamed ovl_rel_redirect() to ovl_need_absolute_redirect() and also now started calling it from ovl_set_redirect() instead of calling from ovl_reaname() directly.
- Added argument padding to ovl_get_redirect_xattr() and reused this function in ovl_check_redirect().
- Added a helper funciton ovl_copy_up_with_data() to force full copy up (metadata plus data).
Patches in v15 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/30 | ovl: Pass argument to ovl_get_inode() in a structurefs/ fs/ fs/ +2 more | +26 | 4 replies | |
| 2/30 | ovl: Initialize ovl_inode->redirect in ovl_get_inode()fs/ fs/ fs/ +1 more | +8 | 1 reply | |
| 3/30 | ovl: Move the copy up helpers to copy_up.cfs/ fs/ fs/ | +33 | 0 replies | |
| 4/30 | ovl: Provide a mount option metacopy=on/off for metadata copyupDocumentation/ fs/ fs/ +1 more | +92 | 0 replies | |
| 5/30 | ovl: During copy up, first copy up metadata and then datafs/ | +17 | 0 replies | |
| 6/30 | ovl: Copy up only metadata during copy up where it makes sensefs/ | +24 | 0 replies | |
| 7/30 | ovl: Add helper ovl_already_copied_up()fs/ fs/ fs/ | +28 | 0 replies | |
| 8/30 | ovl: A new xattr OVL_XATTR_METACOPY for file on upperfs/ fs/ fs/ +2 more | +143 | 0 replies | |
| 9/30 | ovl: Use out_err instead of out_nomemfs/ | +10 | 0 replies | |
| 10/30 | ovl: Modify ovl_lookup() and friends to lookup metacopy dentryfs/ fs/ fs/ +2 more | +130 | 20 replies | |
| 11/30 | ovl: Copy up meta inode data from lowest data inodefs/ fs/ fs/ | +25 | 0 replies | |
| 12/30 | ovl: Add helper ovl_dentry_lowerdata() to get lower data dentryfs/ fs/ | +15 | 0 replies | |
| 13/30 | ovl: Add an helper to get real data dentryfs/ fs/ | +13 | 0 replies | |
| 14/30 | ovl: Fix ovl_getattr() to get number of blocks from lowerfs/ fs/ fs/ | +51 | 0 replies | |
| 15/30 | ovl: Store lower data inode in ovl_inodefs/ fs/ fs/ +4 more | +29 | 2 replies | |
| 16/30 | ovl: Add helper ovl_inode_real_data()fs/ fs/ | +13 | 1 reply | |
| 17/30 | ovl: Open file with data except for the case of fsyncfs/ | +33 | 7 replies | |
| 18/30 | ovl: Do not expose metacopy only dentry from d_real()fs/ | +3 | 1 reply | |
| 19/30 | ovl: Move some dir related ovl_lookup_single() code in else blockfs/ | +15 | 0 replies | |
| 20/30 | ovl: Check redirects for metacopy filesfs/ | +2 | 0 replies | |
| 21/30 | ovl: Treat metacopy dentries as type OVL_PATH_MERGEfs/ | +2 | 0 replies | |
| 22/30 | ovl: Add an inode flag OVL_CONST_INOfs/ fs/ | +5 | 0 replies | |
| 23/30 | ovl: Do not set dentry type ORIGIN for broken hardlinksfs/ | +2 | 0 replies | |
| 24/30 | ovl: Set redirect on metacopy files upon renamefs/ | +46 | 1 reply | |
| 25/30 | ovl: Set redirect on upper inode when it is linkedfs/ | +14 | 0 replies | |
| 26/30 | ovl: Check redirect on index as wellfs/ fs/ fs/ | +64 | 2 replies | |
| 27/30 | ovl: Disbale metacopy for MAP_SHARED mmap()fs/ fs/ fs/ | +7 | 0 replies | |
| 28/30 | ovl: Do not do metadata only copy-up for truncate operationfs/ | +8 | 0 replies | |
| 29/30 | ovl: Do not do metacopy only for ioctl modifying file attrfs/ | +1 | 0 replies | |
| 30/30 | ovl: Enable metadata only featurefs/ | +0 | 0 replies |
Reviews trailers per patch
All 30 patches have a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v15 00/30] overlayfs: Delayed copy up of data
Hi,
This is V15 of overlayfs metadata only copy-up feature. These patches I have rebased on top of Miklos overlayfs-next tree's branch overlayfs-rorw.
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-rorw
Patches are also available here.
https://github.com/rhvgoyal/linux/commits/metacopy-v15
I have run unionmount-testsuite and "./check -overlay -g quick" and that works. Only 4 overlay tests fail, which fail on vanilla kernel too.
Changes from V14:
- Rebased on top of latest overlayfs-rorw branch.
- Took care of amir's comments on V14.
- Started passing arguments to ovl_get_inode() in a structure, as argument list was getting too long.
- Simplified ovl_fsync() and helper patches a bit.
- unioned new field lowerdata with dir cache.
- Renamed few helper functions with suffix _realdata instead of
- Renamed ovl_rel_redirect() to ovl_need_absolute_redirect() and also now started calling it from ovl_set_redirect() instead of calling from ovl_reaname() directly.
- Added argument padding to ovl_get_redirect_xattr() and reused this function in ovl_check_redirect().
- Added a helper funciton ovl_copy_up_with_data() to force full copy up (metadata plus data).
Thanks
Vivek
Vivek Goyal (30):
ovl: Pass argument to ovl_get_inode() in a structure
ovl: Initialize ovl_inode->redirect in ovl_get_inode()
ovl: Move the copy up helpers to copy_up.c
ovl: Provide a mount option metacopy=on/off for metadata copyup
ovl: During copy up, first copy up metadata and then data
ovl: Copy up only metadata during copy up where it makes sense
ovl: Add helper ovl_already_copied_up()
ovl: A new xattr OVL_XATTR_METACOPY for file on upper
ovl: Use out_err instead of out_nomem
ovl: Modify ovl_lookup() and friends to lookup metacopy dentry
ovl: Copy up meta inode data from lowest data inode
ovl: Add helper ovl_dentry_lowerdata() to get lower data dentry
ovl: Add an helper to get real data dentry
ovl: Fix ovl_getattr() to get number of blocks from lower
ovl: Store lower data inode in ovl_inode
ovl: Add helper ovl_inode_real_data()
ovl: Open file with data except for the case of fsync
ovl: Do not expose metacopy only dentry from d_real()
ovl: Move some dir related ovl_lookup_single() code in else block
ovl: Check redirects for metacopy files
ovl: Treat metacopy dentries as type OVL_PATH_MERGE
ovl: Add an inode flag OVL_CONST_INO
ovl: Do not set dentry type ORIGIN for broken hardlinks
ovl: Set redirect on metacopy files upon rename
ovl: Set redirect on upper inode when it is linked
ovl: Check redirect on index as well
ovl: Disbale metacopy for MAP_SHARED mmap()
ovl: Do not do metadata only copy-up for truncate operation
ovl: Do not do metacopy only for ioctl modifying file attr
ovl: Enable metadata only feature
Documentation/filesystems/overlayfs.txt | 30 +++- fs/overlayfs/Kconfig | 19 +++ fs/overlayfs/copy_up.c | 161 ++++++++++++++++----- fs/overlayfs/dir.c | 85 ++++++++--- fs/overlayfs/export.c | 8 +- fs/overlayfs/file.c | 53 ++++--- fs/overlayfs/inode.c | 131 ++++++++++------- fs/overlayfs/namei.c | 199 ++++++++++++++++--------- fs/overlayfs/overlayfs.h | 36 ++++- fs/overlayfs/ovl_entry.h | 16 +- fs/overlayfs/super.c | 60 +++++++- fs/overlayfs/util.c | 249 +++++++++++++++++++++++++++++++- 12 files changed, 829 insertions(+), 218 deletions(-)
Signature · 1 line
2.13.6