Revision 1c02e2a1

b/block/qcow2-cluster.c
188 188
    ret = bdrv_pread(bs->file, l2_offset, *l2_table,
189 189
        s->l2_size * sizeof(uint64_t));
190 190
    if (ret < 0) {
191
        qcow2_l2_cache_reset(bs);
191 192
        return ret;
192 193
    }
193 194

  
b/block/qcow2-refcount.c
103 103
    ret = bdrv_pread(bs->file, refcount_block_offset, s->refcount_block_cache,
104 104
                     s->cluster_size);
105 105
    if (ret < 0) {
106
        s->refcount_block_cache_offset = 0;
106 107
        return ret;
107 108
    }
108 109

  

Also available in: Unified diff