From ae376c6255d0eee4b3c4d60acc4679aa99c0d2c8 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Thu, 28 Jun 2018 17:18:51 +0200 Subject: qemu-iotests: Test qcow2 not leaking clusters on write error This adds a test for a temporary write failure, which simulates the situation after werror=stop/enospc has stopped the VM. We shouldn't leave leaked clusters behind in such cases. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- tests/qemu-iotests/026.out | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/qemu-iotests/026.out') diff --git a/tests/qemu-iotests/026.out b/tests/qemu-iotests/026.out index 8e89416a86..dd10a82b51 100644 --- a/tests/qemu-iotests/026.out +++ b/tests/qemu-iotests/026.out @@ -675,4 +675,12 @@ write failed: No space left on device 96 leaked clusters were found on the image. This means waste of disk space, but no harm to data. + +=== Avoid cluster leaks after temporary failure === + +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +write failed: Input/output error +wrote 1048576/1048576 bytes at offset 0 +1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +No errors were found on the image. *** done -- cgit v1.2.3