Without this series, the process for copying one qcow2 image to another including all of its bitmaps involves running qemu and doing the copying by hand with a series of QMP commands. This makes the process a bit more convenient.
Series can also be downloaded at: https://repo.or.cz/qemu/ericb.git/shortlog/refs/tags/qemu-img-bitmaps-v2 Since v1: - patches 1, 3 are new - patch 2 (old 1/3) moves more operations into new file - patch 4 no longer a separate thread (was at v2 in isolation) - patches 4, 6 rebased to take advantage of 3 - patch 5, 6 (old 2-3/3) have other minor tweaks Eric Blake (6): docs: Sort sections on qemu-img subcommand parameters blockdev: Split off basic bitmap operations for qemu-img qemu-img: Add bitmap sub-command qcow2: Expose bitmaps' size during measure qemu-img: Add convert --bitmaps option iotests: Add test 291 to for qemu-img bitmap coverage docs/tools/qemu-img.rst | 78 ++++++--- Makefile.objs | 2 +- qapi/block-core.json | 15 +- include/sysemu/blockdev.h | 14 ++ block/crypto.c | 2 +- block/qcow2.c | 29 +++- block/raw-format.c | 2 +- blockbitmaps.c | 324 +++++++++++++++++++++++++++++++++++++ blockdev.c | 293 --------------------------------- qemu-img.c | 281 +++++++++++++++++++++++++++++++- MAINTAINERS | 1 + qemu-img-cmds.hx | 11 +- tests/qemu-iotests/190 | 15 +- tests/qemu-iotests/190.out | 13 +- tests/qemu-iotests/291 | 103 ++++++++++++ tests/qemu-iotests/291.out | 78 +++++++++ tests/qemu-iotests/group | 1 + 17 files changed, 927 insertions(+), 335 deletions(-) create mode 100644 blockbitmaps.c create mode 100755 tests/qemu-iotests/291 create mode 100644 tests/qemu-iotests/291.out -- 2.26.2