[PATCH 25/32] qemublocktest: Add 'snapshots' tests for backup bitmap handling

Eric Blake eblake at redhat.com
Thu Jun 18 22:03:32 UTC 2020


On 6/15/20 12:10 PM, Peter Krempa wrote:
> The 'snapshots' case has multiple layers so we need to make sure that
> the bitmaps are merged with the appropriate temporary bitmaps formatted
> from the allocation bitmap for any backing chain layer above.
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>   tests/qemublocktest.c                         |  4 ++
>   .../backupmerge/snapshots-deep-out.json       | 41 +++++++++++++++++++
>   .../backupmerge/snapshots-flat-out.json       | 25 +++++++++++
>   .../snapshots-intermediate-out.json           | 29 +++++++++++++
>   4 files changed, 99 insertions(+)
>   create mode 100644 tests/qemublocktestdata/backupmerge/snapshots-deep-out.json
>   create mode 100644 tests/qemublocktestdata/backupmerge/snapshots-flat-out.json
>   create mode 100644 tests/qemublocktestdata/backupmerge/snapshots-intermediate-out.json
> 

Reviewed-by: Eric Blake <eblake at redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




More information about the libvir-list mailing list