Skip to content

Support btime and other NFSv4 specific attributes

[email protected] linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 7 repliesIn review
  2. v18 patches 21 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8NFS: Expand the type of nfs_fattr->validfs/nfs/inode.c include/linux/nfs_fs_sb.h include/linux/nfs_xdr.h+31 -300 replies
2/8nfs: Add timecreate to nfs inodefs/nfs/inode.c fs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c +3 more+71 -90 replies
3/8NFS: Return the file btime in the statx results when appropriatefs/nfs/inode.c fs/nfs/nfs4trace.h+15 -30 replies
4/8nfs: Add 'archive', 'hidden' and 'system' fields to nfs inodefs/nfs/inode.c fs/nfs/nfs4proc.c fs/nfs/nfs4trace.h +4 more+179 -140 replies
5/8nfs: Add 'time backup' to nfs inodefs/nfs/inode.c fs/nfs/nfs4proc.c fs/nfs/nfs4trace.h +3 more+47 -30 replies
6/8NFSv4: Support the offline bitfs/nfs/inode.c fs/nfs/nfs4proc.c fs/nfs/nfs4trace.h +4 more+55 -35 replies
7/8NFS: Support statx_get and statx_set ioctlsfs/nfs/dir.c fs/nfs/getroot.c fs/nfs/inode.c +12 more+887 -240 replies
8/8NFSv4: Add an ioctl to allow retrieval of the NFS raw ACCESS maskfs/nfs/dir.c fs/nfs/internal.h fs/nfs/nfs4file.c +1 more+80 -190 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/8] Support btime and other NFSv4 specific attributes

From: Trond Myklebust <[email protected]>

NFSv4 has support for a number of extra attributes that are of interest to Samba when it is used to re-export a filesystem to Windows clients. Aside from the btime, which is of interest in statx(), Windows clients have an interest in determining the status of the 'hidden', and 'system' flags.
Backup programs want to read the 'archive' flags and the 'time backup' attribute.
Finally, the 'offline' flag can tell whether or not a file needs to be staged by an HSM system before it can be read or written to.

The patch series also adds an ioctl() to allow userspace retrieval and setting of these attributes where appropriate. It also adds an ioctl() to allow retrieval of the raw NFSv4 ACCESS information, to allow more fine grained determination of the user's access rights to a file or directory. All of this information is of use for Samba.

- v2: Rebase on top of Anna's linux-next

Anne Marie Merritt (3):
nfs: Add timecreate to nfs inode
nfs: Add 'archive', 'hidden' and 'system' fields to nfs inode
nfs: Add 'time backup' to nfs inode

Richard Sharpe (1):
NFS: Support statx_get and statx_set ioctls

Trond Myklebust (4):
NFS: Expand the type of nfs_fattr->valid
NFS: Return the file btime in the statx results when appropriate
NFSv4: Support the offline bit
NFSv4: Add an ioctl to allow retrieval of the NFS raw ACCESS mask

 fs/nfs/dir.c              |  71 ++---
 fs/nfs/getroot.c          |   3 +-
 fs/nfs/inode.c            | 147 +++++++++-
 fs/nfs/internal.h         |  10 +
 fs/nfs/nfs3proc.c         |   1 +
 fs/nfs/nfs4_fs.h          |  31 +++
 fs/nfs/nfs4file.c         | 550 ++++++++++++++++++++++++++++++++++++++
 fs/nfs/nfs4proc.c         | 175 +++++++++++-
 fs/nfs/nfs4trace.h        |   8 +-
 fs/nfs/nfs4xdr.c          | 240 +++++++++++++++--
 fs/nfs/nfstrace.c         |   5 +
 fs/nfs/nfstrace.h         |   9 +-
 fs/nfs/proc.c             |   1 +
 include/linux/nfs4.h      |   1 +
 include/linux/nfs_fs.h    |  15 ++
 include/linux/nfs_fs_sb.h |   2 +-
 include/linux/nfs_xdr.h   |  80 ++++--
 include/uapi/linux/nfs.h  | 101 +++++++
 18 files changed, 1355 insertions(+), 95 deletions(-)
Signature · 1 line
2.33.1