]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_snapshot: fix snapshot deletion that had multiple children
authorPavel Hrdina <phrdina@redhat.com>
Wed, 1 Nov 2023 09:12:22 +0000 (10:12 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 16 Nov 2023 14:29:03 +0000 (15:29 +0100)
commit03a9a39c42fdfcec85f6aaf5ee1cefb4b9547ccd
tree5bbfeeb1994730ccb99f9509258680cf57ca0ea2
parent1d456e18c796735c88c68742ff55314b114ad25e
qemu_snapshot: fix snapshot deletion that had multiple children

When we revert to non-leaf snapshot and create new branch or branches
the overlay in snapshot metadata is no longer usable as a disk source
for deletion of that snapshot. We need to use other places to figure out
the correct storage source.

Fixes: https://gitlab.com/libvirt/libvirt/-/issues/534
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_snapshot.c