]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
drive: allow rerror, werror and readonly for if=none
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 26 May 2010 08:44:44 +0000 (10:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 May 2010 11:14:25 +0000 (13:14 +0200)
commitdc33bb341122623105573d47fa6d71a0ba5ff15c
tree74b3c14938141987fb36f9a4fb4db6a2708580fd
parentb50cbabc1bc12e6b0082089c70015c1b97db86a1
drive: allow rerror, werror and readonly for if=none

When creating guest disks the qdev way using ...

  -drive if=none,id=$name,args
  -device $driver,drive=$name

it is not possible to specify rerror, werror and readonly arguments
for drive as drive_init allows/blocks them based on the interface (if=)
specified and none isn't white-listed there.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
vl.c