]> 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>
Tue, 26 Jan 2010 20:59:19 +0000 (14:59 -0600)
commit09508d13f3874d07bf25f8dd9f5303cbd8139d1b
tree5ff5fa695dc03315235f225a91e74ffdbe3aa451
parentf2b7c8b37045e0e030ef027cfb6d574558fb732a
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>
block/qcow2-refcount.c