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>
Showing
- Makefile.objs 1 addition, 1 deletionMakefile.objs
- blockdev-nbd.c 5 additions, 0 deletionsblockdev-nbd.c
- include/block/nbd.h 1 addition, 0 deletionsinclude/block/nbd.h
- qapi/block-core.json 24 additions, 0 deletionsqapi/block-core.json
- qemu-storage-daemon.c 25 additions, 1 deletionqemu-storage-daemon.c
Loading
Please register or sign in to comment