diff options
author | ths <ths> | 2007-04-01 19:01:40 +0000 |
---|---|---|
committer | ths <ths> | 2007-04-01 19:01:40 +0000 |
commit | 4a485ba82e00ab9a6669d48d6a669ef5f34dd9c5 (patch) | |
tree | be7d02a6c5b8ec436a39b8f15d2c766eccbcf5e8 /qemu/block-qcow2.c | |
parent | 316334e7840afa0488015b1ac8f026f4ddeca1ab (diff) |
Qcow2 corruption fix, by Juergen Keil.
Diffstat (limited to 'qemu/block-qcow2.c')
-rw-r--r-- | qemu/block-qcow2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu/block-qcow2.c b/qemu/block-qcow2.c index a876ea2e..0f7a0696 100644 --- a/qemu/block-qcow2.c +++ b/qemu/block-qcow2.c @@ -1933,6 +1933,7 @@ static int grow_refcount_table(BlockDriverState *bs, int min_size) qemu_free(s->refcount_table); s->refcount_table = new_table; s->refcount_table_size = new_table_size; + s->refcount_table_offset = table_offset; update_refcount(bs, table_offset, new_table_size2, 1); return 0; |