提交 a522c304 编写于 作者: P Peter Krempa

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: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 3b5181b7
......@@ -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 &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册