diff options
author | Kevin Wolf | 2010-05-12 16:23:26 +0200 |
---|---|---|
committer | Kevin Wolf | 2010-05-28 13:14:25 +0200 |
commit | 175e11526e2613b3dc031c23fec3107aa4a80307 (patch) | |
tree | 1a917b28794d81f2ea98eded2e11340ed531c5d4 /host-utils.h | |
parent | qcow2: Clear L2 table cache after write error (diff) | |
download | qemu-175e11526e2613b3dc031c23fec3107aa4a80307.tar.gz qemu-175e11526e2613b3dc031c23fec3107aa4a80307.tar.xz qemu-175e11526e2613b3dc031c23fec3107aa4a80307.zip |
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 'host-utils.h')
0 files changed, 0 insertions, 0 deletions