summaryrefslogtreecommitdiff
path: root/blockdev.c
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 /blockdev.c
parentbbe860104f0544d7863296606e042cc62bf7ab4b (diff)
downloadqemu-f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03.tar.gz
qemu-f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03.tar.bz2
qemu-f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03.zip
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 'blockdev.c')
-rw-r--r--blockdev.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/blockdev.c b/blockdev.c
index 0fd30e2d8d..0f4a7b5d85 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -858,6 +858,19 @@ void qmp_blockdev_snapshot_sync(const char *device, const char *snapshot_file,
&snapshot, errp);
}
+void qmp_blockdev_snapshot_internal_sync(const char *device,
+ const char *name,
+ Error **errp)
+{
+ BlockdevSnapshotInternal snapshot = {
+ .device = (char *) device,
+ .name = (char *) name
+ };
+
+ blockdev_do_action(TRANSACTION_ACTION_KIND_BLOCKDEV_SNAPSHOT_INTERNAL_SYNC,
+ &snapshot, errp);
+}
+
/* New and old BlockDriverState structs for group snapshots */