Skip to content

Commit 361e624

Browse files
Manoj NaikTrond Myklebust
authored andcommitted
NFSv4: GETATTR attributes on referral
Per referral draft, only fs_locations, fsid, and mounted_on_fileid can be requested in a GETATTR on referrals. Signed-off-by: Manoj Naik <manoj@almaden.ibm.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 99baf62 commit 361e624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfs/nfs4proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3575,8 +3575,8 @@ int nfs4_proc_fs_locations(struct inode *dir, struct dentry *dentry,
35753575
{
35763576
struct nfs_server *server = NFS_SERVER(dir);
35773577
u32 bitmask[2] = {
3578-
[0] = server->attr_bitmask[0] | FATTR4_WORD0_FS_LOCATIONS,
3579-
[1] = server->attr_bitmask[1],
3578+
[0] = FATTR4_WORD0_FSID | FATTR4_WORD0_FS_LOCATIONS,
3579+
[1] = FATTR4_WORD1_MOUNTED_ON_FILEID,
35803580
};
35813581
struct nfs4_fs_locations_arg args = {
35823582
.dir_fh = NFS_FH(dir),

0 commit comments

Comments
 (0)