Skip to content

Commit 9a67fcc

Browse files
fllindenTrond Myklebust
authored andcommitted
nfs: add client side only definitions for user xattrs
Add client-side only definitions for user extended attributes (RFC8276). These are the access bits as used by the client code, and the CLNT procedure number definition. Signed-off-by: Frank van der Linden <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 030eb04 commit 9a67fcc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/linux/nfs4.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,11 @@ enum {
553553
NFSPROC4_CLNT_LAYOUTERROR,
554554

555555
NFSPROC4_CLNT_COPY_NOTIFY,
556+
557+
NFSPROC4_CLNT_GETXATTR,
558+
NFSPROC4_CLNT_SETXATTR,
559+
NFSPROC4_CLNT_LISTXATTRS,
560+
NFSPROC4_CLNT_REMOVEXATTR,
556561
};
557562

558563
/* nfs41 types */

include/linux/nfs_fs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ struct nfs4_copy_state {
212212
#define NFS_ACCESS_EXTEND 0x0008
213213
#define NFS_ACCESS_DELETE 0x0010
214214
#define NFS_ACCESS_EXECUTE 0x0020
215+
#define NFS_ACCESS_XAREAD 0x0040
216+
#define NFS_ACCESS_XAWRITE 0x0080
217+
#define NFS_ACCESS_XALIST 0x0100
215218

216219
/*
217220
* Cache validity bit flags

0 commit comments

Comments
 (0)