From patchwork Tue Jun 21 14:10:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 901652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5LEAmA6023485 for ; Tue, 21 Jun 2011 14:10:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756427Ab1FUOKr (ORCPT ); Tue, 21 Jun 2011 10:10:47 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:61024 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751623Ab1FUOKq (ORCPT ); Tue, 21 Jun 2011 10:10:46 -0400 Received: by qyk9 with SMTP id 9so1701433qyk.19 for ; Tue, 21 Jun 2011 07:10:45 -0700 (PDT) Received: by 10.224.200.69 with SMTP id ev5mr2483512qab.217.1308665445461; Tue, 21 Jun 2011 07:10:45 -0700 (PDT) Received: from salusa.poochiereds.net (cpe-076-182-054-018.nc.res.rr.com [76.182.54.18]) by mx.google.com with ESMTPS id g11sm786776qcm.27.2011.06.21.07.10.44 (version=SSLv3 cipher=OTHER); Tue, 21 Jun 2011 07:10:44 -0700 (PDT) From: Jeff Layton To: steved@redhat.com Cc: linux-nfs@vger.kernel.org, chuck.lever@oracle.com Subject: [PATCH] manpage: add info about IPv6 configuration to exports(5) (try #2) Date: Tue, 21 Jun 2011 10:10:41 -0400 Message-Id: <1308665441-16704-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 21 Jun 2011 14:10:49 +0000 (UTC) The parts of the exports(5) manpage that discuss IP addressing neglect IPv6 configuration. Update to include info on how to export to IPv6 subnets and addresses, and add a line demonstrating that to the EXAMPLE section. Signed-off-by: Jeff Layton --- utils/exportfs/exports.man | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/utils/exportfs/exports.man b/utils/exportfs/exports.man index 241b3af..f53da4e 100644 --- a/utils/exportfs/exports.man +++ b/utils/exportfs/exports.man @@ -47,7 +47,7 @@ NFS clients may be specified in a number of ways: .IP "single host This is the most common format. You may specify a host either by an abbreviated name recognized be the resolver, the fully qualified domain -name, or an IP address. +name, an IPv4 address, or an IPv6 address. .IP "IP networks You can also export directories to all hosts on an IP (sub-) network simultaneously. This is done by specifying an IP address and netmask pair @@ -56,8 +56,9 @@ as where the netmask can be specified in dotted-decimal format, or as a contiguous mask length. For example, either `/255.255.252.0' or `/22' appended -to the network base IPv4 address results in identical subnetworks with 10 bits of -host. Wildcard characters generally do not work on IP addresses, though they +to the network base IPv4 address results in identical subnetworks with 10 bits +of host. IPv6 addresses must use a contiguous mask length. Wildcard characters +generally do not work on IP addresses, though they may work by accident when reverse DNS lookups fail. .IP "wildcards Machine names may contain the wildcard characters \fI*\fR and \fI?\fR. @@ -486,6 +487,7 @@ The format for extra export tables is the same as /home/joe pc001(rw,all_squash,anonuid=150,anongid=100) /pub *(ro,insecure,all_squash) /srv/www \-sync,rw server @trusted @external(ro) +/foo 2001:321:9:e54::/64(rw) 192.168.1.0/24(rw) '''/pub/private (noaccess) .fi .PP @@ -501,7 +503,8 @@ option in this entry also allows clients with NFS implementations that don't use a reserved port for NFS. The sixth line exports a directory read-write to the machine 'server' as well as the `@trusted' netgroup, and read-only to netgroup `@external', -all three mounts with the `sync' option enabled. +all three mounts with the `sync' option enabled. The seventh line exports +a directory to both an IPv6 and an IPv4 subnet. ''' The last line denies all NFS clients '''access to the private directory. '''.SH CAVEATS