A v4 version of the patch.
- Dropped fixed_list and now removes corrupt bitmaps from the list via QSIMPLEQ_REMOVE
- We don't need to count the valid bitmaps, just know if the list was changed, so s/valid_bitmaps/bitmap_modified/
- update_ext_header_and_dir handles empty QSIMPLEQ and NULL the same way, so avoid the overhead of creating an empty QSIMPLEQ
- update_ext_header_and_dir modifies s->nb_bitmaps, so we can use that for # of corruptions fixed
Thanks
Jean-Louis
Jean-Louis Dupond (1):
qcow2: add functionality to repair bitmaps
block/qcow2-bitmap.c | 38 +++++++++++++++++++++++++++++++++++++-
block/qcow2-refcount.c | 3 ++-
block/qcow2.c | 16 ++++++++++++----
block/qcow2.h | 3 ++-
4 files changed, 53 insertions(+), 7 deletions(-)
--
2.54.0