/* Returns the file offset start of the new payload block  */
static int vhdx_allocate_block(BlockDriverState *bs, BDRVVHDXState *s, uint64_t *new_offset)
/* Returns the file offset start of the new payload block  */
static int vhdx_allocate_block(BlockDriverState *bs, BDRVVHDXState *s, uint64_t *new_offset)
{
    *new_offset = bdrv_getlength(bs->file);
    *new_offset = ROUND_UP(*new_offset, 1024 * 1024);
    return bdrv_truncate(bs->file, *new_offset + s->block_size);
}