aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2016-10-28 10:08:19 +0300
committerKevin Wolf <kwolf@redhat.com>2016-10-31 16:52:39 +0100
commit312fe09cc8af86c25a0c17162539589121e7d9a9 (patch)
tree02816e1079b4d5f0a64cfc102378449a13502baf /qapi
parent48361afba902ab90a9f667a94f863bafd1417d2e (diff)
block: Add 'base-node' parameter to the 'block-stream' command
The way to specify the node from which to copy data in the block-stream operation is by using the 'base' parameter. This parameter however takes a file name, not a node name. Since we want to be able to perform this operation using only node names, this patch adds a new 'base-node' parameter. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-core.json8
1 files changed, 6 insertions, 2 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index d7a029cfd5..3592a9d7ad 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1484,7 +1484,11 @@
#
# @device: the device or node name of the top image
#
-# @base: #optional the common backing file name
+# @base: #optional the common backing file name.
+# It cannot be set if @base-node is also set.
+#
+# @base-node: #optional the node name of the backing file.
+# It cannot be set if @base is also set. (Since 2.8)
#
# @backing-file: #optional The backing file string to write into the top
# image. This filename is not validated.
@@ -1511,7 +1515,7 @@
##
{ 'command': 'block-stream',
'data': { '*job-id': 'str', 'device': 'str', '*base': 'str',
- '*backing-file': 'str', '*speed': 'int',
+ '*base-node': 'str', '*backing-file': 'str', '*speed': 'int',
'*on-error': 'BlockdevOnError' } }
##