libvirt/tests/qemublocktestdata
Peter Krempa 9d039863e2 qemu: block: Remove 'active-write' bitmap even if there are no bitmaps to merge
The 'libvirt-tmp-activewrite' bitmap is added during the 'pivot'
operation of block copy and active layer block commit operations
regardless of whether there are any bitmaps to merge, but was not
removed unless a bitmap was merged. This meant that subsequent attempts
to merge into the same image would fail.

Fix it by checking whether the 'libvirt-tmp-activewrite' would be used
by the code and don't skip the code which would delete it.

This is a regression introduced when we switched to the new code for
block commit in <20a7abc2d2d> and for block copy in <7bfff40fdfe5>. The
actual bug originates from <4fa8654ece>.

https://bugzilla.redhat.com/show_bug.cgi?id=1857735

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2020-07-21 09:52:59 +02:00
..
backupmerge qemublocktest: Add 'snapshots' tests for backup bitmap handling 2020-06-22 16:04:30 +02:00
bitmap qemublocktest: Add new 'synthetic' bitmap detection and validation test case 2020-06-22 16:04:30 +02:00
bitmapblockcommit qemu: block: Remove 'active-write' bitmap even if there are no bitmaps to merge 2020-07-21 09:52:59 +02:00
bitmapblockcopy qemu: block: Remove 'active-write' bitmap even if there are no bitmaps to merge 2020-07-21 09:52:59 +02:00
checkpointdelete qemublocktest: Re-introduce testing of checkpoint deletion 2020-06-22 16:04:30 +02:00
imagecreate qemuBlockGetBackingStoreString: Add extra wrapping object to JSON strings 2020-03-24 14:17:47 +01:00
jsontojson qemu: Pass through arguments of 'ssh' block driver used by libguestfs 2020-03-16 15:51:44 +01:00
xml2json tests: Tests for io mode io_uring 2020-04-24 09:17:06 +02:00