/* This function only produces the offset where the new clusters should be written. It updates BDRVQEDState but does not make any changes to the image file.  */
static uint64_t qed_alloc_clusters(BDRVQEDState *s, unsigned int n)
/* This function only produces the offset where the new clusters should be written. It updates BDRVQEDState but does not make any changes to the image file.  */
static uint64_t qed_alloc_clusters(BDRVQEDState *s, unsigned int n)
{
    uint64_t offset = s->file_size;
    s->file_size += n * s->header.cluster_size;
    return offset;
}