]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix broken handling of shallow flag in qemuDomainBlockCopyCommon
authorPeter Krempa <pkrempa@redhat.com>
Wed, 7 Aug 2019 15:00:02 +0000 (17:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 Aug 2019 11:26:10 +0000 (13:26 +0200)
commit49ea62e51d3b4171f8c59b5c6609e516feba1703
treee1880f2babff9a1f1b78ae1b15528842d8732487
parent32bd092b4965d2ab510c0bb75ea9f2ce0ef84b52
qemu: fix broken handling of shallow flag in qemuDomainBlockCopyCommon

Commit 16ca234b56fac82 refactored how the 'shallow' and 'reuse' flags
are accessed but neglected to fix the clearing of 'shallow' in case when
the disk has no backing chain. This means that we'd request a shallow
copy even without backing chain and also a few checks would work wrong.

Fix it by using the extracted variable everywhere.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c