Re: [PATCH 2/4] NFS: Support raw IPv6 address hostnames during NFS mount operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter Staubach wrote:
Chuck Lever wrote:
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.


It seems unfortunate that the convention couldn't have been to
look for the first instance of ":/" and break the strings there.

I wonder if you can ever specify an export path that does not begin with a '/' -- is that possible when mounting an NFS server that exports, say, an old-fashioned HFS volume?

  "macintosh::Macintosh HD:Users:cel"

Looking for only the first colon gives the correct results in this case, but looking for ":/" would not.

Likewise on FAT32:

  "windows:\Documents and Settings\Chuck Lever\My Documents"
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux