mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
NFSv4 store server support for fs_location attribute
Define and store if server returns it supports fs_locations attribute as a capability. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
committed by
Anna Schumaker
parent
90e12a3191
commit
8a59bb93b7
@@ -3875,6 +3875,8 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f
|
|||||||
if (res.attr_bitmask[2] & FATTR4_WORD2_SECURITY_LABEL)
|
if (res.attr_bitmask[2] & FATTR4_WORD2_SECURITY_LABEL)
|
||||||
server->caps |= NFS_CAP_SECURITY_LABEL;
|
server->caps |= NFS_CAP_SECURITY_LABEL;
|
||||||
#endif
|
#endif
|
||||||
|
if (res.attr_bitmask[0] & FATTR4_WORD0_FS_LOCATIONS)
|
||||||
|
server->caps |= NFS_CAP_FS_LOCATIONS;
|
||||||
if (!(res.attr_bitmask[0] & FATTR4_WORD0_FILEID))
|
if (!(res.attr_bitmask[0] & FATTR4_WORD0_FILEID))
|
||||||
server->fattr_valid &= ~NFS_ATTR_FATTR_FILEID;
|
server->fattr_valid &= ~NFS_ATTR_FATTR_FILEID;
|
||||||
if (!(res.attr_bitmask[1] & FATTR4_WORD1_MODE))
|
if (!(res.attr_bitmask[1] & FATTR4_WORD1_MODE))
|
||||||
|
|||||||
@@ -289,5 +289,5 @@ struct nfs_server {
|
|||||||
#define NFS_CAP_COPY_NOTIFY (1U << 27)
|
#define NFS_CAP_COPY_NOTIFY (1U << 27)
|
||||||
#define NFS_CAP_XATTR (1U << 28)
|
#define NFS_CAP_XATTR (1U << 28)
|
||||||
#define NFS_CAP_READ_PLUS (1U << 29)
|
#define NFS_CAP_READ_PLUS (1U << 29)
|
||||||
|
#define NFS_CAP_FS_LOCATIONS (1U << 30)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user