/path/to/file, not ../file. See the nbd-server manpage for details on
any available options.
-Finally, you'll be able to star the client:
+Finally, you'll be able to start the client:
nbd-client <hostname> <port> <nbd device>
# This is a comment
[generic]
- # The [generic] section is required, but can not currently
- # contain any options. This section name is reserved for future
- # use.
+ # 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 = no
+ readonly = false
multifile = false
- copyonwrite = no
+ copyonwrite = false
+ prerun = dd if=/dev/zero of=%s bs=1k count=500
+ postrun = rm -f %s
[otherexport]
exportname = /export/nbd/experiment
port = 12346