mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
block: Accept device model name for eject
In order to remove the need for BlockBackend names in the external API, we want to allow qdev device names in all device related commands. This converts eject to accept a qdev device name. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
00949babe9
commit
fbe2d8163e
5 changed files with 22 additions and 10 deletions
|
@ -72,12 +72,14 @@ Eject a removable medium.
|
|||
|
||||
Arguments:
|
||||
|
||||
- force: force ejection (json-bool, optional)
|
||||
- device: device name (json-string)
|
||||
- "force": force ejection (json-bool, optional)
|
||||
- "device": block device name (deprecated, use @id instead)
|
||||
(json-string, optional)
|
||||
- "id": the name or QOM path of the guest device (json-string, optional)
|
||||
|
||||
Example:
|
||||
|
||||
-> { "execute": "eject", "arguments": { "device": "ide1-cd0" } }
|
||||
-> { "execute": "eject", "arguments": { "id": "ide0-1-0" } }
|
||||
<- { "return": {} }
|
||||
|
||||
Note: The "force" argument defaults to false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue