[PATCH 0/2] command line IPv6 support for exportfs

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

 



Though /etc/exports can contain IPv6 literals as client names, the
exportfs command doesn't allow an IPv6 literal when adding or
removing a temporary export.

  exportfs [-u] client:/path

If "client" is an IPv6 presentation address, it contains colons.
The problem is that exportfs already uses a colon to separate the
client identifier from the export pathname.

To escape colons in the client name, adopt the same mechanism that
is used for mount.nfs.  Users wrap IPv6 literals in square brackets.

exportfs has to be a little more complicated than mount.nfs,
however.  It must still be able to distinguish hostname wildcards
that use brackets, and be able to deal with network address
prefixes.

With this patch series,

  [abc]-machine.example.org:/export

  192.168.76.16:/share

  [2604:8800:100:81fc:82ee:73ff:fe43:d64f]:/export/home

  [fe80::]/64:/var/tmp

are now all accepted by exportfs.

---

Chuck Lever (2):
      exportfs: Refactor exportfs() and unexportfs()
      exportfs: Support raw IPv6 addresses with "client:/path"


 utils/exportfs/exportfs.c   |  134 ++++++++++++++++++++++++++++++++++++-------
 utils/exportfs/exportfs.man |   16 +++++
 2 files changed, 127 insertions(+), 23 deletions(-)

-- 
Chuck Lever
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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