- <command>nbd-server</command> will look for the
- literal string '%s' in the
- <option>exportname</option>, and replace it by the
- address of the connecting host. The string that
- results from this transformation will be used as an
- absolute pathname that <command>nbd-server</command>
- will attempt to open. As an example, if a client
- connects from 192.168.1.100 and
- <option>exportname</option> is specified as
- <filename>/export/%s</filename>, then nbd-server
- will attempt to serve
- <filename>/export/192.168.1.100</filename>
+ The %s is replaced by the IP address of the connecting
+ host is used as-is. For IPv4, this is done in
+ dotted-quad notation; for IPv6, in hexadecimal form
+ with leading zeros omitted.
+ </para>
+ <para>
+ As an example, if a client connects from 192.168.1.100
+ and <option>exportname</option> is specified as
+ <filename>/export/%s</filename>, then nbd-server will
+ attempt to serve
+ <filename>/export/192.168.1.100</filename>. For IPv6,
+ with a client connecting from 2001:6f8:32f::39, the
+ filename would be
+ <filename>/export/2001:6f8:32f:0:0:0:0:39</filename>