History

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.

Frank van der Linden committed 6 years ago

Commit 9a67fcc1 parent 030eb042 files · +8 −0Browse files

Unified · Split

2 files
  1. include/linux/nfs4.h +5 −0
  2. include/linux/nfs_fs.h +3 −0
include/linux/nfs4.h+5−0
@@ -553,6 +553,11 @@ enum { · 552 unmodified lines
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+3−0
@@ -212,6 +212,9 @@ struct nfs4_copy_state { · 211 unmodified lines
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