Skip to content

Commit

Permalink
qmp-commands: move 'x-blockdev-del' doc to schema
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
  • Loading branch information
elmarco authored and Markus Armbruster committed Jan 16, 2017
1 parent b474994 commit 915a213
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 36 deletions.
36 changes: 0 additions & 36 deletions docs/qmp-commands.txt
Expand Up @@ -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
------------------

Expand Down
22 changes: 22 additions & 0 deletions qapi/block-core.json
Expand Up @@ -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' } }

Expand Down

0 comments on commit 915a213

Please sign in to comment.