diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-09-20 13:38:46 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-09-23 13:40:45 +0200 |
commit | fbe2d8163e8900fe22c67f55bd09ebc6f322f430 (patch) | |
tree | b646f9d69084bc651df2a79975a807cbe698b42e /qapi/block.json | |
parent | 00949babe90c528df1ffb79439d632c7bd4f6c42 (diff) |
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>
Diffstat (limited to 'qapi/block.json')
-rw-r--r-- | qapi/block.json | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qapi/block.json b/qapi/block.json index 8b08bd2fd0..c896bd1d3b 100644 --- a/qapi/block.json +++ b/qapi/block.json @@ -125,7 +125,9 @@ # # Ejects a device from a removable drive. # -# @device: The name of the device +# @device: #optional Block device name (deprecated, use @id instead) +# +# @id: #optional The name or QOM path of the guest device (since: 2.8) # # @force: @optional If true, eject regardless of whether the drive is locked. # If not specified, the default value is false. @@ -137,7 +139,10 @@ # # Since: 0.14.0 ## -{ 'command': 'eject', 'data': {'device': 'str', '*force': 'bool'} } +{ 'command': 'eject', + 'data': { '*device': 'str', + '*id': 'str', + '*force': 'bool' } } ## # @nbd-server-start: |