aboutsummaryrefslogtreecommitdiff
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>2013-09-11 14:04:35 +0800
committerKevin Wolf <kwolf@redhat.com>2013-09-12 10:12:47 +0200
commitf323bc9e8b3b46ad28402995a9dcaaeff3eb5e03 (patch)
tree59f14625a7dc3b37127df60d5851b22cf4dd2958 /qmp-commands.hx
parentbbe860104f0544d7863296606e042cc62bf7ab4b (diff)
downloadqemu-f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03.zip
qemu-f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03.tar.gz
qemu-f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03.tar.bz2
qmp: add interface blockdev-snapshot-internal-sync
Snapshot ID can't be specified in this interface. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx29
1 files changed, 29 insertions, 0 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 6670192..5c9ddef 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -1098,6 +1098,35 @@ Example:
EQMP
{
+ .name = "blockdev-snapshot-internal-sync",
+ .args_type = "device:B,name:s",
+ .mhandler.cmd_new = qmp_marshal_input_blockdev_snapshot_internal_sync,
+ },
+
+SQMP
+blockdev-snapshot-internal-sync
+-------------------------------
+
+Synchronously take an internal snapshot of a block device when the format of
+image used supports it. If the name is an empty string, or a snapshot with
+name already exists, the operation will fail.
+
+Arguments:
+
+- "device": device name to snapshot (json-string)
+- "name": name of the new snapshot (json-string)
+
+Example:
+
+-> { "execute": "blockdev-snapshot-internal-sync",
+ "arguments": { "device": "ide-hd0",
+ "name": "snapshot0" }
+ }
+<- { "return": {} }
+
+EQMP
+
+ {
.name = "drive-mirror",
.args_type = "sync:s,device:B,target:s,speed:i?,mode:s?,format:s?,"
"on-source-error:s?,on-target-error:s?,"