Skip to content

qcow2: Drop REFCOUNT_SHIFT

Max Reitz qemu-devel 2 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. v2 Latest3 patches 6 repliesApplied
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Patch 2: Fix wrongly fixed calculation [Benoît, Eric]
- Patch 3: Added [Eric]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3qcow2: Drop REFCOUNT_SHIFTblock/qcow2-refcount.c block/qcow2.c block/qcow2.h+15 -210 replies
2/3docs/qcow2: Correct refcount_block_entriesdocs/specs/qcow2.txt+1 -12 replies
3/3docs/qcow2: Limit refcount_order to [0, 6]docs/specs/qcow2.txt+1 -02 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 BlakeStefan HajnocziKevin Wolf
SeriesR-b
1/3R-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 v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] qcow2: Drop REFCOUNT_SHIFT

In preparation for qemu maybe actually supporting variable refcount widths in the far future, drop the hardcoded REFCOUNT_SHIFT and instead use the value as given by the image.

Also, the qcow2 documentation gave the width of a refcount block entry as sizeof(uint16_t), which is wrong for any refcount order other than 4. Fix that.

This is a follow-up to my "[PATCH v5 00/11] qcow2: Fix image repairing" series and therefore depends on it.

v2:
- Patch 2: Fix wrongly fixed calculation [Benoît, Eric]
- Patch 3: Added [Eric]

git-backport-diff against v1:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/3:[----] [--] 'qcow2: Drop REFCOUNT_SHIFT' 002/3:[0002] [FC] 'docs/qcow2: Correct refcount_block_entries' 003/3:[down] 'docs/qcow2: Limit refcount_order to [0, 6]'

Max Reitz (3):
qcow2: Drop REFCOUNT_SHIFT
docs/qcow2: Correct refcount_block_entries
docs/qcow2: Limit refcount_order to [0, 6]

 block/qcow2-refcount.c | 32 ++++++++++++++------------------
 block/qcow2.c          |  2 +-
 block/qcow2.h          |  2 --
 docs/specs/qcow2.txt   |  3 ++-
 4 files changed, 17 insertions(+), 22 deletions(-)
Signature · 1 line
2.1.0