From aaa0eb75e2e56d483c89731a447c999985713b43 Mon Sep 17 00:00:00 2001 From: Liran Schour Date: Tue, 26 Jan 2010 10:31:48 +0200 Subject: Count dirty blocks and expose an API to get dirty count This will manage dirty counter for each device and will allow to get the dirty counter from above. Signed-off-by: Liran Schour Signed-off-by: Anthony Liguori --- block.h | 1 + 1 file changed, 1 insertion(+) (limited to 'block.h') diff --git a/block.h b/block.h index ecf66c5..536265e 100644 --- a/block.h +++ b/block.h @@ -200,4 +200,5 @@ void bdrv_set_dirty_tracking(BlockDriverState *bs, int enable); int bdrv_get_dirty(BlockDriverState *bs, int64_t sector); void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors); +int64_t bdrv_get_dirty_count(BlockDriverState *bs); #endif -- cgit v1.1