]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Flushing the caches in qcow2_close may fail
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:51 +0000 (18:32 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:20 +0000 (10:31 +0100)
commit3b5e14c76a6bb142bf250ddf99e24a0ac8c7bc12
tree7abd3a505dd9fbd15119085c6bc0b30cb9c0c990
parent11c89769dc3e638ef72915d97058411ddf79b64b
qcow2: Flushing the caches in qcow2_close may fail

qcow2_cache_flush() may fail; if one of the caches failed to be flushed
successfully to disk in qcow2_close() the image should not be marked
clean, and we should emit a warning.

This breaks the (qcow2-specific) iotests 026, 071 and 089; change their
output accordingly.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
tests/qemu-iotests/026.out
tests/qemu-iotests/071.out
tests/qemu-iotests/089.out