[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3] raw-posix: Detect CDROM via ioctl
From: |
malc |
Subject: |
Re: [Qemu-devel] [PATCH v3] raw-posix: Detect CDROM via ioctl |
Date: |
Thu, 14 Jan 2010 03:11:28 +0300 (MSK) |
On Wed, 13 Jan 2010, Cole Robinson wrote:
> Current CDROM detection is hardcoded based on source file name.
> Make this smarter by attempting a CDROM specific ioctl.
>
> This makes '-cdrom /dev/sr0' succeed with no media present.
>
> v2:
> Give ioctl check higher priority than filename check,
>
> v3:
> Actually initialize 'prio' variable
> Check for ioctl success rather than absence of specific failure
Does it even compile on BSDs, Darwin etc?
[..snip..]
--
mailto:address@hidden