block: fix libvirt snapshot with existing bitmaps
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest2 patches 4 repliesIn review
Changes in v2 from the cover letter
- additional patch with asserts for hbitmap. As BdrvDirtyBitmap is only an interlayer here, I decided to plase asserts into HBitmap public functions.
- add comment
- from Max's comments:
- assert after if block
- bitmap->size instead of bdrv_nb_sectors. It is not beautiful, but with bdrv_nb_sectors we have to handle error code here, which would be worse I think.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | hbitmap: add 'pos < size' assertsutil/ | +3 | 0 replies | |
| 2/2 | block: fix libvirt snapshot with existing bitmapsblock/ | +14 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Qemu-devel] [PATCH v2 0/2] block: fix libvirt snapshot with existing bitmaps
v2:
- additional patch with asserts for hbitmap. As BdrvDirtyBitmap is only an interlayer here, I decided to plase asserts into HBitmap public functions.
- add comment
- from Max's comments:
- assert after if block
- bitmap->size instead of bdrv_nb_sectors. It is not beautiful, but with bdrv_nb_sectors we have to handle error code here, which would be worse I think.
Vladimir Sementsov-Ogievskiy (2):
hbitmap: add 'pos < size' asserts
block: fix libvirt snapshot with existing bitmaps
block/dirty-bitmap.c | 14 ++++++++++++++ util/hbitmap.c | 3 +++ 2 files changed, 17 insertions(+)
Signature · 1 line
1.8.3.1