summaryrefslogtreecommitdiff
path: root/community/nbd/config
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-31 22:46:59 +0000
committerroot <root@rshg047.dnsready.net>2011-05-31 22:46:59 +0000
commitc40a217db5f63be3aa88a32ad77ec93efb40d95c (patch)
treebb98d36456ecf48105be6f0bd57c480eb8f32619 /community/nbd/config
parenta422536e1ba326bff507ba81859c784a135d1804 (diff)
Tue May 31 22:46:59 UTC 2011
Diffstat (limited to 'community/nbd/config')
-rw-r--r--community/nbd/config24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/nbd/config b/community/nbd/config
new file mode 100644
index 000000000..f90c36b23
--- /dev/null
+++ b/community/nbd/config
@@ -0,0 +1,24 @@
+# This is a comment
+[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
+[export1]
+ exportname = /export/nbd/export1-file
+ 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
+ port = 12346
+ # The other options are all optional.