diff options
author | Kevin Wolf | 2018-06-28 17:18:51 +0200 |
---|---|---|
committer | Kevin Wolf | 2018-06-29 14:20:56 +0200 |
commit | ae376c6255d0eee4b3c4d60acc4679aa99c0d2c8 (patch) | |
tree | 01bcc8e84ff6596f91a864ea1c97dbe9f2b92974 /tests/qemu-iotests/026.out.nocache | |
parent | qcow2: Free allocated clusters on write error (diff) | |
download | qemu-ae376c6255d0eee4b3c4d60acc4679aa99c0d2c8.tar.gz qemu-ae376c6255d0eee4b3c4d60acc4679aa99c0d2c8.tar.xz qemu-ae376c6255d0eee4b3c4d60acc4679aa99c0d2c8.zip |
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 <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/026.out.nocache')
-rw-r--r-- | tests/qemu-iotests/026.out.nocache | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/qemu-iotests/026.out.nocache b/tests/qemu-iotests/026.out.nocache index 650ccd8b01..1ca6cda15c 100644 --- a/tests/qemu-iotests/026.out.nocache +++ b/tests/qemu-iotests/026.out.nocache @@ -683,4 +683,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 |