From db593f2565dc12442d6bac9e8eaefa027dfcada9 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Wed, 26 Jan 2011 12:12:34 -0200 Subject: Add flag to indicate external users to block device Certain operations such as drive_del or resize cannot be performed while external users (eg. block migration) reference the block device. Add a flag to indicate that. Signed-off-by: Marcelo Tosatti Signed-off-by: Kevin Wolf --- block.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'block.h') diff --git a/block.h b/block.h index 239f729..19f4768 100644 --- a/block.h +++ b/block.h @@ -241,6 +241,8 @@ void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors); int64_t bdrv_get_dirty_count(BlockDriverState *bs); +void bdrv_set_in_use(BlockDriverState *bs, int in_use); +int bdrv_in_use(BlockDriverState *bs); typedef enum { BLKDBG_L1_UPDATE, -- cgit v1.1