Overlayfs: constant st_ino/d_ino for non-samefs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest7 patches 15 repliesIn review
- v89 patches 16 repliesSuperseded
- v78 patches 14 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 9 patches | 4 replies | Superseded | |
| v5 | 4 patches | 17 replies | Superseded |
Changes in v9 from the cover letter
- Use unique fsid instead of layer id
- Assign pseudo_dev per fsid instead of per layer
- Limit "xino" feature to 64bit systems
- Assign xino value i_ino as well for NFSv3 readdir
- Add "xino" documentation patch
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ovl: factor out ovl_map_dev_ino() helperfs/ fs/ fs/ | +52 | 0 replies | |
| 2/7 | ovl: allocate anon bdev per unique lower fsfs/ fs/ fs/ +1 more | +72 | 0 replies | |
| 3/7 | ovl: constant st_ino for non-samefs with xinofs/ fs/ fs/ +2 more | +76 | 8 replies | |
| 4/7 | ovl: consistent i_ino for non-samefs with xinofs/ fs/ fs/ +1 more | +21 | 0 replies | |
| 5/7 | ovl: consistent d_ino for non-samefs with xinofs/ | +39 | 0 replies | |
| 6/7 | ovl: add support for "xino" mount optionfs/ fs/ | +33 | 6 replies | |
| 7/7 | ovl: update documentation w.r.t "xino" featureDocumentation/ | +33 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.
Cover letter [PATCH v9 0/7] Overlayfs: constant st_ino/d_ino for non-samefs
Miklos,
This series provides a solution for some interesting non-samefs cases:
- All the ext* family
- Many other fs with default encode_fh
- xfs and tmpfs with overlay "xino" mount option
The patches are also available on my ovl-xino branch [2]. They are based on some earlier fix patches and they do not conflict with the NFS export optimization patches (ovl-nfs-export branch).
I tested this with upstream overlay/nonsamefs xfstest group:
- Tests pass for ext4
- Tests fail for xfs
- Tests pass for xfs with OVERLAY_MOUNT_OPTIONS=-oxino
I also added --xino option to unionmount-testsuite [2], along with the --verify option, the test verifies constant st_ino and that all objects are on overlay st_dev.
Changes since v8:
- Use unique fsid instead of layer id
- Assign pseudo_dev per fsid instead of per layer
- Limit "xino" feature to 64bit systems
- Assign xino value i_ino as well for NFSv3 readdir
- Add "xino" documentation patch
Thanks,
Amir.
[1] https://github.com/amir73il/linux/commits/ovl-xino
[2] https://github.com/amir73il/unionmount-testsuite/commits/overlayfs-devel
Amir Goldstein (7):
ovl: factor out ovl_map_dev_ino() helper
ovl: allocate anon bdev per unique lower fs
ovl: constant st_ino for non-samefs with xino
ovl: consistent i_ino for non-samefs with xino
ovl: consistent d_ino for non-samefs with xino
ovl: add support for "xino" mount option
ovl: update documentation w.r.t "xino" feature
Documentation/filesystems/overlayfs.txt | 39 +++++++-- fs/overlayfs/export.c | 2 +- fs/overlayfs/inode.c | 140 +++++++++++++++++++++----------- fs/overlayfs/namei.c | 4 +- fs/overlayfs/overlayfs.h | 6 +- fs/overlayfs/ovl_entry.h | 21 +++-- fs/overlayfs/readdir.c | 45 ++++++++-- fs/overlayfs/super.c | 120 ++++++++++++++++++++++----- fs/overlayfs/util.c | 38 ++++++++- 9 files changed, 318 insertions(+), 97 deletions(-)
Signature · 1 line
2.7.4