[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 01/33] qemu-iotests: Handle cache mode option in 091
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 01/33] qemu-iotests: Handle cache mode option in 091 |
Date: |
Fri, 23 May 2014 17:41:33 +0200 |
From: Fam Zheng <address@hidden>
We should allow testing this on tmpfs. Any cache setting in iotests
should try to obey $CACHEMODE.
The cache mode is still "none" by default but overridable
Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
tests/qemu-iotests/091 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091
index 384b3ac..32bbd56 100755
--- a/tests/qemu-iotests/091
+++ b/tests/qemu-iotests/091
@@ -47,6 +47,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fmt qcow2
_supported_proto file
_supported_os Linux
+_default_cache_mode "none"
+_supported_cache_modes "writethrough" "none" "writeback"
size=1G
@@ -59,13 +61,13 @@ echo === Starting QEMU VM1 ===
echo
qemu_comm_method="monitor"
-_launch_qemu -drive file="${TEST_IMG}",cache=none,id=disk
+_launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},id=disk
h1=$QEMU_HANDLE
echo
echo === Starting QEMU VM2 ===
echo
-_launch_qemu -drive file="${TEST_IMG}",cache=none,id=disk \
+_launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},id=disk \
-incoming "exec: cat '${MIG_FIFO}'"
h2=$QEMU_HANDLE
--
1.9.0
- [Qemu-devel] [PULL 00/33] Block patches, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 01/33] qemu-iotests: Handle cache mode option in 091,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 02/33] QemuOpt: add unit tests, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 03/33] qcow2: Fix memory leak in COW error path, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 04/33] aio: Fix use-after-free in cancellation path, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 06/33] block: Add BlockOpType enum, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 07/33] block: Introduce op_blockers to BlockDriverState, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 05/33] iotests: Use _img_info in test 089, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 09/33] block: Move op_blocker check from block_job_create to its caller, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 08/33] block: Replace in_use with operation blocker, Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 10/33] block: Add bdrv_set_backing_hd(), Stefan Hajnoczi, 2014/05/23
- [Qemu-devel] [PULL 11/33] block: Use bdrv_set_backing_hd everywhere, Stefan Hajnoczi, 2014/05/23