|
|
7711c0 |
From ddc6da501740a60c1e7356e60928845be6ca2cda Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
Date: Mon, 4 Feb 2019 20:42:01 +0100
|
|
|
7711c0 |
Subject: [PATCH 01/33] iotests: 153: Fix dead code
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
Message-id: <20190204204207.18079-2-mreitz@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 84219
|
|
|
7711c0 |
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 1/7] iotests: 153: Fix dead code
|
|
|
7711c0 |
Bugzilla: 1551486
|
|
|
7711c0 |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
From: Fam Zheng <famz@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
This step was left behind my mistake. As suggested by the echoed text,
|
|
|
7711c0 |
the intention was to test two devices with the same image, with
|
|
|
7711c0 |
different options. The behavior should be the same as two QEMU
|
|
|
7711c0 |
processes. Complete it.
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Fam Zheng <famz@redhat.com>
|
|
|
7711c0 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
7711c0 |
(cherry picked from commit 0e1a582750269d3dde0481ca034b08a5784e430c)
|
|
|
7711c0 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
tests/qemu-iotests/153 | 2 ++
|
|
|
7711c0 |
tests/qemu-iotests/153.out | 25 +++++++++++++++++++++++++
|
|
|
7711c0 |
2 files changed, 27 insertions(+)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153
|
|
|
7711c0 |
index 673813c..0daeb1b 100755
|
|
|
7711c0 |
--- a/tests/qemu-iotests/153
|
|
|
7711c0 |
+++ b/tests/qemu-iotests/153
|
|
|
7711c0 |
@@ -162,6 +162,7 @@ for opts1 in "" "read-only=on" "read-only=on,force-share=on"; do
|
|
|
7711c0 |
_cleanup_qemu
|
|
|
7711c0 |
done
|
|
|
7711c0 |
|
|
|
7711c0 |
+test_opts="read-only=off read-only=on read-only=on,force-share=on"
|
|
|
7711c0 |
for opt1 in $test_opts; do
|
|
|
7711c0 |
for opt2 in $test_opts; do
|
|
|
7711c0 |
echo
|
|
|
7711c0 |
@@ -170,6 +171,7 @@ for opt1 in $test_opts; do
|
|
|
7711c0 |
done
|
|
|
7711c0 |
done
|
|
|
7711c0 |
|
|
|
7711c0 |
+echo
|
|
|
7711c0 |
echo "== Creating ${TEST_IMG}.[abc] ==" | _filter_testdir
|
|
|
7711c0 |
(
|
|
|
7711c0 |
$QEMU_IMG create -f qcow2 "${TEST_IMG}.a" -b "${TEST_IMG}"
|
|
|
7711c0 |
diff --git a/tests/qemu-iotests/153.out b/tests/qemu-iotests/153.out
|
|
|
7711c0 |
index 3492ba7..93eaf10 100644
|
|
|
7711c0 |
--- a/tests/qemu-iotests/153.out
|
|
|
7711c0 |
+++ b/tests/qemu-iotests/153.out
|
|
|
7711c0 |
@@ -369,6 +369,31 @@ _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
|
|
|
7711c0 |
qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
|
|
|
7711c0 |
|
|
|
7711c0 |
Round done
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=off - read-only=off) ==
|
|
|
7711c0 |
+QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
|
|
|
7711c0 |
+Is another process using the image?
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=off - read-only=on) ==
|
|
|
7711c0 |
+QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=on: Failed to get shared "write" lock
|
|
|
7711c0 |
+Is another process using the image?
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=off - read-only=on,force-share=on) ==
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=on - read-only=off) ==
|
|
|
7711c0 |
+QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
|
|
|
7711c0 |
+Is another process using the image?
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=on - read-only=on) ==
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=on - read-only=on,force-share=on) ==
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=on,force-share=on - read-only=off) ==
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=on,force-share=on - read-only=on) ==
|
|
|
7711c0 |
+
|
|
|
7711c0 |
+== Two devices with the same image (read-only=on,force-share=on - read-only=on,force-share=on) ==
|
|
|
7711c0 |
+
|
|
|
7711c0 |
== Creating TEST_DIR/t.qcow2.[abc] ==
|
|
|
7711c0 |
Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
|
|
|
7711c0 |
Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|