/etc/xnbd.conf is in xnbd-common 0.3.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # xnbd.conf - xnbd-register configuration file
# This is the xnbd configuration file. Syntax of this file is semi-structured
# JSON text. Client connections are denoted by "nbdX" objects, where X is
# interpreted as device name, which is supposed to be started. This is, the
# "nbd0" object starts "/dev/nbd0" as configured.
# Similarly, the "server" object, if present starts an xnbd-wrapper super server
# which shares the configured volumes.
# See xnbd-register(8) for a more detailed description about the configuration
# file.
# WARNING: Be careful, only basic syntax validation is performed
# In particular, xnbd might also accept unfeasible parameters.
{
#"nbd0": {
# "host": "127.0.0.1",
# "port": 8520,
# "name": "name"
#},
#"wrapper": {
# "address": "127.0.0.1",
# "port": 8520,
# "socket": "/var/run/xnbd.ctl",
# "logpath": "/var/log/xnbd.log",
# "volumes": {
# "one": "/dev/sda1",
# "two": "/dev/mapper/volume",
# "three": "/var/lib/disk.image"
# },
# "max_queue_size": 2000,
# "max_buf_size": 104857600 # == 100 MiB
#}
}
|