]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: Update qapi to support exporting multiple bitmaps
authorEric Blake <eblake@redhat.com>
Tue, 27 Oct 2020 05:05:49 +0000 (00:05 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 30 Oct 2020 20:10:15 +0000 (15:10 -0500)
commitcbad81cef8cc7b220f04600997ea29d7302bae00
treeb99f92ee23a0a2eb40efdad1a493e373c9cdcb60
parent8675cbd68be7da35a61e391fbb5b95ac67bc7d72
nbd: Update qapi to support exporting multiple bitmaps

Since 'block-export-add' is new to 5.2, we can still tweak the
interface; there, allowing 'bitmaps':['str'] is nicer than
'bitmap':'str'.  This wires up the qapi and qemu-nbd changes to permit
passing multiple bitmaps as distinct metadata contexts that the NBD
client may request, but the actual support for more than one will
require a further patch to the server.

Note that there are no changes made to the existing deprecated
'nbd-server-add' command; this required splitting the QAPI type
BlockExportOptionsNbd, which fortunately does not affect QMP
introspection.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20201027050556.269064-5-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
blockdev-nbd.c
docs/system/deprecated.rst
nbd/server.c
qapi/block-export.json
qemu-nbd.c