]> git.proxmox.com Git - qemu.git/commit
qcow2: Improve error handling in update_refcount
authorKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2010 14:03:04 +0000 (15:03 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 27 Jan 2010 13:52:22 +0000 (07:52 -0600)
commit868dab5dc2aeccfd025c3c4712c0124877a704c3
treee2f24a2a0674a738223a7f38853027a693cc680c
parent29bb3bf35037079c2dc3a67f7ba25c8011b40c6c
qcow2: Improve error handling in update_refcount

If update_refcount fails, try to undo any changes made so far to avoid
inconsistencies in the image file.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 09508d13f3874d07bf25f8dd9f5303cbd8139d1b)
block/qcow2-refcount.c