[PATCH v2 0/3] Overlayfs fileattr related fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx/
[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




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux