Skip to content

new kAPI for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR

Miklos Szeredi linux-fsdevel lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 7 repliesIn review
  2. v2 posting 2/218 patches 14 repliesSuperseded
  3. v2 posting 1/21 patch 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v118 patches21 repliesSuperseded

Changes in v3 from the cover letter

- renaming, most notably miscattr -> fileattr
- use memset instead of structure initialization
- drop gratuitous use of file_dentry()
- kerneldoc, comments, spelling improvements
- xfs: enable getting/setting FS_PROJINHERIT_FL and other tweaks
- btrfs: patch logistics

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18vfs: add fileattr opsDocumentation/filesystems/locking.rst Documentation/filesystems/vfs.rst fs/ioctl.c +2 more+414 -04 replies
2/18ecryptfs: stack fileattr opsfs/ecryptfs/inode.c+22 -00 replies
3/18ovl: stack fileattr opsfs/overlayfs/dir.c fs/overlayfs/inode.c fs/overlayfs/overlayfs.h+82 -02 replies
4/18btrfs: convert to fileattrfs/btrfs/ctree.h fs/btrfs/inode.c fs/btrfs/ioctl.c+41 -1920 replies
5/18ext2: convert to fileattrfs/ext2/ext2.h fs/ext2/file.c fs/ext2/ioctl.c +1 more+39 -600 replies
6/18ext4: convert to fileattrfs/ext4/ext4.h fs/ext4/file.c fs/ext4/ioctl.c +1 more+50 -1740 replies
7/18f2fs: convert to fileattrfs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/namei.c+43 -1780 replies
8/18gfs2: convert to fileattrfs/gfs2/file.c fs/gfs2/inode.c fs/gfs2/inode.h+21 -430 replies
9/18orangefs: convert to fileattrfs/orangefs/file.c fs/orangefs/inode.c+50 -790 replies
10/18xfs: convert to fileattrfs/xfs/libxfs/xfs_fs.h fs/xfs/xfs_ioctl.c fs/xfs/xfs_ioctl.h +3 more+74 -2040 replies
11/18efivars: convert to fileattrfs/efivarfs/file.c fs/efivarfs/inode.c+44 -770 replies
12/18hfsplus: convert to fileattrfs/hfsplus/dir.c fs/hfsplus/hfsplus_fs.h fs/hfsplus/inode.c +1 more+59 -950 replies
13/18jfs: convert to fileattrfs/jfs/file.c fs/jfs/ioctl.c fs/jfs/jfs_dinode.h +2 more+43 -850 replies
14/18nilfs2: convert to fileattrfs/nilfs2/file.c fs/nilfs2/ioctl.c fs/nilfs2/namei.c +1 more+25 -430 replies
15/18ocfs2: convert to fileattrfs/ocfs2/file.c fs/ocfs2/ioctl.c fs/ocfs2/ioctl.h +2 more+27 -480 replies
16/18reiserfs: convert to fileattrfs/reiserfs/file.c fs/reiserfs/ioctl.c fs/reiserfs/namei.c +2 more+64 -700 replies
17/18ubifs: convert to fileattrfs/ubifs/dir.c fs/ubifs/file.c fs/ubifs/ioctl.c +1 more+38 -430 replies
18/18vfs: remove unused ioctl helpersfs/inode.c include/linux/fs.h+0 -990 replies

Reviews trailers per patch

1 of 18 patches has a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/18
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18
18/18R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/18] new kAPI for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR

Thanks for the feedback, I think all comments are addressed. Seems "fileattr" has won a small majority of bikesheders' preference, so switching over to that.

Changes since v2:

- renaming, most notably miscattr -> fileattr
- use memset instead of structure initialization
- drop gratuitous use of file_dentry()
- kerneldoc, comments, spelling improvements
- xfs: enable getting/setting FS_PROJINHERIT_FL and other tweaks
- btrfs: patch logistics

Changes since v1:

- rebased on 5.12-rc1 (mnt_userns churn)
- fixed LSM hook on overlayfs

Git tree is available here:

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git#fileattr_v3

Miklos Szeredi (18):
vfs: add fileattr ops
ecryptfs: stack fileattr ops
ovl: stack fileattr ops
btrfs: convert to fileattr
ext2: convert to fileattr
ext4: convert to fileattr
f2fs: convert to fileattr
gfs2: convert to fileattr
orangefs: convert to fileattr
xfs: convert to fileattr
efivars: convert to fileattr
hfsplus: convert to fileattr
jfs: convert to fileattr
nilfs2: convert to fileattr
ocfs2: convert to fileattr
reiserfs: convert to fileattr
ubifs: convert to fileattr
vfs: remove unused ioctl helpers

 Documentation/filesystems/locking.rst |   5 +
 Documentation/filesystems/vfs.rst     |  15 ++
 fs/btrfs/ctree.h                      |   3 +
 fs/btrfs/inode.c                      |   4 +
 fs/btrfs/ioctl.c                      | 226 +++---------------
 fs/ecryptfs/inode.c                   |  22 ++
 fs/efivarfs/file.c                    |  77 ------
 fs/efivarfs/inode.c                   |  44 ++++
 fs/ext2/ext2.h                        |   7 +-
 fs/ext2/file.c                        |   2 +
 fs/ext2/ioctl.c                       |  88 +++----
 fs/ext2/namei.c                       |   2 +
 fs/ext4/ext4.h                        |  12 +-
 fs/ext4/file.c                        |   2 +
 fs/ext4/ioctl.c                       | 208 ++++------------
 fs/ext4/namei.c                       |   2 +
 fs/f2fs/f2fs.h                        |   3 +
 fs/f2fs/file.c                        | 216 +++--------------
 fs/f2fs/namei.c                       |   2 +
 fs/gfs2/file.c                        |  57 ++---
 fs/gfs2/inode.c                       |   4 +
 fs/gfs2/inode.h                       |   3 +
 fs/hfsplus/dir.c                      |   2 +
 fs/hfsplus/hfsplus_fs.h               |  14 +-
 fs/hfsplus/inode.c                    |  54 +++++
 fs/hfsplus/ioctl.c                    |  84 -------
 fs/inode.c                            |  87 -------
 fs/ioctl.c                            | 331 ++++++++++++++++++++++++++
 fs/jfs/file.c                         |   6 +-
 fs/jfs/ioctl.c                        | 105 +++-----
 fs/jfs/jfs_dinode.h                   |   7 -
 fs/jfs/jfs_inode.h                    |   4 +-
 fs/jfs/namei.c                        |   6 +-
 fs/nilfs2/file.c                      |   2 +
 fs/nilfs2/ioctl.c                     |  61 ++---
 fs/nilfs2/namei.c                     |   2 +
 fs/nilfs2/nilfs.h                     |   3 +
 fs/ocfs2/file.c                       |   2 +
 fs/ocfs2/ioctl.c                      |  59 ++---
 fs/ocfs2/ioctl.h                      |   3 +
 fs/ocfs2/namei.c                      |   3 +
 fs/ocfs2/ocfs2_ioctl.h                |   8 -
 fs/orangefs/file.c                    |  79 ------
 fs/orangefs/inode.c                   |  50 ++++
 fs/overlayfs/dir.c                    |   2 +
 fs/overlayfs/inode.c                  |  77 ++++++
 fs/overlayfs/overlayfs.h              |   3 +
 fs/reiserfs/file.c                    |   2 +
 fs/reiserfs/ioctl.c                   | 121 +++++-----
 fs/reiserfs/namei.c                   |   2 +
 fs/reiserfs/reiserfs.h                |   7 +-
 fs/reiserfs/super.c                   |   2 +-
 fs/ubifs/dir.c                        |   2 +
 fs/ubifs/file.c                       |   2 +
 fs/ubifs/ioctl.c                      |  74 +++---
 fs/ubifs/ubifs.h                      |   3 +
 fs/xfs/libxfs/xfs_fs.h                |   4 -
 fs/xfs/xfs_ioctl.c                    | 252 +++++---------------
 fs/xfs/xfs_ioctl.h                    |  11 +
 fs/xfs/xfs_ioctl32.c                  |   2 -
 fs/xfs/xfs_ioctl32.h                  |   2 -
 fs/xfs/xfs_iops.c                     |   7 +
 include/linux/fileattr.h              |  59 +++++
 include/linux/fs.h                    |  16 +-
 64 files changed, 1136 insertions(+), 1490 deletions(-)
 create mode 100644 include/linux/fileattr.h
Signature · 1 line
2.30.2