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

2010-01-11 Thread Cole Robinson
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. Signed-off-by: Cole Robinson crobi...@redhat.com --- block/raw-posix.c | 18 +- 1 files changed,

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

2010-01-11 Thread Simon Horman
On Mon, Jan 11, 2010 at 01:30:18PM -0500, 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. Signed-off-by: Cole Robinson

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

2010-01-11 Thread Cole Robinson
On 01/11/2010 06:13 PM, Simon Horman wrote: On Mon, Jan 11, 2010 at 01:30:18PM -0500, 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.