qapi: Fix some QMP documentation regressions

In the process of getting rid of docs/qmp-commands.txt, we managed
to regress on some of the text that changed after the point where
the move was first branched and when the move actually occurred.
For example, commit 3282eca for blockdev-snapshot re-added the
extra "options" layer which had been cleaned up in commit 0153d2f.

This clears up all regressions identified over the range
02b351d..bd6092e:
https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg05127.html
as well as a cleanup to x-blockdev-remove-medium to prefer
'id' over 'device' (matching the cleanup for 'eject').

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Eric Blake 2017-05-23 12:44:20 -05:00 committed by Michael Tokarev
parent 2283adfb0a
commit 244d04db58
2 changed files with 15 additions and 15 deletions

View File

@ -1206,11 +1206,11 @@
# Example: # Example:
# #
# -> { "execute": "blockdev-add", # -> { "execute": "blockdev-add",
# "arguments": { "options": { "driver": "qcow2", # "arguments": { "driver": "qcow2",
# "node-name": "node1534", # "node-name": "node1534",
# "file": { "driver": "file", # "file": { "driver": "file",
# "filename": "hd1.qcow2" }, # "filename": "hd1.qcow2" },
# "backing": "" } } } # "backing": "" } }
# #
# <- { "return": {} } # <- { "return": {} }
# #
@ -3214,7 +3214,7 @@
# <- { "return": {} } # <- { "return": {} }
# #
# -> { "execute": "x-blockdev-remove-medium", # -> { "execute": "x-blockdev-remove-medium",
# "arguments": { "device": "ide0-1-0" } } # "arguments": { "id": "ide0-1-0" } }
# #
# <- { "return": {} } # <- { "return": {} }
# #
@ -3245,10 +3245,10 @@
# #
# -> { "execute": "blockdev-add", # -> { "execute": "blockdev-add",
# "arguments": { # "arguments": {
# "options": { "node-name": "node0", # "node-name": "node0",
# "driver": "raw", # "driver": "raw",
# "file": { "driver": "file", # "file": { "driver": "file",
# "filename": "fedora.iso" } } } } # "filename": "fedora.iso" } } }
# <- { "return": {} } # <- { "return": {} }
# #
# -> { "execute": "x-blockdev-insert-medium", # -> { "execute": "x-blockdev-insert-medium",
@ -3701,10 +3701,10 @@
# 1. Add a new node to a quorum # 1. Add a new node to a quorum
# -> { "execute": "blockdev-add", # -> { "execute": "blockdev-add",
# "arguments": { # "arguments": {
# "options": { "driver": "raw", # "driver": "raw",
# "node-name": "new_node", # "node-name": "new_node",
# "file": { "driver": "file", # "file": { "driver": "file",
# "filename": "test.raw" } } } } # "filename": "test.raw" } } }
# <- { "return": {} } # <- { "return": {} }
# -> { "execute": "x-blockdev-change", # -> { "execute": "x-blockdev-change",
# "arguments": { "parent": "disk1", # "arguments": { "parent": "disk1",

View File

@ -180,7 +180,7 @@
# #
# Example: # Example:
# #
# -> { "execute": "eject", "arguments": { "device": "ide1-0-1" } } # -> { "execute": "eject", "arguments": { "id": "ide1-0-1" } }
# <- { "return": {} } # <- { "return": {} }
## ##
{ 'command': 'eject', { 'command': 'eject',