Skip to content

Add qemu-img check subcommand

Kevin Wolf qemu-devel 1 version Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5qcow2: Fix warnings in check_refcount()+0 -00 replies
1/5qcow2: Fix warnings in check_refcount()block-qcow2.c+13 -1012 replies
2/5Introduce bdrv_checkblock-qcow2.c block.c block.h +1 more+70 -190 replies
3/5Introduce qemu-img check subcommandqemu-img.c+62 -00 replies
4/5qcow2: Refcount checking code cleanupblock-qcow2.c+105 -441 reply
5/5qcow2: Add plausibility check for L1/L2 entriesblock-qcow2.c+14 -00 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 0/5] Add qemu-img check subcommand

Current qcow2 code already includes some functions to do some consistency checks (e.g. compare refcounts to real usage). Allowing the user (or developer debugging qcow2 code) to check his images only involves actually building this code and exposing it to the user by qemu-img.

This patch series implements a check subcommand for qemu-img. I think it will be useful especially in combination with qemu-io for test suites.

Kevin

Kevin Wolf (5):
qcow2: Fix warnings in check_refcount()
Introduce bdrv_check
Introduce qemu-img check subcommand
qcow2: Refcount checking code cleanup
qcow2: Add plausibility check for L1/L2 entries

 block-qcow2.c |  239 +++++++++++++++++++++++++++++++++++++++++---------------
 block.c       |   14 ++++
 block.h       |    1 +
 block_int.h   |    3 +
 qemu-img.c    |   62 +++++++++++++++
 5 files changed, 255 insertions(+), 64 deletions(-)