]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/virtio-blk-test: Disable auto-read-only
authorKevin Wolf <kwolf@redhat.com>
Tue, 5 Mar 2019 13:14:52 +0000 (14:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 12 Mar 2019 19:30:13 +0000 (20:30 +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 <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/virtio-blk-test.c

index b02be0274e69f3d8ccdb5065e3870e6f715cc3f0..b65365934b5eb67575703cd64ee2192ea4eeb38a 100644 (file)
@@ -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);