]> www.infradead.org Git - users/dwmw2/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>
Wed, 14 Jan 2015 23:08:42 +0000 (17:08 -0600)
commit0505d48c83bf3722c0a3aaa13a65d5ab17f92b97
tree3337ceddeb980afb569ba3ca88a1781f0919ba4e
parent0073781fea140c31928802a8a112bf0acc31bb2d
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