]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Clear L2 table cache after write error
authorKevin Wolf <kwolf@redhat.com>
Fri, 28 May 2010 17:06:31 +0000 (19:06 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Jun 2010 16:36:09 +0000 (18:36 +0200)
commitcd14f4d346f2b1099b2374e1bd177d143d687a77
tree3117f19e46c22618da96e5b700e0e5de48bebea4
parentdf631629b1a80bb890290bdeb3d9fc6c5bedbe5b
qcow2: Clear L2 table cache after write error

If the L2 table was already updated in cache, but writing it to disk has
failed, we must not continue using the changed version in the cache to stay
consistent with what's on the disk.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 1b7c801b40ce90795397bb566d019c9b76ef9c13)

Conflicts:

block/qcow2-cluster.c

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c