]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Refactor disk commandline formatting
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Jun 2018 14:57:44 +0000 (16:57 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:14:01 +0000 (08:14 +0200)
commit134c3ddb436a32ae0b38aed1ad0bc1ee8a0e3780
tree74abbee9d1de5561ecfe2328b1112a2464ccd751
parent006293afd08c18eb33f923ed5334599a7e5ad84e
qemu: command: Refactor disk commandline formatting

Now that we have one place that sets up all disk-related objects to
qemuBlockStorageSourceAttachDataPtr we can easily reuse the data in the
command-line formatter by implementing a worker which will convert the
data.

A huge advantage is that it will be way easier to integrate this with
-blockdev later on.

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