Blame SOURCES/kvm-tests-virtio-blk-test-Disable-auto-read-only.patch

7711c0
From b8529f23bd95687344653d4ffd56080d35b4a94f Mon Sep 17 00:00:00 2001
7711c0
From: Kevin Wolf <kwolf@redhat.com>
7711c0
Date: Fri, 15 Mar 2019 18:09:57 +0100
7711c0
Subject: [PATCH 001/163] tests/virtio-blk-test: Disable auto-read-only
7711c0
7711c0
RH-Author: Kevin Wolf <kwolf@redhat.com>
7711c0
Message-id: <20190315181010.14964-2-kwolf@redhat.com>
7711c0
Patchwork-id: 84878
7711c0
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 01/14] tests/virtio-blk-test: Disable auto-read-only
7711c0
Bugzilla: 1685989
7711c0
RH-Acked-by: John Snow <jsnow@redhat.com>
7711c0
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
7711c0
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
7711c0
tests/virtio-blk-test uses a temporary image file that it deletes while
7711c0
QEMU is still running, so it can't be reopened when writers are
7711c0
attached or detached. Disable auto-read-only to keep it always writable.
7711c0
7711c0
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
7711c0
Reviewed-by: Eric Blake <eblake@redhat.com>
7711c0
(cherry picked from commit 70304118bb920f2aa961530b64efcce761e4cb5b)
7711c0
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 tests/virtio-blk-test.c | 2 +-
7711c0
 1 file changed, 1 insertion(+), 1 deletion(-)
7711c0
7711c0
diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c
7711c0
index 9be9ffb..2ed4e74 100644
7711c0
--- a/tests/virtio-blk-test.c
7711c0
+++ b/tests/virtio-blk-test.c
7711c0
@@ -62,7 +62,7 @@ static QOSState *pci_test_start(void)
7711c0
     QOSState *qs;
7711c0
     const char *arch = qtest_get_arch();
7711c0
     char *tmp_path;
7711c0
-    const char *cmd = "-drive if=none,id=drive0,file=%s,format=raw "
7711c0
+    const char *cmd = "-drive if=none,id=drive0,file=%s,format=raw,auto-read-only=off "
7711c0
                       "-drive if=none,id=drive1,file=null-co://,format=raw "
7711c0
                       "-device virtio-blk-pci,id=drv0,drive=drive0,"
7711c0
                       "addr=%x.%x";
7711c0
-- 
7711c0
1.8.3.1
7711c0