Skip to contentSkip to conversation

nfs4: don't check rootfh for REFERRAL

PATCH New Vitaliy Gusev 1 participant 1 message Feb 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

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

---

fs/nfs/getroot.c +0 -0
index b5ffe8f..3031ef7 100644
@@ -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);