OSDN Git Service

blockdev-nbd: Boxed argument type for nbd-server-add
authorKevin Wolf <kwolf@redhat.com>
Mon, 24 Feb 2020 14:29:58 +0000 (15:29 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:21:28 +0000 (17:21 +0100)
commitc62d24e906e54b5d641f662f50a3e3fbdeae2377
treed3ab730218fd12e8db697f245fb04a6ddf9ef8e3
parenteed8b691783264013142ed0273e08f5a7f913569
blockdev-nbd: Boxed argument type for nbd-server-add

Move the arguments of nbd-server-add to a new struct BlockExportNbd and
convert the command to 'boxed': true. This makes it easier to share code
with the storage daemon.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-11-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev-nbd.c
monitor/hmp-cmds.c
qapi/block-core.json