]> xenbits.xensource.com Git - libvirt.git/commit
qemu_snapshot: error out when deleting internal snapshot on non-active disk
authorPavel Hrdina <phrdina@redhat.com>
Wed, 2 Nov 2022 14:30:46 +0000 (15:30 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Jan 2023 12:33:01 +0000 (13:33 +0100)
commitf5def5cd11683c62d7746c16f3bc3c3bab60d724
tree45a5604d9201ed85e88c0432674f67ae37b1d95a
parent4475c69787d8b06b61e0521142720e6a17cee457
qemu_snapshot: error out when deleting internal snapshot on non-active disk

Deleting internal snapshot when the currently active disk image is
different than where the internal snapshot was taken doesn't work
correctly.

This applies to a running VM only as we are using QMP command and
talking to the QEMU process that is using different disk.

This works correctly when the VM is shut of as in this case we spawn
qemu-img process to delete the snapshot.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_snapshot.c