mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +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:
parent
3b5181b731
commit
a522c3044b
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user