]> git.proxmox.com Git - qemu.git/commit - savevm.c
savevm: Delete existing snapshots in all images
authorKevin Wolf <kwolf@redhat.com>
Tue, 3 Nov 2009 16:34:37 +0000 (17:34 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 12 Nov 2009 17:23:55 +0000 (11:23 -0600)
commitcb499fb295a91a65f86eccfa95f90da60b027395
tree27a7e06904393efa311dfa38f6d009f3a4c78d4a
parent14f26b00d11a5a4913f8a9ddbf52634b70e9694d
savevm: Delete existing snapshots in all images

When creating a snapshot we can run into the situation that the first disk
doesn't have a snapshot, but the second one does have one with the same name as
the new snapshot.

In this case, qemu doesn't recognize that there is a snapshot to be
overwritten, so it starts to save the new snapshot and errors out later when it
tries to snapshot the second image. With this patch, snapshots on secondary
images are overwritten just like on the first image.

Reported-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
savevm.c