Blame SOURCES/kvm-iotests-Don-t-lock-dev-null-in-226.patch

383d26
From 0290b82d90f8010677d46d3625fe5db50f25f763 Mon Sep 17 00:00:00 2001
383d26
From: John Snow <jsnow@redhat.com>
383d26
Date: Wed, 20 Mar 2019 17:12:06 +0100
383d26
Subject: [PATCH 035/163] iotests: Don't lock /dev/null in 226
383d26
383d26
RH-Author: John Snow <jsnow@redhat.com>
383d26
Message-id: <20190320171206.19236-3-jsnow@redhat.com>
383d26
Patchwork-id: 84962
383d26
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 2/2] iotests: Don't lock /dev/null in 226
383d26
Bugzilla: 1691018
383d26
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
383d26
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
383d26
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
383d26
383d26
From: Fam Zheng <famz@redhat.com>
383d26
383d26
On my system (Fedora 28), this script reports a 'failed to get
383d26
"consistent read" lock' error. Following docs/devel/testing.rst, it's
383d26
better to add locking=off here.
383d26
383d26
Signed-off-by: Fam Zheng <famz@redhat.com>
383d26
Reviewed-by: Eric Blake <eblake@redhat.com>
383d26
Reviewed-by: John Snow <jsnow@redhat.com>
383d26
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
383d26
(cherry picked from commit ac49c189b4fd48251314a2b5d5a251bcc1687d66)
383d26
Signed-off-by: John Snow <jsnow@redhat.com>
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
---
383d26
 tests/qemu-iotests/226 | 4 ++--
383d26
 1 file changed, 2 insertions(+), 2 deletions(-)
383d26
383d26
diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226
383d26
index a5a1f67..0bc227f 100755
383d26
--- a/tests/qemu-iotests/226
383d26
+++ b/tests/qemu-iotests/226
383d26
@@ -53,10 +53,10 @@ for PROTO in "file" "host_device" "host_cdrom"; do
383d26
     echo
383d26
     echo "== Testing RO =="
383d26
     $QEMU_IO -c "open -r -o driver=$PROTO,filename=$TEST_IMG" 2>&1 | _filter_testdir | _filter_imgfmt
383d26
-    $QEMU_IO -c "open -r -o driver=$PROTO,filename=/dev/null" 2>&1 | _filter_imgfmt
383d26
+    $QEMU_IO -c "open -r -o driver=$PROTO,filename=/dev/null,locking=off" 2>&1 | _filter_imgfmt
383d26
     echo "== Testing RW =="
383d26
     $QEMU_IO -c "open -o driver=$PROTO,filename=$TEST_IMG" 2>&1 | _filter_testdir | _filter_imgfmt
383d26
-    $QEMU_IO -c "open -o driver=$PROTO,filename=/dev/null" 2>&1 | _filter_imgfmt
383d26
+    $QEMU_IO -c "open -o driver=$PROTO,filename=/dev/null,locking=off" 2>&1 | _filter_imgfmt
383d26
 done
383d26
 
383d26
 # success, all done
383d26
-- 
383d26
1.8.3.1
383d26