From: Jan Kara Date: Fri, 2 Sep 2011 23:09:43 +0000 (+0200) Subject: nfs: Enclose hostname in brackets when needed in nfs_do_root_mount X-Git-Tag: v3.4-rc5~29^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98a2139f4f4d7b5fcc3a54c7fddbe88612abed20;p=pandora-kernel.git nfs: Enclose hostname in brackets when needed in nfs_do_root_mount When hostname contains colon (e.g. when it is an IPv6 address) it needs to be enclosed in brackets to make parsing of NFS device string possible. Fix nfs_do_root_mount() to enclose hostname properly when needed. NFS code actually does not need this as it does not parse the string passed by nfs_do_root_mount() but the device string is exposed to userspace in /proc/mounts. CC: Josh Boyer CC: Trond Myklebust Signed-off-by: Jan Kara Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed