int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res)

{

    if (bs->drv->bdrv_check == NULL) {

        return -ENOTSUP;

    }



    memset(res, 0, sizeof(*res));

    res->corruptions = bs->drv->bdrv_check(bs);

    return res->corruptions < 0 ? res->corruptions : 0;

}

int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res)

{

    if (bs->drv->bdrv_check == NULL) {

        return -ENOTSUP;

    }



    memset(res, 0, sizeof(*res));

    res->corruptions = bs->drv->bdrv_check(bs);

    return res->corruptions < 0 ? res->corruptions : 0;

}

    res->corruptions = bs->drv->bdrv_check(bs);     return res->corruptions < 0 ? res->corruptions : 0;
int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1)

{

    if (VAR_0->drv->FUNC_0 == NULL) {

        return -ENOTSUP;

    }



    memset(VAR_1, 0, sizeof(*VAR_1));

    VAR_1->corruptions = VAR_0->drv->FUNC_0(VAR_0);

    return VAR_1->corruptions < 0 ? VAR_1->corruptions : 0;

}

int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1)
{ if (VAR_0->drv->FUNC_0 == NULL) { return -ENOTSUP; } memset(VAR_1, 0, sizeof(*VAR_1)); VAR_1->corruptions = VAR_0->drv->FUNC_0(VAR_0); return VAR_1->corruptions < 0 ? VAR_1->corruptions : 0; }