]> git.ipfire.org Git - thirdparty/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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 22 Feb 2015 18:09:50 +0000 (12:09 -0600)
commit6f45cda114497bafa4186d6395eb06d2b85c55c4
tree590a42040f91d2cc2e1b65148cbb966081222fc1
parent1e85e69fd6972d1990c6309dfa273ccd8b12d92a
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>
(cherry picked from commit 3b5e14c76a6bb142bf250ddf99e24a0ac8c7bc12)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2.c
tests/qemu-iotests/026.out
tests/qemu-iotests/071.out
tests/qemu-iotests/089.out