diff mbox

[v1,69/72] qapi: Extract eject definition into qapi/block.json

Message ID 1401537111-10221-70-git-send-email-benoit.canet@irqsave.net
State New
Headers show

Commit Message

BenoƮt Canet May 31, 2014, 11:51 a.m. UTC
Signed-off-by: Benoit Canet <benoit@irqsave.net>
---
 qapi-schema.json | 19 -------------------
 qapi/block.json  | 19 +++++++++++++++++++
 2 files changed, 19 insertions(+), 19 deletions(-)
diff mbox

Patch

diff --git a/qapi-schema.json b/qapi-schema.json
index eebb632..b67c883 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -1456,25 +1456,6 @@ 
 { 'command': 'expire_password', 'data': {'protocol': 'str', 'time': 'str'} }
 
 ##
-# @eject:
-#
-# Ejects a device from a removable drive.
-#
-# @device:  The name of the device
-#
-# @force:   @optional If true, eject regardless of whether the drive is locked.
-#           If not specified, the default value is false.
-#
-# Returns:  Nothing on success
-#           If @device is not a valid block device, DeviceNotFound
-#
-# Notes:    Ejecting a device will no media results in success
-#
-# Since: 0.14.0
-##
-{ 'command': 'eject', 'data': {'device': 'str', '*force': 'bool'} }
-
-##
 # @change-vnc-password:
 #
 # Change the VNC server password.
diff --git a/qapi/block.json b/qapi/block.json
index fe4812e..de4b144 100644
--- a/qapi/block.json
+++ b/qapi/block.json
@@ -102,3 +102,22 @@ 
   'data': { 'device': 'str', '*id': 'str', '*name': 'str'},
   'returns': 'SnapshotInfo' }
 
+##
+# @eject:
+#
+# Ejects a device from a removable drive.
+#
+# @device:  The name of the device
+#
+# @force:   @optional If true, eject regardless of whether the drive is locked.
+#           If not specified, the default value is false.
+#
+# Returns:  Nothing on success
+#           If @device is not a valid block device, DeviceNotFound
+#
+# Notes:    Ejecting a device will no media results in success
+#
+# Since: 0.14.0
+##
+{ 'command': 'eject', 'data': {'device': 'str', '*force': 'bool'} }
+