]> err.no Git - systemd/commit
cdrom_id: Fall back to CDROM_DRIVE_STATUS if all MMC commands fail
authorMartin Pitt <martin.pitt@ubuntu.com>
Tue, 5 Oct 2010 12:59:51 +0000 (14:59 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 5 Oct 2010 12:59:51 +0000 (14:59 +0200)
commit678df8a461c7573bf423a39be383bc7b70d943df
treee27f181133165c4281f2575b9cf9b0fe311755c6
parent13e0fca5dff286921a8df0cd737e6e1224e53275
cdrom_id: Fall back to CDROM_DRIVE_STATUS if all MMC commands fail

Reportedly, some "when I'm grown up I want to be a CD drive" fake USB CD sticks
like the IronKey neither support the SCSI "GET CONFIGURATION" nor the older
(pre-MMC2) "READ DISC INFORMATION" command. In that case, check if
cd_media_compat() detected that there is a disc present, and assume that we
have a CD-ROM medium.
extras/cdrom_id/cdrom_id.c