qemu-img: Factor out code for merging bitmaps
commitad518b3a5d4e6f354cc257604e77bfa774133a73
authorEric Blake <eblake@redhat.com>
Wed, 20 May 2020 17:48:15 +0000 (20 12:48 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 21 May 2020 19:15:16 +0000 (21 14:15 -0500)
tree6ebe4346bd8249658b704ab99da8dad1df1cf887
parenta19ecd9b0a5a7d5cc09ff108fe1547c36bcc87bd
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>
qemu-img.c