[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/6] qemu-img: Add convert --bitmaps
From: |
Eric Blake |
Subject: |
[PATCH v2 0/6] qemu-img: Add convert --bitmaps |
Date: |
Tue, 21 Apr 2020 16:20:13 -0500 |
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
- [PATCH v2 0/6] qemu-img: Add convert --bitmaps,
Eric Blake <=
- [PATCH v2 1/6] docs: Sort sections on qemu-img subcommand parameters, Eric Blake, 2020/04/21
- [PATCH v2 5/6] qemu-img: Add convert --bitmaps option, Eric Blake, 2020/04/21
- [PATCH v2 4/6] qcow2: Expose bitmaps' size during measure, Eric Blake, 2020/04/21
- [PATCH v2 2/6] blockdev: Split off basic bitmap operations for qemu-img, Eric Blake, 2020/04/21
- [PATCH v2 6/6] iotests: Add test 291 to for qemu-img bitmap coverage, Eric Blake, 2020/04/21
- [PATCH v2 3/6] qemu-img: Add bitmap sub-command, Eric Blake, 2020/04/21