Skip to content

Commit 8a59bb9

Browse files
olgakorn1amschuma-ntap
authored andcommitted
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 <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 90e12a3 commit 8a59bb9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

fs/nfs/nfs4proc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,6 +3875,8 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f
38753875
if (res.attr_bitmask[2] & FATTR4_WORD2_SECURITY_LABEL)
38763876
server->caps |= NFS_CAP_SECURITY_LABEL;
38773877
#endif
3878+
if (res.attr_bitmask[0] & FATTR4_WORD0_FS_LOCATIONS)
3879+
server->caps |= NFS_CAP_FS_LOCATIONS;
38783880
if (!(res.attr_bitmask[0] & FATTR4_WORD0_FILEID))
38793881
server->fattr_valid &= ~NFS_ATTR_FATTR_FILEID;
38803882
if (!(res.attr_bitmask[1] & FATTR4_WORD1_MODE))

include/linux/nfs_fs_sb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,5 +289,5 @@ struct nfs_server {
289289
#define NFS_CAP_COPY_NOTIFY (1U << 27)
290290
#define NFS_CAP_XATTR (1U << 28)
291291
#define NFS_CAP_READ_PLUS (1U << 29)
292-
292+
#define NFS_CAP_FS_LOCATIONS (1U << 30)
293293
#endif

0 commit comments

Comments
 (0)