[PATCH v4 0/1] qcow2: add a way to repair bitmaps

Jean-Louis Dupond posted 1 patch 1 week, 1 day ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260522150524.855403-1-jean-louis@dupond.be
Maintainers: Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Eric Blake <eblake@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>, John Snow <jsnow@redhat.com>
There is a newer version of this series
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(-)
[PATCH v4 0/1] qcow2: add a way to repair bitmaps
Posted by Jean-Louis Dupond 1 week, 1 day ago
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