dirty-bitmap: make it possible to restore bitmap after merge
Add backup parameter to bdrv_merge_dirty_bitmap() to be used then with bdrv_restore_dirty_bitmap() if it needed to restore the bitmap after merge operation. This is needed to implement bitmap merge transaction action in further commit. Signed-off-by:Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by:
John Snow <jsnow@redhat.com>
Showing
- block/dirty-bitmap.c 14 additions, 3 deletionsblock/dirty-bitmap.c
- blockdev.c 1 addition, 1 deletionblockdev.c
- include/block/dirty-bitmap.h 1 addition, 1 deletioninclude/block/dirty-bitmap.h
- include/qemu/hbitmap.h 16 additions, 9 deletionsinclude/qemu/hbitmap.h
- util/hbitmap.c 8 additions, 3 deletionsutil/hbitmap.c
Loading
Please register or sign in to comment