Cole Robinson 3baf720e6b raw-posix: Detect CDROM via ioctl on linux
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.
    Check for ioctl success rather than absence of specific failure.

v4:
    Explicitly mention that change is linux specific.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-01-19 16:31:03 -06:00
..
2009-12-25 19:27:18 +00:00
2009-10-27 12:28:59 -05:00
2010-01-11 13:41:00 -06:00
2010-01-13 17:14:15 -06:00
2010-01-13 17:14:15 -06:00
2009-07-22 10:58:47 -05:00
2009-09-09 14:57:20 -05:00
2009-10-01 16:12:16 -05:00