block: More operations for meta dirty bitmap
commit6d3f4049ba532b01ff738f9e5a66df1477c5ffdd
authorFam Zheng <famz@redhat.com>
Thu, 13 Oct 2016 21:58:30 +0000 (13 17:58 -0400)
committerMax Reitz <mreitz@redhat.com>
Mon, 24 Oct 2016 15:56:07 +0000 (24 17:56 +0200)
tree8ac4e991ffbffd7fd890d7ddc0539e62e0817ed9
parent2071f26e2d67fa385c2baf061137b7482ace270c
block: More operations for meta dirty bitmap

Callers can create an iterator of meta bitmap with
bdrv_dirty_meta_iter_new(), then use the bdrv_dirty_iter_* operations on
it. Meta iterators are also counted by bitmap->active_iterators.

Also add a couple of functions to retrieve granularity and count.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1476395910-8697-11-git-send-email-jsnow@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/dirty-bitmap.c
include/block/dirty-bitmap.h