On 01/26/2015 09:02 AM, Max Reitz wrote:
> If the "id" field is missing from the options given to blockdev-add,
> just omit the BlockBackend and create the BlockDriverState tree alone.
> 
> Signed-off-by: Max Reitz <mre...@redhat.com>
> ---
>  blockdev.c                 | 38 +++++++++++++++++++++++++-------------
>  tests/qemu-iotests/087     | 20 --------------------
>  tests/qemu-iotests/087.out | 12 ------------
>  3 files changed, 25 insertions(+), 45 deletions(-)

I'd feel more comfortable if this patch also touched
qapi/block-core.json to mention the change in policy on
BlockdevOptionsBase.  Also, should 'node-name' be mandatory when
omitting 'id'?

But the idea makes sense.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to