diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-06-11 10:44:58 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-08-12 17:17:02 -0500 |
commit | f7fe3d2f7733648b6f0d36e617180622634fe00e (patch) | |
tree | fd6c44e64f1e06b04513a2aa5a61a4f54bdab6c4 | |
parent | 9f60383b4173c34772251446b0ab83b5c7152f16 (diff) | |
download | qemu-f7fe3d2f7733648b6f0d36e617180622634fe00e.tar.gz |
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>
(cherry picked from commit a5c5ea3f60c000bf18c99435439533728a5f34a2)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r-- | block/raw-posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/raw-posix.c b/block/raw-posix.c index c0ccf273a3..90ce9f86af 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -1350,6 +1350,7 @@ static int hdev_open(BlockDriverState *bs, QDict *options, int flags) qemu_close(fd); } filename = bsdPath; + qdict_put(options, "filename", qstring_from_str(filename)); } if ( mediaIterator ) |