]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Reuse qemuBlockStorageSourceAttachApply in disk hotplug
authorPeter Krempa <pkrempa@redhat.com>
Wed, 16 May 2018 11:39:22 +0000 (13:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:14:00 +0000 (08:14 +0200)
commitca174424ba2de1ef45fc61ba232eee8c82088ffa
tree33ab6452442f390a9a7c1c481d077eccd37ff732
parentd5c5c841e0aef9143babbe42d12a2b0caa2f347d
qemu: Reuse qemuBlockStorageSourceAttachApply in disk hotplug

Create a new "Prepare" function and move the drive add code into the new
helpers. This will eventually allow to simplify and unify the attaching
code for use with blockdev at the same time as providing compatibility
with older qemus.

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