Revision 1d36e3aa

b/block/qcow2.c
1163 1163
{
1164 1164
    BDRVQcowState *s = bs->opaque;
1165 1165
    int growable = bs->growable;
1166
    int ret;
1166 1167

  
1167 1168
    bs->growable = 1;
1168
    bdrv_pwrite(bs, qcow_vm_state_offset(s) + pos, buf, size);
1169
    ret = bdrv_pwrite(bs, qcow_vm_state_offset(s) + pos, buf, size);
1169 1170
    bs->growable = growable;
1170 1171

  
1171
    return size;
1172
    return ret;
1172 1173
}
1173 1174

  
1174 1175
static int qcow_load_vmstate(BlockDriverState *bs, uint8_t *buf,

Also available in: Unified diff