[libvirt] [PATCH 18/38] qemu: domain: don't loop through images in qemuDomainPrepareDiskSourceChain

Ján Tomko jtomko at redhat.com
Wed May 30 16:57:23 UTC 2018


On Wed, May 30, 2018 at 02:41:14PM +0200, Peter Krempa wrote:
>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 at redhat.com>
>---
> src/qemu/qemu_domain.c | 63 +++++++++++++++++++++++---------------------------
> src/qemu/qemu_domain.h |  8 +++----
> tests/qemublocktest.c  |  6 ++---
> 3 files changed, 36 insertions(+), 41 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180530/73b5cff4/attachment-0001.sig>


More information about the libvir-list mailing list