]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: backup: Enable full backup support
authorPeter Krempa <pkrempa@redhat.com>
Thu, 18 Mar 2021 14:11:55 +0000 (15:11 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 19 Mar 2021 15:41:39 +0000 (16:41 +0100)
commit272017484edfb4abb09815853ed4d7c7fdbc1c58
treea306aa7bfb3ba0dc7c6104b44fa8959fb5e50595
parent12758f040a7eb776cf28dd8b4a75c45d2199dc93
qemu: backup: Enable full backup support

qemuBackupBegin can take a full backup of the disks (excluding any
operations with bitmaps) without the need to wait for the
blockdev-reopen support in qemu.

Add a check that no checkpoint creation is required and the disk backup
mode isn't VIR_DOMAIN_BACKUP_DISK_BACKUP_MODE_INCREMENTAL.

Call to virDomainBackupAlignDisks is moved earlier as it initializes the
disk backup mode if not present in user config.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_backup.c
src/qemu/qemu_domain.c