summaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorLiran Schour <lirans@il.ibm.com>2010-01-26 10:31:48 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-09 16:56:14 -0600
commitaaa0eb75e2e56d483c89731a447c999985713b43 (patch)
tree1d026f3e2867cabc2e896b82aede646297aee8a6 /block.h
parentd76cac7dfbff76acb8eac2de849d148b0ff8cbbb (diff)
downloadqemu-aaa0eb75e2e56d483c89731a447c999985713b43.tar.gz
qemu-aaa0eb75e2e56d483c89731a447c999985713b43.tar.bz2
qemu-aaa0eb75e2e56d483c89731a447c999985713b43.zip
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 <lirans@il.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.h b/block.h
index ecf66c52ab..536265e86c 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