static int bdrv_get_cluster_size(BlockDriverState *bs)

{

    BlockDriverInfo bdi;

    int ret;



    ret = bdrv_get_info(bs, &bdi);

    if (ret < 0 || bdi.cluster_size == 0) {

        return bs->request_alignment;

    } else {

        return bdi.cluster_size;

    }

}

static int bdrv_get_cluster_size(BlockDriverState *bs)

{

    BlockDriverInfo bdi;

    int ret;



    ret = bdrv_get_info(bs, &bdi);

    if (ret < 0 || bdi.cluster_size == 0) {

        return bs->request_alignment;

    } else {

        return bdi.cluster_size;

    }

}

static int FUNC_0(BlockDriverState *VAR_0)

{

    BlockDriverInfo bdi;

    int VAR_1;



    VAR_1 = bdrv_get_info(VAR_0, &bdi);

    if (VAR_1 < 0 || bdi.cluster_size == 0) {

        return VAR_0->request_alignment;

    } else {

        return bdi.cluster_size;

    }

}

static int FUNC_0(BlockDriverState *VAR_0)
{ BlockDriverInfo bdi; int VAR_1; VAR_1 = bdrv_get_info(VAR_0, &bdi); if (VAR_1 < 0 || bdi.cluster_size == 0) { return VAR_0->request_alignment; } else { return bdi.cluster_size; } }