mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-12-03 16:25:09 +03:00
qemu: domain: Properly setup data relevant for top disk image
qemuDomainPrepareDiskSourceChain should set up the disk zero detection mode only for the top level image. Since it's invoked also for the middle of the chain we need to check that it's really only the top level image. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -12421,7 +12421,8 @@ qemuDomainPrepareDiskSourceChain(virDomainDiskDefPtr disk,
|
||||
src = disk->src;
|
||||
|
||||
/* transfer properties valid only for the top level image */
|
||||
src->detect_zeroes = disk->detect_zeroes;
|
||||
if (src == disk->src)
|
||||
src->detect_zeroes = disk->detect_zeroes;
|
||||
|
||||
for (n = src; virStorageSourceIsBacking(n); n = n->backingStore) {
|
||||
if (cfg &&
|
||||
|
||||
Reference in New Issue
Block a user