All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] command line IPv6 support for exportfs
@ 2014-03-12 17:47 Chuck Lever
  2014-03-12 17:47 ` [PATCH 1/2] exportfs: Refactor exportfs() and unexportfs() Chuck Lever
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chuck Lever @ 2014-03-12 17:47 UTC (permalink / raw)
  To: linux-nfs

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-17 14:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-12 17:47 [PATCH 0/2] command line IPv6 support for exportfs Chuck Lever
2014-03-12 17:47 ` [PATCH 1/2] exportfs: Refactor exportfs() and unexportfs() Chuck Lever
2014-03-12 17:47 ` [PATCH 2/2] exportfs: Support raw IPv6 addresses with "client:/path" Chuck Lever
2014-03-17 14:39 ` [PATCH 0/2] command line IPv6 support for exportfs Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.