]> err.no Git - systemd/commit
cdrom_id: Handle pre-MMC2 drives
authorJan Drzewiecki <jonie@icpnet.pl>
Sun, 8 Aug 2010 15:57:47 +0000 (17:57 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 8 Aug 2010 15:57:47 +0000 (17:57 +0200)
commitd83dfabe0d75d0c5dd322f05abc1f04d2ca5be6c
tree0abbfc013db80c1940b16be648bde3433b486efd
parent1ef6c9e9f0f405d1fed403c13c57a233a484bed7
cdrom_id: Handle pre-MMC2 drives

Those do not yet support the 0x46 "GET CONFIGURATION" support. If we have
those, fall back to the 0x51 "READ DISC INFORMATION" call. This can only
differentiate between CD-RW and CD-R, but first that's better than a complete
detection failure, and second, those old drives likely don't support more
modern media in the first place.

https://launchpad.net/bugs/502143

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
extras/cdrom_id/cdrom_id.c