diff options
Diffstat (limited to 'community/nbd/config')
-rw-r--r-- | community/nbd/config | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/community/nbd/config b/community/nbd/config index f90c36b23..777f0ef24 100644 --- a/community/nbd/config +++ b/community/nbd/config @@ -1,4 +1,3 @@ -# This is a comment [generic] # The [generic] section is required, even if nothing is specified # there. @@ -7,9 +6,18 @@ # _before_ opening files. user = nbd group = nbd + # Since version 2.9.17, nbd-server will do exports on a name + # basis (the used name is the name of the section in which the + # export is specified). This however required an incompatible + # protocol change. To enable backwards-compatible port-based + # exports, uncomment the following line: + # oldstyle = true [export1] exportname = /export/nbd/export1-file - port = 12345 + # The following line will be ignored unless the + # "oldstyle = true" line in the generic section above is + # enabled. + #port = 12345 authfile = /export/nbd/export1-authfile timeout = 30 filesize = 10000000 @@ -20,5 +28,6 @@ postrun = rm -f %s [otherexport] exportname = /export/nbd/experiment - port = 12346 - # The other options are all optional. + # The other options are all optional, except this one in case + # the oldstyle option is used in [generic]: + # port = 12346 |