]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce new set of helpers for attaching and detaching storage chains
authorPeter Krempa <pkrempa@redhat.com>
Thu, 4 Apr 2019 14:50:49 +0000 (16:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 26 Jun 2019 06:59:37 +0000 (08:59 +0200)
commit042c95bd194ac570bf929ff04397cb8eeb6b52e0
tree8bce22044fa4d866a440a29b29382afe0968cd7c
parent2523999717b0d0e873401bb4e73de681daedbe99
qemu: Introduce new set of helpers for attaching and detaching storage chains

These are meant to replace the ad-hoc helpers qemuHotplugDiskSourceAttach...
and the open-coded version in qemu_command.c for use in command line
generation.

The functions for preparing for attach of chains unfortunately need to
be in qemu_command.c as they use function defined by that file and
inclusion hierarchy.

In this patch new functions are introduced and subsequent patches then
refactor individual parts to use them.

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