Skip to content

Commit

Permalink
qmp-commands: move 'x-blockdev-insert-medium' 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 8e1c142 commit b480abf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 33 deletions.
33 changes: 0 additions & 33 deletions docs/qmp-commands.txt
Expand Up @@ -343,39 +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-insert-medium
------------------------

Inserts a medium (a block driver state tree) into a block device. That block
device's tray must currently be open (unless there is no attached guest device)
and there must be no medium inserted already.

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:

- "device": block device name (deprecated, use @id instead)
(json-string, optional)
- "id": the name or QOM path of the guest device (json-string, optional)
- "node-name": root node of the BDS tree to insert into the block device

Example:

-> { "execute": "blockdev-add",
"arguments": { { "node-name": "node0",
"driver": "raw",
"file": { "driver": "file",
"filename": "fedora.iso" } } }

<- { "return": {} }

-> { "execute": "x-blockdev-insert-medium",
"arguments": { "id": "ide0-1-0",
"node-name": "node0" } }

<- { "return": {} }

x-blockdev-change
-----------------

Expand Down
17 changes: 17 additions & 0 deletions qapi/block-core.json
Expand Up @@ -3059,6 +3059,23 @@
# Stay away from it unless you want to help with its development.
#
# Since: 2.5
#
# Example:
#
# -> { "execute": "blockdev-add",
# "arguments": {
# "options": { "node-name": "node0",
# "driver": "raw",
# "file": { "driver": "file",
# "filename": "fedora.iso" } } } }
# <- { "return": {} }
#
# -> { "execute": "x-blockdev-insert-medium",
# "arguments": { "id": "ide0-1-0",
# "node-name": "node0" } }
#
# <- { "return": {} }
#
##
{ 'command': 'x-blockdev-insert-medium',
'data': { '*device': 'str',
Expand Down

0 comments on commit b480abf

Please sign in to comment.