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,
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
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.