Skip to content

qemu-img: rebase: add compression support

Andrey Drobyshev via qemu-devel 3 versions – Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 8 repliesApplied
  2. v28 patches 12 repliesSuperseded
  3. v16 patches 25 repliesSuperseded

Changes in v3 from the cover letter

* Patch 3/8: fixed logic in the if statement, so that we align on blk when blk_old_backing == NULL;
* Patch 4/8: comment fix;
* Patch 5/8: comment fix; dropped redundant "if (blk_new_backing)" statements.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8qemu-img: rebase: stop when reaching EOF of old backing fileqemu-img.c+12 -14 replies
2/8qemu-iotests: 024: add rebasing test case for overlay_size > backing_sizetests/qemu-iotests/024 tests/qemu-iotests/024.out+87 -00 replies
3/8qemu-img: rebase: use backing files' BlockBackend for buffer alignmentqemu-img.c+7 -20 replies
4/8qemu-img: add chunk size parameter to compare_buffers()qemu-img.c+15 -91 reply
5/8qemu-img: rebase: avoid unnecessary COW operationsqemu-img.c+54 -200 replies
6/8iotests/{024, 271}: add testcases for qemu-img rebasetests/qemu-iotests/024 tests/qemu-iotests/024.out tests/qemu-iotests/271 +1 more+211 -00 replies
7/8qemu-img: add compression option to rebase subcommanddocs/tools/qemu-img.rst qemu-img-cmds.hx qemu-img.c+26 -100 replies
8/8iotests: add tests for "qemu-img rebase" with compressiontests/qemu-iotests/271 tests/qemu-iotests/271.out tests/qemu-iotests/314 +1 more+345 -00 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchDenis V. LunevHanna CzenczekEric Blake
1/8R-b R-b
2/8R-b R-b
3/8
4/8R-b R-b
5/8
6/8R-b
7/8R-b R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/8] qemu-img: rebase: add compression support

v2 --> v3:
* Patch 3/8: fixed logic in the if statement, so that we align on blk when blk_old_backing == NULL;
* Patch 4/8: comment fix;
* Patch 5/8: comment fix; dropped redundant "if (blk_new_backing)" statements.

v2: https://lists.nongnu.org/archive/html/qemu-block/2023-09/msg00448.html

Andrey Drobyshev (8):
qemu-img: rebase: stop when reaching EOF of old backing file
qemu-iotests: 024: add rebasing test case for overlay_size >
backing_size
qemu-img: rebase: use backing files' BlockBackend for buffer alignment
qemu-img: add chunk size parameter to compare_buffers()
qemu-img: rebase: avoid unnecessary COW operations iotests/{024, 271}: add testcases for qemu-img rebase
qemu-img: add compression option to rebase subcommand
iotests: add tests for "qemu-img rebase" with compression

 docs/tools/qemu-img.rst    |   6 +-
 qemu-img-cmds.hx           |   4 +-
 qemu-img.c                 | 136 ++++++++++++++++++++++--------
 tests/qemu-iotests/024     | 117 ++++++++++++++++++++++++++
 tests/qemu-iotests/024.out |  73 ++++++++++++++++
 tests/qemu-iotests/271     | 131 +++++++++++++++++++++++++++++
 tests/qemu-iotests/271.out |  82 ++++++++++++++++++
 tests/qemu-iotests/314     | 165 +++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/314.out |  75 +++++++++++++++++
 9 files changed, 752 insertions(+), 37 deletions(-)
 create mode 100755 tests/qemu-iotests/314
 create mode 100644 tests/qemu-iotests/314.out
Signature · 1 line
2.39.3