Skip to content

qemu-img check/qcow2: Allow fixing refcounts

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qemu-img check -r for repairing imagesblock.c block.h block/qcow2.c +6 more+55 -140 replies
2/3qemu-img check: Print fixed clusters and recheckblock.h block/qed-check.c qemu-img.c+14 -00 replies
3/3qcow2: Support for fixing refcount inconsistenciesblock/qcow2-refcount.c block/qcow2.c block/qcow2.h+28 -82 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH block-next 0/3] qemu-img check/qcow2: Allow fixing refcounts

A prerequisite for a "QED mode" in qcow2, which doesn't update the refcount table except on clean shutdown, is that refcounts can be repaired when the image is opened the next time after a crash.

This series adds a qemu-img check option that doesn't only check, but also tries to fix the errors that it found.

Kevin Wolf (3):
qemu-img check -r for repairing images qemu-img check: Print fixed clusters and recheck
qcow2: Support for fixing refcount inconsistencies

 block.c                |    4 ++--
 block.h                |    9 ++++++++-
 block/qcow2-refcount.c |   27 +++++++++++++++++++++++++--
 block/qcow2.c          |    5 +++--
 block/qcow2.h          |    3 ++-
 block/qed-check.c      |    2 ++
 block/qed.c            |    5 +++--
 block/vdi.c            |    7 ++++++-
 block_int.h            |    3 ++-
 qemu-img-cmds.hx       |    4 ++--
 qemu-img.c             |   35 ++++++++++++++++++++++++++++++++---
 qemu-img.texi          |    7 ++++++-
 12 files changed, 93 insertions(+), 18 deletions(-)
Signature · 1 line
1.7.6.5