[PATCH 2/3] nfs4: don't check rootfh for REFERRAL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



NFS_ATTR_FATTR_V4_REFERRAL flag can be set only via
either nfs4_proc_lookup() or nfs_do_refmount(),
so that check never satisfy.

Signed-off-by: Gusev Vitaliy <gusev.vitaliy@xxxxxxxxxxx>

---
diff --git a/fs/nfs/getroot.c b/fs/nfs/getroot.c
index b5ffe8f..3031ef7 100644
--- a/fs/nfs/getroot.c
+++ b/fs/nfs/getroot.c
@@ -152,13 +152,6 @@ int nfs4_get_rootfh(struct nfs_server *server,
struct nfs_fh *mntfh)
 		goto out;
 	}
 
-	if (fsinfo.fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) {
-		printk(KERN_ERR "nfs4_get_rootfh:"
-		       " getroot obtained referral\n");
-		ret = -EREMOTE;
-		goto out;
-	}
-
 	memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid));
 out:
 	nfs_free_fattr(fsinfo.fattr);

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux