Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfsd: add defines for NFSv4.2 extended attribute support

Add defines for server-side extended attribute support. Most have
already been added as part of client support, but these are
the network order error codes for the noxattr and xattr2big errors,
and the addition of the xattr support to the supported file
attributes (if configured).

Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

Frank van der Linden and committed by
Chuck Lever
4dd05fce 874c7b8e

+4 -1
+4 -1
fs/nfsd/nfsd.h
··· 286 286 #define nfserr_wrong_lfs cpu_to_be32(NFS4ERR_WRONG_LFS) 287 287 #define nfserr_badlabel cpu_to_be32(NFS4ERR_BADLABEL) 288 288 #define nfserr_file_open cpu_to_be32(NFS4ERR_FILE_OPEN) 289 + #define nfserr_xattr2big cpu_to_be32(NFS4ERR_XATTR2BIG) 290 + #define nfserr_noxattr cpu_to_be32(NFS4ERR_NOXATTR) 289 291 290 292 /* error codes for internal use */ 291 293 /* if a request fails due to kmalloc failure, it gets dropped. ··· 389 387 (NFSD4_1_SUPPORTED_ATTRS_WORD2 | \ 390 388 FATTR4_WORD2_CHANGE_ATTR_TYPE | \ 391 389 FATTR4_WORD2_MODE_UMASK | \ 392 - NFSD4_2_SECURITY_ATTRS) 390 + NFSD4_2_SECURITY_ATTRS | \ 391 + FATTR4_WORD2_XATTR_SUPPORT) 393 392 394 393 extern const u32 nfsd_suppattrs[3][3]; 395 394