static void qcow2_refresh_limits(BlockDriverState *bs, Error **errp)

{

    BDRVQcow2State *s = bs->opaque;



    if (bs->encrypted) {

        /* Encryption works on a sector granularity */

        bs->request_alignment = BDRV_SECTOR_SIZE;

    }

    bs->bl.pwrite_zeroes_alignment = s->cluster_size;

}

static void qcow2_refresh_limits(BlockDriverState *bs, Error **errp)

{

    BDRVQcow2State *s = bs->opaque;



    if (bs->encrypted) {

        

        bs->request_alignment = BDRV_SECTOR_SIZE;

    }

    bs->bl.pwrite_zeroes_alignment = s->cluster_size;

}

static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)

{

    BDRVQcow2State *s = VAR_0->opaque;



    if (VAR_0->encrypted) {

        

        VAR_0->request_alignment = BDRV_SECTOR_SIZE;

    }

    VAR_0->bl.pwrite_zeroes_alignment = s->cluster_size;

}

static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)
{ BDRVQcow2State *s = VAR_0->opaque; if (VAR_0->encrypted) { VAR_0->request_alignment = BDRV_SECTOR_SIZE; } VAR_0->bl.pwrite_zeroes_alignment = s->cluster_size; }