diff options
author | Kevin Wolf | 2019-03-05 14:14:52 +0100 |
---|---|---|
committer | Kevin Wolf | 2019-03-12 20:30:13 +0100 |
commit | 70304118bb920f2aa961530b64efcce761e4cb5b (patch) | |
tree | d0ed42e569608b9c596a2ac7fbb2acecec518b0a /tests/virtio-blk-test.c | |
parent | qapi: drop x- from x-block-latency-histogram-set (diff) | |
download | qemu-70304118bb920f2aa961530b64efcce761e4cb5b.tar.gz qemu-70304118bb920f2aa961530b64efcce761e4cb5b.tar.xz qemu-70304118bb920f2aa961530b64efcce761e4cb5b.zip |
tests/virtio-blk-test: Disable auto-read-only
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 <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/virtio-blk-test.c')
-rw-r--r-- | tests/virtio-blk-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c index b02be0274e..b65365934b 100644 --- a/tests/virtio-blk-test.c +++ b/tests/virtio-blk-test.c @@ -751,7 +751,7 @@ static void *virtio_blk_test_setup(GString *cmd_line, void *arg) char *tmp_path = drive_create(); g_string_append_printf(cmd_line, - " -drive if=none,id=drive0,file=%s,format=raw " + " -drive if=none,id=drive0,file=%s,format=raw,auto-read-only=off " "-drive if=none,id=drive1,file=null-co://,format=raw ", tmp_path); |