]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Allow overriding disk source in qemuDomainDetermineDiskChain
authorPeter Krempa <pkrempa@redhat.com>
Wed, 16 Jan 2019 14:33:07 +0000 (15:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 30 Jan 2019 16:20:38 +0000 (17:20 +0100)
commit33b0a3bab8e6ba4a3c1f36850915bf01718e4355
treeaa003f5b0f230a51d8f621272aaa85a880cc3c37
parent73163a0e86e448d25567a6905a32deea9daa06db
qemu: domain: Allow overriding disk source in qemuDomainDetermineDiskChain

When we need to detect a chain for a image which will become the new
source for a disk (e.g. after a disk media change or a blockjob) we'd
need to replace disk->src temporarily to do so.

Move the 'disksrc' temporary variable to an argument and adjust callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_blockjob.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_process.c