linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] nfs4: don't check rootfh for REFERRAL
@ 2011-02-07 16:38 Vitaliy Gusev
  0 siblings, 0 replies; only message in thread
From: Vitaliy Gusev @ 2011-02-07 16:38 UTC (permalink / raw)
  To: Al Viro; +Cc: Trond Myklebust, David Howells, linux-fsdevel

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@nexenta.com>

---
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);


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-07 16:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-07 16:38 [PATCH 2/3] nfs4: don't check rootfh for REFERRAL Vitaliy Gusev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).