OSDN Git Service

dirty-bitmap: make it possible to restore bitmap after merge
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 29 Oct 2018 20:23:15 +0000 (16:23 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 29 Oct 2018 20:23:15 +0000 (16:23 -0400)
commitfa000f2f9fd96a75a0a33d50ead247fce11da92a
tree14d48c16ce0573c7bfa160c9535df1db060ce22a
parent56bd662497259400b7c9f155aaebaddde4450028
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>
block/dirty-bitmap.c
blockdev.c
include/block/dirty-bitmap.h
include/qemu/hbitmap.h
util/hbitmap.c