Skip to content

Overlayfs: constant st_ino/d_ino for non-samefs

Amir Goldstein linux-unionfs 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest7 patches 15 repliesIn review
  2. v89 patches 16 repliesSuperseded
  3. v78 patches 14 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v69 patches4 repliesSuperseded
v54 patches17 repliesSuperseded

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 filesSizeRepliesApplied
1/7ovl: factor out ovl_map_dev_ino() helperfs/overlayfs/inode.c fs/overlayfs/overlayfs.h fs/overlayfs/util.c+52 -390 replies
2/7ovl: allocate anon bdev per unique lower fsfs/overlayfs/inode.c fs/overlayfs/ovl_entry.h fs/overlayfs/super.c +1 more+72 -280 replies
3/7ovl: constant st_ino for non-samefs with xinofs/overlayfs/inode.c fs/overlayfs/overlayfs.h fs/overlayfs/ovl_entry.h +2 more+76 -108 replies
4/7ovl: consistent i_ino for non-samefs with xinofs/overlayfs/export.c fs/overlayfs/inode.c fs/overlayfs/namei.c +1 more+21 -140 replies
5/7ovl: consistent d_ino for non-samefs with xinofs/overlayfs/readdir.c+39 -60 replies
6/7ovl: add support for "xino" mount optionfs/overlayfs/ovl_entry.h fs/overlayfs/super.c+33 -26 replies
7/7ovl: update documentation w.r.t "xino" featureDocumentation/filesystems/overlayfs.txt+33 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

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