Skip to content

vfs: expose the inode change attribute via statx

Jeff Layton ceph-devel linux-fsdevel linux-nfs 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/4vfs: report change attribute in statx for IS_I_VERSION inodesfs/stat.c include/linux/stat.h include/uapi/linux/stat.h +1 more+16 -39 replies
2/4nfs: report the change attribute if requestedfs/nfs/inode.c+5 -20 replies
3/4afs: fill out change attribute in statx repliesfs/afs/inode.c+2 -00 replies
4/4ceph: fill in the change attribute in statx requestsfs/ceph/inode.c+9 -50 replies

Reviews trailers per patch

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

PatchXiubo Li
1/4
2/4
3/4
4/4R-b

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

Read the v1 thread

Cover letter [PATCH 0/4] vfs: expose the inode change attribute via statx

The i_version counter is currently only really visible via knfsd with NFSv4, so testing its behavior has always been quite difficult. The main goal of this patchset is to remedy that.

The idea is to expose i_version to userland via statx for all filesystems that support it. The initial usecase for this is to allow for better testing of i_version counter behavior, but it may be useful for userland nfs servers like nfs-ganesha and possibly other situations in the future.

I'll be posting patches for xfsprogs and xfstests that use and test this functionality soon.

Jeff Layton (4):
vfs: report change attribute in statx for IS_I_VERSION inodes
nfs: report the change attribute if requested
afs: fill out change attribute in statx replies
ceph: fill in the change attribute in statx requests

 fs/afs/inode.c            |  2 ++
 fs/ceph/inode.c           | 14 +++++++++-----
 fs/nfs/inode.c            |  7 +++++--
 fs/stat.c                 |  7 +++++++
 include/linux/stat.h      |  1 +
 include/uapi/linux/stat.h |  3 ++-
 samples/vfs/test-statx.c  |  8 ++++++--
 7 files changed, 32 insertions(+), 10 deletions(-)
Signature · 1 line
2.37.2