]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: backup: Rewrite backup bitmap handling to the new bitmap semantics
authorPeter Krempa <pkrempa@redhat.com>
Fri, 22 May 2020 12:48:46 +0000 (14:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2020 14:04:30 +0000 (16:04 +0200)
commite0d8d989e2bc9024f85b676166da0305c4b4014d
treeed4e39cd3578f08ba7e0309059e77c959015c2b3
parent4fa8654eced8b0362d3f3ff33eebb108fe833869
qemu: backup: Rewrite backup bitmap handling to the new bitmap semantics

Reuse qemuBlockGetBitmapMergeActions which allows removal of the ad-hoc
implementation of bitmap merging for backup. The new approach is simpler
and also more robust in case some of the bitmaps break as they remove
the dependency on the whole chain of bitmaps working.

The new approach also allows backups if a snapshot is created outside of
libvirt.

Additionally the code is greatly simplified.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_backup.c
src/qemu/qemu_backup.h
tests/qemublocktest.c
tests/qemublocktestdata/backupmerge/empty-out.json