block: Remove "options" indirection from blockdev-add
commit0153d2f50bc2ad3f41810d838fcf66acbf10f07a
authorKevin Wolf <kwolf@redhat.com>
Fri, 7 Oct 2016 15:05:04 +0000 (7 17:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Oct 2016 15:54:03 +0000 (24 17:54 +0200)
treee72fc58ae6fbb621fce1dc7a9546d0f5f38d183f
parent170f4b2e5cf43895399f57ca4287f26c713be654
block: Remove "options" indirection from blockdev-add

Now that QAPI supports boxed types, we can have unions at the top level
of a command, so let's put our real options directly there for
blockdev-add instead of having a single "options" dict that contains the
real arguments.

blockdev-add is still experimental and we already made substantial
changes to the API recently, so we're free to make changes like this
one, too.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
14 files changed:
docs/qmp-commands.txt
qapi/block-core.json
tests/qemu-iotests/041
tests/qemu-iotests/067
tests/qemu-iotests/071
tests/qemu-iotests/081
tests/qemu-iotests/085
tests/qemu-iotests/087
tests/qemu-iotests/117
tests/qemu-iotests/118
tests/qemu-iotests/124
tests/qemu-iotests/139
tests/qemu-iotests/141
tests/qemu-iotests/155