]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/nfs/super.c
NFS: Support raw IPv6 address hostnames during NFS mount operation
authorChuck Lever <chuck.lever@oracle.com>
Mon, 23 Jun 2008 16:36:45 +0000 (12:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 Jul 2008 16:09:27 +0000 (12:09 -0400)
commitd1aa08257312f1439c1ab7c8a18e3856f9530f46
tree04ac6b07e5fda3ea93a706fb4074e92b7a95aee3
parentdc04589827f7e1af12714af8bb00e3f3c4c48c62
NFS: Support raw IPv6 address hostnames during NFS mount operation

Traditionally the mount command has looked for a ":" to separate the
server's hostname from the export path in the mounted on device name,
like this:

mount server:/export /mounted/on/dir

The server's hostname is "server" and the export path is "/export".

You can also substitute a specific IPv4 network address for the server
hostname, like this:

mount 192.168.0.55:/export /mounted/on/dir

Raw IPv6 addresses present a problem, however, because they look
something like this:

fe80::200:5aff:fe00:30b

Note the use of colons.

To get around the presence of colons, copy the Solaris convention used for
mounting IPv6 servers by address: wrap a raw IPv6 address with square
brackets.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c