]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainAttachDiskGeneric: Move setup of disk into qemuDomainAttachDeviceDiskLiveIn...
authorPeter Krempa <pkrempa@redhat.com>
Tue, 18 May 2021 13:50:06 +0000 (15:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 May 2021 18:38:08 +0000 (20:38 +0200)
commit52f865543920b0cc5ba93f4407c1b2efdffb8ddc
tree2e4d599b9e21c9fd4fc654d9aa9c0c24f72daaa1
parentf5542ae0142b515dbf6dc1fd29bba3ac6095a589
qemuDomainAttachDiskGeneric: Move setup of disk into qemuDomainAttachDeviceDiskLiveInternal

qemuDomainAttachDeviceDiskLiveInternal already sets up certain pieces of
the disk definition so it's better suited to move the setup of the
virStorageSource structs, granting access to the storage and allocation
of the alias from qemuDomainAttachDiskGeneric which will be just
handling the qemu interaction.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_hotplug.c