linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Overlayfs fileattr related fixes
@ 2021-06-17 15:22 Amir Goldstein
  2021-06-17 15:22 ` [PATCH v2 1/3] ovl: pass ovl_fs to ovl_check_setxattr() Amir Goldstein
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Amir Goldstein @ 2021-06-17 15:22 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: Chengguang Xu, linux-unionfs

Miklos,

With these patches, copy up preserves the vfs aware subset of fileattr
flags, so xfstest overlay/075 passes.

I've tested also some generic chattr xfstests and written a new test
to verify the logic of overlay.xflags xattr [2].

Changes since v1 [1]:
- Store (i),(a) flags in xattr text format
- Copy up (A),(S) flags to upper fileattr
- Fixes the problems with setting ovl dirs and hardlinks immutable

[1] https://lore.kernel.org/linux-unionfs/CAJfpeguMQca-+vTdzoDdDWNJraWyqMa3vYRFDWPMk_R6-L7Obw@mail.gmail.com/
[2] https://github.com/amir73il/xfstests/commits/ovl-xflags

Amir Goldstein (3):
  ovl: pass ovl_fs to ovl_check_setxattr()
  ovl: copy up sync/noatime fileattr flags
  ovl: consistent behavior for immutable/append-only inodes

 fs/overlayfs/copy_up.c   |  72 +++++++++++++---
 fs/overlayfs/dir.c       |   6 +-
 fs/overlayfs/inode.c     |  58 ++++++++++---
 fs/overlayfs/namei.c     |   2 +-
 fs/overlayfs/overlayfs.h |  44 +++++++++-
 fs/overlayfs/util.c      | 178 ++++++++++++++++++++++++++++++++++++++-
 6 files changed, 323 insertions(+), 37 deletions(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-18 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 15:22 [PATCH v2 0/3] Overlayfs fileattr related fixes Amir Goldstein
2021-06-17 15:22 ` [PATCH v2 1/3] ovl: pass ovl_fs to ovl_check_setxattr() Amir Goldstein
2021-06-17 15:22 ` [PATCH v2 2/3] ovl: copy up sync/noatime fileattr flags Amir Goldstein
2021-06-17 15:22 ` [PATCH v2 3/3] ovl: consistent behavior for immutable/append-only inodes Amir Goldstein
2021-06-18 13:57   ` Miklos Szeredi
2021-06-18 15:54     ` Amir Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).