summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-06-11 10:44:58 +0200
committerKevin Wolf <kwolf@redhat.com>2013-06-28 09:20:26 +0200
commita5c5ea3f60c000bf18c99435439533728a5f34a2 (patch)
tree66f4f1e3df382b8c258a3110c44dd52f573368d5 /block
parentec3f8c9913c1eeab78a02711be7c2a803dfb4d62 (diff)
downloadqemu-a5c5ea3f60c000bf18c99435439533728a5f34a2.tar.gz
qemu-a5c5ea3f60c000bf18c99435439533728a5f34a2.tar.bz2
qemu-a5c5ea3f60c000bf18c99435439533728a5f34a2.zip
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>
Diffstat (limited to 'block')
-rw-r--r--block/raw-posix.c1
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 )