raw-posix: Fix /dev/cdrom magic on OS X
authorKevin Wolf <kwolf@redhat.com>
Tue, 11 Jun 2013 08:44:58 +0000 (10:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Jun 2013 07:20:26 +0000 (09:20 +0200)
commita5c5ea3f60c000bf18c99435439533728a5f34a2
tree66f4f1e3df382b8c258a3110c44dd52f573368d5
parentec3f8c9913c1eeab78a02711be7c2a803dfb4d62
raw-posix: Fix /dev/cdrom magic on OS X

The raw-posix driver has code to provide a /dev/cdrom on OS X even
though it doesn't really exist. However, since commit c66a6157 the real
filename is dismissed after finding it, so opening /dev/cdrom fails.
Put the filename back into the options QDict to make this work again.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c