[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 1/8] tests/virtio-blk-test: Disable auto-read-only
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PATCH 1/8] tests/virtio-blk-test: Disable auto-read-only |
Date: |
Fri, 8 Mar 2019 16:37:50 +0100 |
tests/virtio-blk-test uses a temporary image file that it deletes while
QEMU is still running, so it can't be reopened when writers are
attached or detached. Disable auto-read-only to keep it always writable.
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/virtio-blk-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c
index 8d2fc9c710..0e464aeea4 100644
--- a/tests/virtio-blk-test.c
+++ b/tests/virtio-blk-test.c
@@ -72,7 +72,7 @@ static QOSState *pci_test_start(void)
QOSState *qs;
const char *arch = qtest_get_arch();
char *tmp_path;
- const char *cmd = "-drive if=none,id=drive0,file=%s,format=raw "
+ const char *cmd = "-drive
if=none,id=drive0,file=%s,format=raw,auto-read-only=off "
"-drive if=none,id=drive1,file=null-co://,format=raw "
"-device virtio-blk-pci,id=drv0,drive=drive0,"
"addr=%x.%x";
--
2.20.1
- [Qemu-block] [PATCH 0/8] file-posix: Make auto-read-only dynamic, Kevin Wolf, 2019/03/08
- [Qemu-block] [PATCH 1/8] tests/virtio-blk-test: Disable auto-read-only,
Kevin Wolf <=
- [Qemu-block] [PATCH 2/8] block: Avoid useless local_err, Kevin Wolf, 2019/03/08
- [Qemu-block] [PATCH 3/8] block: Make permission changes in reopen less wrong, Kevin Wolf, 2019/03/08
- [Qemu-block] [PATCH 4/8] file-posix: Factor out raw_reconfigure_getfd(), Kevin Wolf, 2019/03/08
- [Qemu-block] [PATCH 6/8] file-posix: Lock new fd in raw_reopen_prepare(), Kevin Wolf, 2019/03/08
- [Qemu-block] [PATCH 5/8] file-posix: Store BDRVRawState.reopen_state during reopen, Kevin Wolf, 2019/03/08
- [Qemu-block] [PATCH 7/8] file-posix: Prepare permission code for fd switching, Kevin Wolf, 2019/03/08
- [Qemu-block] [PATCH 8/8] file-posix: Make auto-read-only dynamic, Kevin Wolf, 2019/03/08
- Re: [Qemu-block] [PATCH 0/8] file-posix: Make auto-read-only dynamic, Peter Krempa, 2019/03/11