Re: [Qemu-devel] [PATCH v4] raw-posix: Detect CDROM via ioctl on linux

2010-01-19 Thread Anthony Liguori
On 01/14/2010 10:19 AM, Cole Robinson wrote: Current CDROM detection is hardcoded based on source file name. Make this smarter on linux 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

[Qemu-devel] [PATCH v4] raw-posix: Detect CDROM via ioctl on linux

2010-01-14 Thread Cole Robinson
Current CDROM detection is hardcoded based on source file name. Make this smarter on linux 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.