]> git.ipfire.org Git - thirdparty/qemu.git/commit - blockdev-nbd.c
qemu-storage-daemon: Add --nbd-server option
authorKevin Wolf <kwolf@redhat.com>
Mon, 24 Feb 2020 14:29:57 +0000 (15:29 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:21:28 +0000 (17:21 +0100)
commiteed8b691783264013142ed0273e08f5a7f913569
tree0aa5c78e05a357345cc7719dd8e03df6b0cfbf8f
parentd6da78b5fdad8d4e7fbe6eebbb6ea369f84c0408
qemu-storage-daemon: Add --nbd-server option

Add a --nbd-server option to qemu-storage-daemon to start the built-in
NBD server right away. It maps the arguments for nbd-server-start to the
command line, with the exception that it uses SocketAddress instead of
SocketAddressLegacy: New interfaces shouldn't use legacy types, and the
additional nesting would be nasty on the command line.

Example (only with required options):

    --nbd-server addr.type=inet,addr.host=localhost,addr.port=10809

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-10-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Makefile.objs
blockdev-nbd.c
include/block/nbd.h
qapi/block-core.json
qemu-storage-daemon.c