From db97ee6a976bacbb0d18818e951cfc41b39269a7 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 24 Jan 2011 13:32:41 +0100 Subject: block: tell drivers about an image resize Extend the change_cb callback with a reason argument, and use it to tell drivers about size changes. Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- block.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'block.h') diff --git a/block.h b/block.h index f923add60..239f72958 100644 --- a/block.h +++ b/block.h @@ -182,7 +182,8 @@ int bdrv_is_locked(BlockDriverState *bs); void bdrv_set_locked(BlockDriverState *bs, int locked); int bdrv_eject(BlockDriverState *bs, int eject_flag); void bdrv_set_change_cb(BlockDriverState *bs, - void (*change_cb)(void *opaque), void *opaque); + void (*change_cb)(void *opaque, int reason), + void *opaque); void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size); BlockDriverState *bdrv_find(const char *name); BlockDriverState *bdrv_next(BlockDriverState *bs); -- cgit v1.2.3