From 9ac228e02cf16202547e7025ef300369e0db7781 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 29 Jun 2010 12:37:54 +0200 Subject: qcow2/vdi: Change check to distinguish error cases This distinguishes between harmless leaks and real corruption. Hopefully users better understand what qemu-img check wants to tell them. Signed-off-by: Kevin Wolf --- block/qcow2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'block/qcow2.c') diff --git a/block/qcow2.c b/block/qcow2.c index 9ee34b6dd0..a53014dbda 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1239,9 +1239,9 @@ static int qcow_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) } -static int qcow_check(BlockDriverState *bs) +static int qcow_check(BlockDriverState *bs, BdrvCheckResult *result) { - return qcow2_check_refcounts(bs); + return qcow2_check_refcounts(bs, result); } #if 0 -- cgit v1.2.3