Skip to content

Make preallocate_co() resize the image to the correct size

Alberto Garcia qemu-devel 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2qcow2: Make preallocate_co() resize the image to the correct sizeblock/qcow2.c tests/qemu-iotests/125 tests/qemu-iotests/125.out+49 -203 replies
2/2qcow2: Convert qcow2_alloc_cluster_offset() into qcow2_alloc_host_offset()block/qcow2-cluster.c block/qcow2.c block/qcow2.h+26 -303 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMax Reitz
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Make preallocate_co() resize the image to the correct size

preallocate_co() does not resize the image correctly if the original size was not cluster-aligned.

This series should be applied on top of Max's block branch (I tested it with commit 8e66c829eda997dad661d49d73668b1fd3e6043d).

https://git.xanclic.moe/XanClic/qemu/commits/branch/block

Alberto Garcia (2):
qcow2: Make preallocate_co() resize the image to the correct size
qcow2: Convert qcow2_alloc_cluster_offset() into
qcow2_alloc_host_offset()

 block/qcow2.h              |  6 +++---
 block/qcow2-cluster.c      | 14 +++++++++----
 block/qcow2.c              | 35 +++++++++++++--------------------
 tests/qemu-iotests/125     | 40 +++++++++++++++++++++-----------------
 tests/qemu-iotests/125.out | 28 ++++++++++++++++++++++++--
 5 files changed, 74 insertions(+), 49 deletions(-)
Signature · 1 line
2.20.1