]> git.proxmox.com Git - qemu.git/commit
qmp: add internal snapshot support in qmp_transaction
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>
Wed, 11 Sep 2013 06:04:34 +0000 (14:04 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Sep 2013 08:12:47 +0000 (10:12 +0200)
commitbbe860104f0544d7863296606e042cc62bf7ab4b
tree2d6b813d3525433baa1f1fa8cd3516c913644f08
parenta89d89d3e65800fa4a8e00de7af0ea8272bef779
qmp: add internal snapshot support in qmp_transaction

Unlike savevm, the qmp_transaction interface will not generate
snapshot name automatically, saving trouble to return information
of the new created snapshot.

Although qcow2 support storing multiple snapshots with same name
but different ID, here it will fail when an snapshot with that name
already exist before the operation. Format such as rbd do not support
ID at all, and in most case, it means trouble to user when he faces
multiple snapshots with same name, so ban that case. Request with
empty name will be rejected.

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>
blockdev.c
qapi-schema.json
qmp-commands.hx