diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-05-12 16:23:26 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-05-28 13:14:25 +0200 |
commit | 175e11526e2613b3dc031c23fec3107aa4a80307 (patch) | |
tree | 1a917b28794d81f2ea98eded2e11340ed531c5d4 /block.c | |
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>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions