diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-06-29 12:37:54 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-07-06 17:05:49 +0200 |
commit | 9ac228e02cf16202547e7025ef300369e0db7781 (patch) | |
tree | cb76569469651db883fbaa4e57bb2c2cba73a491 /block.c | |
parent | e076f3383b08a563d76c8beb9a716788a3987df9 (diff) | |
download | qemu-9ac228e02cf16202547e7025ef300369e0db7781.zip |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |