]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Be explicit about old/new sources when changing media
authorPeter Krempa <pkrempa@redhat.com>
Thu, 4 Oct 2018 15:56:46 +0000 (17:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Oct 2018 13:35:18 +0000 (15:35 +0200)
commitf86993112a192aba992a382bcdfdbd4f1f4b59ce
treecbfc3ee422b2edd602de1e9de4a34d0512b995f8
parent50cb91dbc5d197386a3f4ee38d226fcaebfc0e65
qemu: hotplug: Be explicit about old/new sources when changing media

Some functions require us to replace disk->src with the new source for
them to work properly. To avoid confusion all places which allow
explicit virStorageSource should get the appropriate definition.

The legacy code fortunately does not need anything from the old source
so that does not require modifications.

Blockdev does require the old definition so we'll pass it explicitly.

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