[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add real CDROM menu item
From: |
Programmingkid |
Subject: |
Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add real CDROM menu item |
Date: |
Sat, 26 Sep 2015 08:26:44 -0400 |
On Sep 26, 2015, at 1:45 AM, Namsun Ch'o wrote:
>> Add a menu item to the Machine menu called "Use Real CDROM". It gives the
>> user the ability to use a real CDROM with QEMU by simply selecting a menu
>> item.
>
>> NSASCIIStringEncoding];
>> + qmp_change_blockdev(device, "/dev/cdrom", "raw", &err);
>> + handleAnyDeviceErrors(err);
>
> Not all systems put their CDROM in /dev/cdrom. And you can already select the
> machine's real CDROM hardware by doing -cdrom /dev/cdrom (or /dev/sr0, etc).
> Examples of device files for CDROMs on other systems:
>
> /dev/sr0
> /dev/cd0
> /dev/sdc0
> /dev/acd0c
> /dev/cdrom0
> /dev/disk1s0
> /dev/scsi/sc0d
> /dev/dsk/c1t0d0s0
> /dev/rdsk/dks0d1vh
>
> And of course many of the numbers here increment on systems with multiple
> drives. There is seriously an insane amount of variation of the names of CDROM
> drives. Don't assume that it will only be /dev/cdrom and hardcode it that way.
Actually on Mac OS X, /dev/cdrom always points to the optical drive. It is how
QEMU is programmed.