]> git.proxmox.com Git - qemu.git/commit
blockdev: fix cdrom read_only flag
authorFam Zheng <famz@redhat.com>
Tue, 15 Oct 2013 09:45:50 +0000 (17:45 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 17 Oct 2013 08:19:59 +0000 (10:19 +0200)
commita7fdbcf0e6e52d935ebff6d849fe4b5473e5860d
tree2993b4dc1c788faeafe084da17c618eda84ba3c7
parent794cbc26eb94ce13c75d105eea9ff0afff56e2c2
blockdev: fix cdrom read_only flag

Since 0ebd24e0, cdrom doesn't have read-only on by default, which will
error out when using an read only image. Fix it by setting the default
value when parsing opts.

Reported-by: Edivaldo de Araujo Pereira <edivaldoapereira@yahoo.com.br>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c