summaryrefslogtreecommitdiff
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2014-06-30 15:14:15 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-07-01 10:15:33 +0200
commit7676e2c597000eff3a7233b40cca768b358f9bc9 (patch)
treee02d1a413a6d4db0333f9dadd74ad2d9ac9aeea3 /qmp-commands.hx
parentc891e3bbc5bc3d74ad0ba896852a9796ceb147c2 (diff)
downloadqemu-7676e2c597000eff3a7233b40cca768b358f9bc9.tar.gz
qemu-7676e2c597000eff3a7233b40cca768b358f9bc9.tar.bz2
qemu-7676e2c597000eff3a7233b40cca768b358f9bc9.zip
block: make 'top' argument to block-commit optional
Now that active layer block-commit is supported, the 'top' argument no longer needs to be mandatory. Change it to optional, with the default being the active layer in the device chain. [kwolf: Rebased and resolved conflict in tests/qemu-iotests/040] Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx5
1 files changed, 3 insertions, 2 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 1ea18b22a3..8c5fdb5ca1 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -985,7 +985,7 @@ EQMP
{
.name = "block-commit",
- .args_type = "device:B,base:s?,top:s,speed:o?",
+ .args_type = "device:B,base:s?,top:s?,speed:o?",
.mhandler.cmd_new = qmp_marshal_input_block_commit,
},
@@ -1003,7 +1003,8 @@ Arguments:
If not specified, this is the deepest backing image
(json-string, optional)
- "top": The file name of the backing image within the image chain,
- which contains the topmost data to be committed down.
+ which contains the topmost data to be committed down. If
+ not specified, this is the active layer. (json-string, optional)
If top == base, that is an error.
If top == active, the job will not be completed by itself,