qemu-img: Factor out code for merging bitmaps
commit6c729dd832207d7347ecb074912f538e2942f269
authorEric Blake <eblake@redhat.com>
Thu, 21 May 2020 19:21:35 +0000 (21 14:21 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 28 May 2020 18:16:30 +0000 (28 13:16 -0500)
tree4bf1e8ad8408ed4533cfb412d4cbf42a9e0844b3
parent5d72c68b49769c927e90b78af6d90f6a384b26ac
qemu-img: Factor out code for merging bitmaps

The next patch will add another client that wants to merge dirty
bitmaps; it will be easier to refactor the code to construct the QAPI
struct correctly into a helper function.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200521192137.1120211-4-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
qemu-img.c