]> git.baikalelectronics.ru Git - kernel.git/commit
nfs4: fix referrals on mounts that use IPv6 addrs
authorWeston Andros Adamson <dros@netapp.com>
Tue, 24 Apr 2012 20:50:37 +0000 (16:50 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 26 Apr 2012 16:11:29 +0000 (12:11 -0400)
commitea791e4c37b3604396d8440033942c8e155d8532
treea1bc797ef749f93d39a2112022fefcb29bfa68f0
parent8e1187418cf7e212ac95bbcfbf0f06cd8bcaa367
nfs4: fix referrals on mounts that use IPv6 addrs

All referrals (IPv4 addr, IPv6 addr, and DNS) are broken on mounts of
IPv6 addresses, because validation code uses a path that is parsed
from the dev_name ("<server>:<path>") by splitting on the first colon and
colons are used in IPv6 addrs.
This patch ignores colons within IPv6 addresses that are escaped by '[' and ']'.

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