From f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03 Mon Sep 17 00:00:00 2001 From: Wenchao Xia Date: Wed, 11 Sep 2013 14:04:35 +0800 Subject: qmp: add interface blockdev-snapshot-internal-sync Snapshot ID can't be specified in this interface. Signed-off-by: Wenchao Xia Signed-off-by: Kevin Wolf --- qmp-commands.hx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'qmp-commands.hx') diff --git a/qmp-commands.hx b/qmp-commands.hx index 66701927af..5c9ddef3a5 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -1095,6 +1095,35 @@ Example: "format": "qcow2" } } <- { "return": {} } +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 { -- cgit v1.2.1