[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 33/72] qapi: Extract block-commit definition into
From: |
Benoît Canet |
Subject: |
[Qemu-devel] [PATCH v1 33/72] qapi: Extract block-commit definition into qapi/block-core.json |
Date: |
Sat, 31 May 2014 13:51:12 +0200 |
Signed-off-by: Benoit Canet <address@hidden>
---
qapi-schema.json | 43 -------------------------------------------
qapi/block-core.json | 43 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 43 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index 09b864f..02958cc 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -1338,49 +1338,6 @@
'returns': 'str' }
##
-# @block-commit
-#
-# Live commit of data from overlay image nodes into backing nodes - i.e.,
-# writes data between 'top' and 'base' into 'base'.
-#
-# @device: the name of the device
-#
-# @base: #optional The file name of the backing image to write data into.
-# If not specified, this is the deepest backing image
-#
-# @top: The file name of the backing image within the image chain,
-# which contains the topmost data to be committed down.
-#
-# If top == base, that is an error.
-# If top == active, the job will not be completed by itself,
-# user needs to complete the job with the block-job-complete
-# command after getting the ready event. (Since 2.0)
-#
-# If the base image is smaller than top, then the base image
-# will be resized to be the same size as top. If top is
-# smaller than the base image, the base will not be
-# truncated. If you want the base image size to match the
-# size of the smaller top, you can safely truncate it
-# yourself once the commit operation successfully completes.
-#
-#
-# @speed: #optional the maximum speed, in bytes per second
-#
-# Returns: Nothing on success
-# If commit or stream is already active on this device, DeviceInUse
-# If @device does not exist, DeviceNotFound
-# If image commit is not supported by this device, NotSupported
-# If @base or @top is invalid, a generic error is returned
-# If @speed is invalid, InvalidParameter
-#
-# Since: 1.3
-#
-##
-{ 'command': 'block-commit',
- 'data': { 'device': 'str', '*base': 'str', 'top': 'str',
- '*speed': 'int' } }
-
-##
# @drive-backup
#
# Start a point-in-time copy of a block device to a new destination. The
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 1f482f1..75fe7ce 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -679,3 +679,46 @@
{ 'command': 'blockdev-snapshot-sync',
'data': 'BlockdevSnapshot' }
+##
+# @block-commit
+#
+# Live commit of data from overlay image nodes into backing nodes - i.e.,
+# writes data between 'top' and 'base' into 'base'.
+#
+# @device: the name of the device
+#
+# @base: #optional The file name of the backing image to write data into.
+# If not specified, this is the deepest backing image
+#
+# @top: The file name of the backing image within the image chain,
+# which contains the topmost data to be committed down.
+#
+# If top == base, that is an error.
+# If top == active, the job will not be completed by itself,
+# user needs to complete the job with the block-job-complete
+# command after getting the ready event. (Since 2.0)
+#
+# If the base image is smaller than top, then the base image
+# will be resized to be the same size as top. If top is
+# smaller than the base image, the base will not be
+# truncated. If you want the base image size to match the
+# size of the smaller top, you can safely truncate it
+# yourself once the commit operation successfully completes.
+#
+#
+# @speed: #optional the maximum speed, in bytes per second
+#
+# Returns: Nothing on success
+# If commit or stream is already active on this device, DeviceInUse
+# If @device does not exist, DeviceNotFound
+# If image commit is not supported by this device, NotSupported
+# If @base or @top is invalid, a generic error is returned
+# If @speed is invalid, InvalidParameter
+#
+# Since: 1.3
+#
+##
+{ 'command': 'block-commit',
+ 'data': { 'device': 'str', '*base': 'str', 'top': 'str',
+ '*speed': 'int' } }
+
--
1.9.1
- [Qemu-devel] [PATCH v1 18/72] qapi: Extract query-block definition into qapi/block-core.json, (continued)
- [Qemu-devel] [PATCH v1 18/72] qapi: Extract query-block definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 28/72] qapi: Extract block_resize definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 30/72] qapi: Extract BlockdevSnapshot definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 29/72] qapi: Extract NewImageMode definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 32/72] qapi: Extract blockdev-snapshot-sync into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 31/72] qapi: Extract DriveBackup definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 34/72] qapi: Extract drive-backup definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 38/72] qapi: Extract block-stream definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 36/72] qapi: Extract drive-mirror definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 35/72] qapi: Extract query-named-block-nodes definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 33/72] qapi: Extract block-commit definition into qapi/block-core.json,
Benoît Canet <=
- [Qemu-devel] [PATCH v1 37/72] qapi: Extract block_set_io_throttle definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 41/72] qapi: Extract block-job-pause definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 40/72] qapi: Extrat block-job-cancel definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 39/72] qapi: Extract block-job-set-speed definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 43/72] qapi: Extract block-job-complete definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 42/72] qapi: Extract block-job-resume definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 46/72] qapi: Extract BlockdevDetectZeroesOptions definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 44/72] qapi: Extract drive-mirror-replace definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 45/72] qapi: Extract BlockdevDiscardOptions definition into qapi/block-core.json, Benoît Canet, 2014/05/31
- [Qemu-devel] [PATCH v1 47/72] qapi: Extract BlockdevAioOptions definition into qapi/block-core.json, Benoît Canet, 2014/05/31