mbox series

[00/10] qcow2 check: check some reserved bits and subcluster bitmaps

Message ID 20210504152023.322862-1-vsementsov@virtuozzo.com (mailing list archive)
Headers show
Series qcow2 check: check some reserved bits and subcluster bitmaps | expand

Message

Vladimir Sementsov-Ogievskiy May 4, 2021, 3:20 p.m. UTC
Hi all!

Here are some good refactorings and new (qemu-img check) checks for
qcow2.

Vladimir Sementsov-Ogievskiy (10):
  qcow2-refcount: improve style of check_refcounts_l2()
  qcow2: compressed read: simplify cluster descriptor passing
  qcow2: introduce qcow2_parse_compressed_l2_entry() helper
  qcow2-refcount: introduce fix_l2_entry_by_zero()
  qcow2-refcount: fix_l2_entry_by_zero(): also zero L2 entry bitmap
  qcow2-refcount: check_refcounts_l2(): check l2_bitmap
  qcow2-refcount: check_refcounts_l2(): check reserved bits
  qcow2-refcount: improve style of check_refcounts_l1()
  qcow2-refcount: check_refcounts_l1(): check reserved bits
  qcow2-refcount: check_refblocks(): add separate message for reserved

 block/qcow2.h          |   7 +-
 block/qcow2-cluster.c  |  20 ++-
 block/qcow2-refcount.c | 327 ++++++++++++++++++++++++++---------------
 block/qcow2.c          |  13 +-
 4 files changed, 239 insertions(+), 128 deletions(-)