Documentation update
authorWouter Verhelst <w@uter.be>
Thu, 1 Apr 2010 11:07:26 +0000 (13:07 +0200)
committerWouter Verhelst <w@uter.be>
Thu, 1 Apr 2010 11:07:26 +0000 (13:07 +0200)
Since we now support IPv6, upodate those bits of the documentation that
assume v4 only.

nbd-client.8.in
nbd-client.8.sgml
nbd-server.1.in
nbd-server.1.sgml
nbd-server.5.in
nbd-server.5.sgml

index 2cd73a1..9ccf65f 100644 (file)
@@ -3,7 +3,7 @@
 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
 .\" Please send any bug reports, improvements, comments, patches, 
 .\" etc. to Steve Cheng <steve@ggi-project.org>.
-.TH "NBD-CLIENT" "8" "26 May 2009" "" ""
+.TH "NBD-CLIENT" "8" "01 April 2010" "" ""
 
 .SH NAME
 nbd-client \- connect to a server running nbd-server(1), to use its    exported block device
@@ -38,8 +38,9 @@ Use a blocksize of "blocksize". Default is 1024;
 allowed values are either 512, 1024, 2048 or 4096
 .TP
 \fBhost\fR
-The hostname of the machine running
-\fBnbd-server\fR\&.
+The hostname or IP address of the machine running
+\fBnbd-server\fR\&. Since 2.9.15, the NBD
+utilities support IPv6.
 .TP
 \fBtimeout=\fIseconds\fB\fR
 Set the connection timeout to "seconds". For this to
index ef120d9..635fc23 100644 (file)
@@ -105,8 +105,9 @@ manpage.1: manpage.sgml
       <varlistentry>
        <term><option>host</option></term>
        <listitem>
-         <para>The hostname of the machine running
-           <command>nbd-server</command>.</para>
+         <para>The hostname or IP address of the machine running
+           <command>nbd-server</command>. Since 2.9.15, the NBD
+           utilities support IPv6.</para>
        </listitem>
       </varlistentry>
       <varlistentry>
index 673a733..9e9f4cd 100644 (file)
@@ -3,13 +3,13 @@
 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
 .\" Please send any bug reports, improvements, comments, patches, 
 .\" etc. to Steve Cheng <steve@ggi-project.org>.
-.TH "NBD-SERVER" "1" "04 August 2009" "" ""
+.TH "NBD-SERVER" "1" "01 April 2010" "" ""
 
 .SH NAME
 nbd-server \- serve a file as a block device to other computers    running the GNU/Linux(tm) or GNU/Hurd Operating    System
 .SH SYNOPSIS
 
-\fBnbd-server \fR \fB\fI[ip:]port\fB\fR \fB\fIfilename\fB\fR [ \fB\fIsize\fB\fR ] [ \fB-r\fR ] [ \fB-m\fR ] [ \fB-c\fR ] [ \fB-l \fIhost list filename\fB\fR ] [ \fB-o \fIsection name\fB\fR ] [ \fB-C \fIconfig file\fB\fR ]
+\fBnbd-server \fR \fB\fI[ip@]port\fB\fR \fB\fIfilename\fB\fR [ \fB\fIsize\fB\fR ] [ \fB-r\fR ] [ \fB-m\fR ] [ \fB-c\fR ] [ \fB-l \fIhost list filename\fB\fR ] [ \fB-o \fIsection name\fB\fR ] [ \fB-C \fIconfig file\fB\fR ]
 
 .SH "DESCRIPTION"
 .PP
@@ -31,8 +31,19 @@ If the file is empty, no clients can connect.
 .SH "OPTIONS"
 .TP
 \fBip\fR
-The ip address the server should listen on. If
-omitted, 0.0.0.0 (aka "any address") is used.
+The ip address the server should listen on. This may
+be an IPv4 address, an IPv6 address, or a hostname. In the
+latter case, nbd-server will do a hostname lookup for the
+name specified, and will listen on the first address that is
+returned. For compatibility with past versions of
+nbd-server, if an IPv4 address is specified, the @ sign that
+serves as separator between the address and port may be
+replaced by a colon.
+
+If this parameter is not specified, nbd-server will
+listen on all local addresses on both IPv4 and IPv6. To
+limit to IPv4, specify the address as 0.0.0.0; to limit to
+IPv6, specify it as ::.
 .TP
 \fBport \fR
 The port the server should listen to. A valid port is
index a492875..7219a9c 100644 (file)
@@ -57,7 +57,7 @@ manpage.1: manpage.sgml
     <cmdsynopsis>
       <command>&dhpackage; </command>
 
-      <arg choice=plain><replaceable>[ip:]port</replaceable</arg>
+      <arg choice=plain><replaceable>[ip@]port</replaceable</arg>
       <arg choice=plain><replaceable>filename</replaceable></arg>
       <arg><replaceable>size</replaceable></arg>
       <arg><option>-r</option></arg>
@@ -94,8 +94,18 @@ manpage.1: manpage.sgml
       <varlistentry>
        <term>ip</term>
        <listitem>
-         <para>The ip address the server should listen on. If
-         omitted, 0.0.0.0 (aka "any address") is used.</para>
+         <para>The ip address the server should listen on. This may
+         be an IPv4 address, an IPv6 address, or a hostname. In the
+         latter case, nbd-server will do a hostname lookup for the
+         name specified, and will listen on the first address that is
+         returned. For compatibility with past versions of
+         nbd-server, if an IPv4 address is specified, the @ sign that
+         serves as separator between the address and port may be
+         replaced by a colon.</para>
+         <para>If this parameter is not specified, nbd-server will
+         listen on all local addresses on both IPv4 and IPv6. To
+         limit to IPv4, specify the address as 0.0.0.0; to limit to
+         IPv6, specify it as ::.</para>
        </listitem>
       </varlistentry>
       <varlistentry>
index b59c2e0..079af82 100644 (file)
@@ -3,7 +3,7 @@
 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
 .\" Please send any bug reports, improvements, comments, patches, 
 .\" etc. to Steve Cheng <steve@ggi-project.org>.
-.TH "NBD-SERVER" "5" "18 August 2009" "" ""
+.TH "NBD-SERVER" "5" "01 April 2010" "" ""
 
 .SH NAME
 /etc/nbd-server/config \- configuration file for nbd-server
@@ -143,10 +143,13 @@ third argument.
 Optional; string
 
 If this option is set, it should contain the local IP
-address (in "dotted-quad" notation) on which we should
-listen to \fBnbd-client\fR(8) connections. If
-it is not set, 0.0.0.0 is used (i.e., "listen on all local
-IP addresses")
+address on which we should listen to
+\fBnbd-client\fR(8) connections. If it is not
+set, \fBnbd-server\fR will listen to all
+local IPv4 and IPv6 addresses. To limit to IPv6, specify the
+address as "::". To limit to IPv4, specify as "0.0.0.0". It
+is not possible to specify more than one IP address
+here.
 .TP
 \fBmultifile\fR
 Optional; boolean.
@@ -156,8 +159,8 @@ If this option is set to true, then
 form
 \fIexportname\fR\&.\fIinteger\fR,
 with \fIexportname\fR being the
-filename that would otherwise have been used (after
-name transformation for virtualization, if any, has been
+filename that would otherwise have been used (after name
+transformation for virtualization, if any, has been
 performed) and \fIinteger\fR an
 integer number, starting with 0 and ending when no more
 files can be found.
index 60da891..e441244 100644 (file)
@@ -238,10 +238,13 @@ manpage.1: manpage.sgml
        <listitem>
          <para>Optional; string</para>
          <para>If this option is set, it should contain the local IP
-         address (in "dotted-quad" notation) on which we should
-         listen to <command>nbd-client</command>(8) connections. If
-         it is not set, 0.0.0.0 is used (i.e., "listen on all local
-         IP addresses")</para>
+         address on which we should listen to
+         <command>nbd-client</command>(8) connections. If it is not
+           set, <command>nbd-server</command> will listen to all
+         local IPv4 and IPv6 addresses. To limit to IPv6, specify the
+         address as "::". To limit to IPv4, specify as "0.0.0.0". It
+         is not possible to specify more than one IP address
+         here.</para>
        </listitem>
       </varlistentry>
       <varlistentry>
@@ -254,8 +257,8 @@ manpage.1: manpage.sgml
            form
            <replaceable>exportname</replaceable>.<replaceable>integer</replaceable>,
            with <replaceable>exportname</replaceable> being the
-           filename that would otherwise have been used (after
-           name transformation for virtualization, if any, has been
+           filename that would otherwise have been used (after name
+           transformation for virtualization, if any, has been
            performed) and <replaceable>integer</replaceable> an
            integer number, starting with 0 and ending when no more
            files can be found.