[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test in 048 |
Date: |
Wed, 20 Nov 2013 15:44:16 +0800 |
The "raw" doesn't always work on certain file systems (e.g. tmpfs). Use
qcow2 to make the allocation status explicit.
Signed-off-by: Fam Zheng <address@hidden>
---
tests/qemu-iotests/048 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/048 b/tests/qemu-iotests/048
index 9def7fc..0fb5d2c 100755
--- a/tests/qemu-iotests/048
+++ b/tests/qemu-iotests/048
@@ -88,7 +88,13 @@ event = "read_aio"
errno = "5"
once ="off"
EOF
-_make_test_img $size
+if [ "$IMGFMT" = "raw" ]; then
+ # For raw the allocation status for new image depends on file system, force
+ # qcow2 in this case, since the tested code is in block layer
+ IMGFMT=qcow2 _make_test_img $size | _filter_imgfmt
+else
+ _make_test_img $size | _filter_imgfmt
+fi
cp "$TEST_IMG" "$TEST_IMG2"
io_pattern write 512 512 0 1 102
TEST_IMG="blkdebug:$TEST_DIR/blkdebug.conf:$TEST_IMG" _compare 2>&1 |\
--
1.8.4.2
- [Qemu-devel] [PATCH v3 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback", Fam Zheng, 2013/11/20
- [Qemu-devel] [PATCH v3 2/6] qemu-iotests: Honour cache mode in iotests.py, Fam Zheng, 2013/11/20
- [Qemu-devel] [PATCH v3 1/6] qemu-iotests: Add "-c <cache-mode>" option, Fam Zheng, 2013/11/20
- [Qemu-devel] [PATCH v3 3/6] qemu-iotests: Add _supported_cache_modes, Fam Zheng, 2013/11/20
- [Qemu-devel] [PATCH v3 4/6] qemu-iotests: Change default cache mode to "writeback", Fam Zheng, 2013/11/20
- [Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test in 048,
Fam Zheng <=
- [Qemu-devel] [PATCH v3 6/6] qemu-iotests: Clean up spaces in usage output, Fam Zheng, 2013/11/20
- Re: [Qemu-devel] [PATCH v3 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback", Stefan Hajnoczi, 2013/11/21