summaryrefslogtreecommitdiffstats
path: root/abs/extra/nbd/config
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 20:35:37 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 20:35:37 (GMT)
commitc16d87c6431130c7ef4081ced7372ebbf1c83ad5 (patch)
tree111b28bd625d2771885fe18269550b3364667d96 /abs/extra/nbd/config
parent2194e3567f7560cfbbe986444f0fc8cc4683922c (diff)
downloadlinhes_pkgbuild-c16d87c6431130c7ef4081ced7372ebbf1c83ad5.zip
linhes_pkgbuild-c16d87c6431130c7ef4081ced7372ebbf1c83ad5.tar.gz
linhes_pkgbuild-c16d87c6431130c7ef4081ced7372ebbf1c83ad5.tar.bz2
nbd: 3.2
Diffstat (limited to 'abs/extra/nbd/config')
-rw-r--r--abs/extra/nbd/config33
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/extra/nbd/config b/abs/extra/nbd/config
new file mode 100644
index 0000000..777f0ef
--- /dev/null
+++ b/abs/extra/nbd/config
@@ -0,0 +1,33 @@
+[generic]
+ # The [generic] section is required, even if nothing is specified
+ # there.
+ # When either of these options are specified, nbd-server drops
+ # privileges to the given user and group after opening ports, but
+ # _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
+ # 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
+ readonly = false
+ multifile = false
+ copyonwrite = false
+ prerun = dd if=/dev/zero of=%s bs=1k count=500
+ postrun = rm -f %s
+[otherexport]
+ exportname = /export/nbd/experiment
+ # The other options are all optional, except this one in case
+ # the oldstyle option is used in [generic]:
+ # port = 12346