A v2 version of the patch. First of all a commit to move qcow2_check_bitmaps_refcounts lower into the code in order to make sure we can access update_ext_header_and_dir. Next I've moved the repair functionality into the existing qcow2_check_bitmaps_refcounts function.
Thanks Jean-Louis Jean-Louis Dupond (2): qcow2: move qcow2_check_bitmaps_refcounts func qcow2: add functionality to repair bitmaps block/qcow2-bitmap.c | 194 +++++++++++++++++++++++++---------------- block/qcow2-refcount.c | 3 +- block/qcow2.c | 15 +++- block/qcow2.h | 3 +- 4 files changed, 132 insertions(+), 83 deletions(-) -- 2.54.0
