[libvirt] [PATCH 08/13] qemu: snapshot: Densely pack data in qemuDomainSnapshotDiskDataCollect

Ján Tomko jtomko at redhat.com
Sat Jun 8 14:07:10 UTC 2019


On Wed, Jun 05, 2019 at 05:28:30PM +0200, Peter Krempa wrote:
>The function skips disks which are not selected for snapshot. Rather
>than creating a sparse array and check whether the given field is filled
>compress the entries.
>
>Note that this does not allocate a smaller array, but the memory
>allocation is short-lived.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_driver.c | 69 +++++++++++++++++++-----------------------
> 1 file changed, 31 insertions(+), 38 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: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190608/4d575753/attachment-0001.sig>


More information about the libvir-list mailing list