]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: checkpoint: Don't merge checkpoints during deletion
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Apr 2020 06:17:58 +0000 (08:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2020 14:04:30 +0000 (16:04 +0200)
commit4c33c5568c3ee3c5952e5f3b217d78df95683b71
treeb26c4f043f48b5b9752e48f4b00f15717ab5ab41
parentb3845f0e3d0ec58b25274cb6b70906f44333069f
qemu: checkpoint: Don't merge checkpoints during deletion

Now that we've switched to the simple handling, the first thing that can
be massively simplified is checkpoint deletion. We now need to only go
through the backing chain and find the appropriately named bitmaps and
delete them, no complex lookups or merging.

Note that compared to other functions this deletes the bitmap in all
layers compared to others where we expect only exactly 1 bitmap of a
name in the backing chain to prevent potential problems.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_checkpoint.c
src/qemu/qemu_checkpoint.h
tests/qemublocktest.c