diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-09-11 14:04:35 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-12 10:12:47 +0200 |
commit | f323bc9e8b3b46ad28402995a9dcaaeff3eb5e03 (patch) | |
tree | 59f14625a7dc3b37127df60d5851b22cf4dd2958 /blockdev.c | |
parent | bbe860104f0544d7863296606e042cc62bf7ab4b (diff) |
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.c | 13 |
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 */ |