diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-23 14:55:00 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-16 09:19:46 +0100 |
commit | 915a213f7a0fe5c7551df8ce54714baf3dd60929 (patch) | |
tree | 9cdd8828380415f55e898c5114ab2c750ba2066e | |
parent | b4749948c1227bfdea340226beead0c8d0907eb7 (diff) |
qmp-commands: move 'x-blockdev-del' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | docs/qmp-commands.txt | 36 | ||||
-rw-r--r-- | qapi/block-core.json | 22 |
2 files changed, 22 insertions, 36 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 25f45350f2..95b648deec 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -343,42 +343,6 @@ named schema entities. Entities are commands, events and various types. See docs/qapi-code-gen.txt for information on their structure and intended use. -x-blockdev-del ------------- -Since 2.5 - -Deletes a block device that has been added using blockdev-add. -The command will fail if the node is attached to a device or is -otherwise being used. - -This command is still a work in progress and is considered -experimental. Stay away from it unless you want to help with its -development. - -Arguments: - -- "node-name": Name of the graph node to delete (json-string) - -Example: - --> { "execute": "blockdev-add", - "arguments": { - "driver": "qcow2", - "node-name": "node0", - "file": { - "driver": "file", - "filename": "test.qcow2" - } - } - } - -<- { "return": {} } - --> { "execute": "x-blockdev-del", - "arguments": { "node-name": "node0" } - } -<- { "return": {} } - blockdev-open-tray ------------------ diff --git a/qapi/block-core.json b/qapi/block-core.json index a9964c1e95..72fa6e0839 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -2886,6 +2886,28 @@ # development. # # Since: 2.5 +# +# Example: +# +# -> { "execute": "blockdev-add", +# "arguments": { +# "options": { +# "driver": "qcow2", +# "node-name": "node0", +# "file": { +# "driver": "file", +# "filename": "test.qcow2" +# } +# } +# } +# } +# <- { "return": {} } +# +# -> { "execute": "x-blockdev-del", +# "arguments": { "node-name": "node0" } +# } +# <- { "return": {} } +# ## { 'command': 'x-blockdev-del', 'data': { 'node-name': 'str' } } |