]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: don't loop through images in qemuDomainPrepareDiskSourceChain
authorPeter Krempa <pkrempa@redhat.com>
Tue, 29 May 2018 15:05:05 +0000 (17:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:13:58 +0000 (08:13 +0200)
commit9b6a636d49dc6bcf27448537ffe261206aaf837b
tree2d9dd6fcd587441a88c27bcb3d845aa01dcf7871
parenta522c3044bd5cc27540508105127d5786df4ec77
qemu: domain: don't loop through images in qemuDomainPrepareDiskSourceChain

Convert the function to just prepare data for the disk. Callers need to
do the looping since there's more to do than just copy the data around.

The code path in qemuDomainPrepareDiskSource doesn't need to loop over
the chain yet, since there currently is no chain at this point. This
will be addressed later in the blockdev series where we will setup much
more stuff.

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