nfs: Fix misparsing of nfsv4 fs_locations attribute
authorJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 20 Aug 2008 20:10:23 +0000 (16:10 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 7 Oct 2008 22:17:47 +0000 (18:17 -0400)
commitea31a4437c59219bf3ea946d58984b01a45a289c
treed386f91c39461c7505e614f0b281f0e7e9b99298
parentf0c929251e01a7a86b6254c775cb6b65c6457f10
nfs: Fix misparsing of nfsv4 fs_locations attribute

The code incorrectly assumes here that the server name (or ip address)
is null-terminated.  This can cause referrals to fail in some cases.

Also support ipv6 addresses.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/internal.h
fs/nfs/nfs4namespace.c
fs/nfs/super.c