aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-06-29 12:37:54 +0200
committerKevin Wolf <kwolf@redhat.com>2010-07-06 17:05:49 +0200
commit9ac228e02cf16202547e7025ef300369e0db7781 (patch)
treecb76569469651db883fbaa4e57bb2c2cba73a491 /block.c
parente076f3383b08a563d76c8beb9a716788a3987df9 (diff)
downloadqemu-9ac228e02cf16202547e7025ef300369e0db7781.zip
qemu-9ac228e02cf16202547e7025ef300369e0db7781.tar.gz
qemu-9ac228e02cf16202547e7025ef300369e0db7781.tar.bz2
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 <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block.c b/block.c
index b0ceef0..65cf4dc 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 */