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>
Showing
- blockdev-nbd.c 5 additions, 1 deletionblockdev-nbd.c
- docs/system/deprecated.rst 2 additions, 1 deletiondocs/system/deprecated.rst
- nbd/server.c 13 additions, 6 deletionsnbd/server.c
- qapi/block-export.json 29 additions, 12 deletionsqapi/block-export.json
- qemu-nbd.c 9 additions, 9 deletionsqemu-nbd.c
Loading
Please register or sign in to comment