static int raw_probe_blocksizes(BlockDriverState *bs, BlockSizes *bsz)

{

    BDRVRawState *s = bs->opaque;

    int ret;



    ret = bdrv_probe_blocksizes(bs->file->bs, bsz);

    if (ret < 0) {

        return ret;

    }



    if (!QEMU_IS_ALIGNED(s->offset, MAX(bsz->log, bsz->phys))) {

        return -ENOTSUP;

    }



    return 0;

}

static int raw_probe_blocksizes(BlockDriverState *bs, BlockSizes *bsz)

{

    BDRVRawState *s = bs->opaque;

    int ret;



    ret = bdrv_probe_blocksizes(bs->file->bs, bsz);

    if (ret < 0) {

        return ret;

    }



    if (!QEMU_IS_ALIGNED(s->offset, MAX(bsz->log, bsz->phys))) {

        return -ENOTSUP;

    }



    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0, BlockSizes *VAR_1)

{

    BDRVRawState *s = VAR_0->opaque;

    int VAR_2;



    VAR_2 = bdrv_probe_blocksizes(VAR_0->file->VAR_0, VAR_1);

    if (VAR_2 < 0) {

        return VAR_2;

    }



    if (!QEMU_IS_ALIGNED(s->offset, MAX(VAR_1->log, VAR_1->phys))) {

        return -ENOTSUP;

    }



    return 0;

}

static int FUNC_0(BlockDriverState *VAR_0, BlockSizes *VAR_1)
{ BDRVRawState *s = VAR_0->opaque; int VAR_2; VAR_2 = bdrv_probe_blocksizes(VAR_0->file->VAR_0, VAR_1); if (VAR_2 < 0) { return VAR_2; } if (!QEMU_IS_ALIGNED(s->offset, MAX(VAR_1->log, VAR_1->phys))) { return -ENOTSUP; } return 0; }