Skip to content

Overlayfs index features

Amir Goldstein linux-unionfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ovl: introduce incompatible index featurefs/overlayfs/Kconfig fs/overlayfs/dir.c fs/overlayfs/overlayfs.h +1 more+63 -24 replies
2/4ovl: declare index feature backward compatiblefs/overlayfs/Kconfig+0 -72 replies
3/4ovl: cast a shadow of incomapt index into the pastfs/overlayfs/Kconfig fs/overlayfs/dir.c fs/overlayfs/overlayfs.h +3 more+196 -72 replies
4/4ovl: check incompat/rocompat index featuresfs/overlayfs/overlayfs.h fs/overlayfs/readdir.c fs/overlayfs/super.c +1 more+102 -110 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] Overlayfs index features

Miklos,

This series is an attempt not to repeat the mistakes of the past w.r.t. overlayfs features.

I have given a lot of though about how to scale up with more compat/incompat features instead of an ever growing disclaimer matrix in overlafs/Kconfig.

My proposed solution only covers features compatibility among sub-features of index or features which rely on index being enabled. There is also a best effort attempt to impose features compatibility as far as v3.18 using a trick with a dirty work dir.

Although this series is based on the stable fix patch "ovl: do not cleanup unsupported index entries", it does NOT rely on the fix being applied on v4.13 kernel for correct behavior on downgrade.

The first use case for incompat index features is going to be index=all for NFS export - probably rocompat, not sure yet.

I don't think there is anything is this that should be backported to v4.13 or rushed into v4.14.
What do you think?

Amir.

Amir Goldstein (4):
ovl: introduce incompatible index feature
ovl: declare index feature backward compatible
ovl: cast a shadow of incomapt index into the past
ovl: check incompat/rocompat index features

 fs/overlayfs/Kconfig     |  25 ++++++++---
 fs/overlayfs/dir.c       |  66 +++++++++++++++++++++++++++++
 fs/overlayfs/overlayfs.h |  20 ++++++++-
 fs/overlayfs/readdir.c   | 108 +++++++++++++++++++++++++++++++++++++++++++----
 fs/overlayfs/super.c     |  50 ++++++++++++++++++++--
 fs/overlayfs/util.c      | 105 +++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 354 insertions(+), 20 deletions(-)
Signature · 1 line
2.7.4