NFSv4: Fix the referral mount code
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 6 Oct 2009 19:42:20 +0000 (15:42 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 6 Oct 2009 19:42:20 +0000 (15:42 -0400)
commit517be09def6cd7bc231222ee756fde8ea245a6fe
treea1ef080c8cddd9e766590cbede7d9310f6e02e53
parentf4373bf9e67e4a653c8854acd7b02dac9714c98a
NFSv4: Fix the referral mount code

Fix a typo which causes try_location() to use the wrong length argument
when calling nfs_parse_server_name(). This again, causes the initialisation
of the mount's sockaddr structure to fail.

Also ensure that if nfs4_pathname_string() returns an error, then we pass
that error back up the stack instead of ENOENT.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4namespace.c