]> git.proxmox.com Git - qemu.git/commit
qcow2: Restore L1 entry on l2_allocate failure
authorKevin Wolf <kwolf@redhat.com>
Mon, 7 Jun 2010 14:43:22 +0000 (16:43 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 14 Jul 2010 09:55:31 +0000 (11:55 +0200)
commitdfe0bb55eea9efabc98d074407e01c9a85b7497b
tree2977a1df2c608f326f3ad8bac78591c875a634f8
parent6fd82592cec15256a6dcfe516a7ce6c99f1912b7
qcow2: Restore L1 entry on l2_allocate failure

If writing the L1 table to disk failed, we need to restore its old content in
memory to avoid inconsistencies.

Reported-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 68dba0bf455e60061bb3c9c40ef0d82916372664)
block/qcow2-cluster.c