commit | 175e11526e2613b3dc031c23fec3107aa4a80307 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Wed May 12 16:23:26 2010 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri May 28 13:14:25 2010 +0200 |
tree | 1a917b28794d81f2ea98eded2e11340ed531c5d4 | |
parent | 1b7c801b40ce90795397bb566d019c9b76ef9c13 [diff] |
qcow2: Fix error handling in l2_allocate l2_allocate has some intermediate states in which the image is inconsistent. Change the order to write to the L1 table only after the new L2 table has successfully been initialized. Also reset the L2 cache in failure case, it's very likely wrong. Signed-off-by: Kevin Wolf <kwolf@redhat.com>