]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Prepare disk source for media changing
authorPeter Krempa <pkrempa@redhat.com>
Thu, 27 Sep 2018 14:50:55 +0000 (16:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Oct 2018 13:35:18 +0000 (15:35 +0200)
commit49272e51628a46974d7a9ce1f2efed1f2c44a21d
tree53078b542f42a28de9516ca639a9900d9871da10
parentf86993112a192aba992a382bcdfdbd4f1f4b59ce
qemu: hotplug: Prepare disk source for media changing

The disk storage source needs to be prepared if we want to use -blockdev
or secrets for the new media image. It does not hurt to do the same for
the legacy hotplug code as well.

Unfortunately helpers like qemuDomainPrepareDiskSource take
virDomainDiskDef as an argument and it would be hard to fix them to take
an explicit source, so the function also temporarily replaces disk->src
for the new source in this function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_hotplug.c