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.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'block.c') diff --git a/block.c b/block.c index b0ceef0438..65cf4dc9a4 100644 --- a/block.c +++ b/block.c @@ -721,8 +721,7 @@ int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res) } memset(res, 0, sizeof(*res)); - res->corruptions = bs->drv->bdrv_check(bs); - return res->corruptions < 0 ? res->corruptions : 0; + return bs->drv->bdrv_check(bs, res); } /* commit COW file into the raw image */ -- cgit v1.2.3