From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un4zK-0006i0-Va for qemu-devel@nongnu.org; Thu, 13 Jun 2013 06:42:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un4zJ-0003yC-O0 for qemu-devel@nongnu.org; Thu, 13 Jun 2013 06:42:42 -0400 Received: from mout.web.de ([212.227.15.3]:54554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un4zJ-0003xe-EA for qemu-devel@nongnu.org; Thu, 13 Jun 2013 06:42:41 -0400 Message-ID: <51B9A21D.3010901@web.de> Date: Thu, 13 Jun 2013 12:42:37 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1371046972-32056-1-git-send-email-kwolf@redhat.com> In-Reply-To: <1371046972-32056-1-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] raw-posix: Fix /dev/cdrom magic on OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel , Peter Maydell , Stefan Hajnoczi , Alexander Graf , Programmingkid Am 12.06.2013 16:22, schrieb Kevin Wolf: > 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 > --- > block/raw-posix.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/block/raw-posix.c b/block/raw-posix.c > index c0ccf27..90ce9f8 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 ) On Mac OS X v10.5.8 ppc64 I get: qemu-system-x86_64: -cdrom /dev/cdrom: could not open disk image /dev/cdrom: No such file or directory On ppc I get a crash even without options, seems unrelated though. Andreas