[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] raw-posix: Fix /dev/cdrom magic on OS X
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH] raw-posix: Fix /dev/cdrom magic on OS X |
Date: |
Thu, 13 Jun 2013 12:42:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
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: address@hidden
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> 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