Kevin Wolf 16fde5f2c2 qcow2: Fix order in L2 table COW
When copying L2 tables (this happens only with internal snapshots), the order
wasn't completely safe, so that after a crash you could end up with a L2 table
that has too low refcount, possibly leading to corruption in the long run.

This patch puts the operations in the right order: First allocate the new
L2 table and replace the reference, and only then decrease the refcount of the
old table.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-02-10 13:24:29 +01:00
..
2010-05-17 10:20:05 +02:00
2010-05-17 10:20:04 +02:00
2010-11-04 12:52:16 +01:00
2010-05-22 08:02:12 +00:00
2010-05-17 10:20:05 +02:00
2010-09-21 15:39:42 +02:00
2010-05-17 10:20:05 +02:00
2011-02-10 13:23:56 +01:00
2011-01-31 10:03:00 +01:00
2010-12-17 16:11:04 +01:00
2010-12-17 16:11:04 +01:00
2010-12-17 16:11:03 +01:00
2010-12-17 16:11:03 +01:00
2010-12-14 15:44:21 +01:00
2010-12-14 15:44:21 +01:00
2011-01-12 19:49:00 +00:00
2011-01-12 19:48:58 +00:00