Skip to content

qcow2: Fix preallocated truncation

Max Reitz qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qcow2: Fix unaligned preallocated truncationblock/qcow2.c+1 -04 replies
2/3qcow2: Always execute preallocate() in a coroutineblock/qcow2.c+34 -74 replies
3/3iotests: Add cluster_size=64k to 125tests/qemu-iotests/125 tests/qemu-iotests/125.out+437 -502 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BlakeJeff CodyStefan Hajnoczi
SeriesR-b
1/3R-b R-b
2/3R-b R-b
3/3R-b R-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 v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] qcow2: Fix preallocated truncation

There are (at least...) two bugs in preallocated truncation, which this series fixes.

Both would have been apparent if the the related iotest had used the default cluster size in addition to 512 byte clusters, but alas, it did not. This is remedied by patch 3 of this series.

Max Reitz (3):
qcow2: Fix unaligned preallocated truncation
qcow2: Always execute preallocate() in a coroutine
iotests: Add cluster_size=64k to 125

 block/qcow2.c              |  42 +++-
 tests/qemu-iotests/125     |   7 +-
 tests/qemu-iotests/125.out | 480 ++++++++++++++++++++++++++++++++++++++++-----
 3 files changed, 472 insertions(+), 57 deletions(-)
Signature · 1 line
2.13.6