int bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)

{

    BlockDriver *drv = bs->drv;

    if (!drv)

        return -ENOMEDIUM;

    if (!drv->bdrv_get_info)

        return -ENOTSUP;

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

    return drv->bdrv_get_info(bs, bdi);

}

int bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)

{

    BlockDriver *drv = bs->drv;

    if (!drv)

        return -ENOMEDIUM;

    if (!drv->bdrv_get_info)

        return -ENOTSUP;

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

    return drv->bdrv_get_info(bs, bdi);

}

int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1)

{

    BlockDriver *drv = VAR_0->drv;

    if (!drv)

        return -ENOMEDIUM;

    if (!drv->FUNC_0)

        return -ENOTSUP;

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

    return drv->FUNC_0(VAR_0, VAR_1);

}

int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1)
{ BlockDriver *drv = VAR_0->drv; if (!drv)
return -ENOMEDIUM; if (!drv->FUNC_0)
return -ENOTSUP; memset(VAR_1, 0, sizeof(*VAR_1)); return drv->FUNC_0(VAR_0, VAR_1); }