qemu-storage-daemon: Add --export option
commit39411120b7bd58cdd1bdf0e14d3adb5a513dc6c7
authorKevin Wolf <kwolf@redhat.com>
Mon, 24 Feb 2020 14:29:59 +0000 (24 15:29 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:21:28 +0000 (6 17:21 +0100)
tree9b89ebb5b7ae881101721315b661dac0f364840a
parentc62d24e906e54b5d641f662f50a3e3fbdeae2377
qemu-storage-daemon: Add --export option

Add a --export option to qemu-storage-daemon to export a block node. For
now, only NBD exports are implemented. Apart from the 'type' option
(which is the implied key), it maps the arguments for nbd-server-add to
the command line. Example:

    --export nbd,device=disk,name=test-export,writable=on

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-12-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qapi/block-core.json
qemu-storage-daemon.c