From: Max Reitz Date: Tue, 25 Feb 2020 14:31:29 +0000 (+0100) Subject: iotests/026: Test EIO on preallocated zero cluster X-Git-Tag: v4.2.1~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30aa0ea6c578b51a71d8cbb9578cc7f7bfeb56aa;p=thirdparty%2Fqemu.git iotests/026: Test EIO on preallocated zero cluster Test what happens when writing data to a preallocated zero cluster, but the data write fails. Signed-off-by: Max Reitz Message-Id: <20200225143130.111267-3-mreitz@redhat.com> Signed-off-by: Kevin Wolf (cherry picked from commit 31ab00f3747c00fdbb9027cea644b40dd1405480) Signed-off-by: Michael Roth --- diff --git a/tests/qemu-iotests/026 b/tests/qemu-iotests/026 index 3430029ed69..d89729697fe 100755 --- a/tests/qemu-iotests/026 +++ b/tests/qemu-iotests/026 @@ -215,6 +215,27 @@ _make_test_img 64M $QEMU_IO -c "write 0 1M" -c "write 0 1M" "$BLKDBG_TEST_IMG" | _filter_qemu_io _check_test_img +echo +echo === Avoid freeing preallocated zero clusters on failure === +echo + +cat > "$TEST_DIR/blkdebug.conf" <