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

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