/* The VHDX spec calls for header updates to be performed twice, so that both the current and non-current header have valid info  */
int vhdx_update_headers(BlockDriverState *bs, BDRVVHDXState *s, bool generate_data_write_guid, MSGUID *log_guid)
/* The VHDX spec calls for header updates to be performed twice, so that both the current and non-current header have valid info  */
int vhdx_update_headers(BlockDriverState *bs, BDRVVHDXState *s, bool generate_data_write_guid, MSGUID *log_guid)
{
    int ret;
    ret = vhdx_update_header(bs, s, generate_data_write_guid, log_guid);
    if (ret < 0) {
        return ret;
    }
    ret = vhdx_update_header(bs, s, generate_data_write_guid, log_guid);
    return ret;
}