Skip to content

qemu-img: fix bugs when cluster size is larger than the default value

Hu Tao qemu-devel 5 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. v5 Latest4 patches 4 repliesApplied
  2. v44 patches 10 repliesSuperseded
  3. v34 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches0 repliesSuperseded
v13 patches12 repliesSuperseded

Changes in v5 from the cover letter

- limit cur_nr_sectors for the encrypted case (patch 1)
- fix some grammar problems in commit messages and make commit messages more understandable

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/4qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset()block/qcow2-cluster.c block/qcow2.c block/qcow2.h +1 more+15 -161 reply
2/4qcow2: fix offset overflow in qcow2_alloc_clusters_at()block/qcow2-refcount.c+7 -11 reply
3/4qcow2: check for NULL l2metablock/qcow2.c+16 -151 reply
4/4qemu-iotests: add test for qcow2 preallocation with different cluster sizestests/qemu-iotests/079 tests/qemu-iotests/079.out tests/qemu-iotests/group+96 -00 replies

Reviews trailers per patch

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

PatchMax ReitzBenoit Canet
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b

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

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/4] qemu-img: fix bugs when cluster size is larger than the default value

This series fixes several bugs of qcow2 when doing preallocation with a cluster_size larger than the default value.

v5:
- limit cur_nr_sectors for the encrypted case (patch 1)
- fix some grammar problems in commit messages and make commit messages more understandable

Hu Tao (4):
qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset()
qcow2: fix offset overflow in qcow2_alloc_clusters_at()
qcow2: check for NULL l2meta
qemu-iotests: add test for qcow2 preallocation with different cluster
sizes

 block/qcow2-cluster.c      | 14 +++++------
 block/qcow2-refcount.c     |  8 +++++-
 block/qcow2.c              | 44 ++++++++++++++++----------------
 block/qcow2.h              |  2 +-
 tests/qemu-iotests/079     | 63 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/079.out | 32 +++++++++++++++++++++++
 tests/qemu-iotests/group   |  1 +
 trace-events               |  2 +-
 8 files changed, 134 insertions(+), 32 deletions(-)
 create mode 100755 tests/qemu-iotests/079
 create mode 100644 tests/qemu-iotests/079.out
Signature · 1 line
1.8.5.2.229.g4448466