]> Git Repo - qemu.git/commitdiff
Qcow2 corruption fix, by Juergen Keil.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 1 Apr 2007 19:01:40 +0000 (19:01 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 1 Apr 2007 19:01:40 +0000 (19:01 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2578 c046a42c-6fe2-441c-8c8c-71466251a162

block-qcow2.c

index a876ea2e2dc2a759eca574d4ea55200308c4fe69..0f7a06961e4d7608cc900dc3a4339605f34c16e3 100644 (file)
@@ -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;
This page took 0.028982 seconds and 4 git commands to generate.