]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Enclose hostname in brackets when needed in nfs_do_root_mount
authorJan Kara <jack@suse.cz>
Fri, 2 Sep 2011 23:09:43 +0000 (01:09 +0200)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 20 Apr 2012 21:59:01 +0000 (17:59 -0400)
commitc5158ecea060461c021b9c95ae71d71e54f02dc8
tree99f94d7fabedefbae0a6e40a1c8f485171616565
parent6d9038bfdb95f2d8d9461b3fc5855e75bf67de6c
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 <jwboyer@redhat.com>
CC: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c