]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Properly setup data relevant for top disk image
authorPeter Krempa <pkrempa@redhat.com>
Tue, 29 May 2018 14:52:17 +0000 (16:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:13:57 +0000 (08:13 +0200)
commita522c3044bd5cc27540508105127d5786df4ec77
tree386035e441549514fd812d072e286fa69ac0da48
parent3b5181b731c9f20001ea97adabe7128500fec756
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>
src/qemu/qemu_domain.c