chiark / gitweb /
fix single-session CD detection
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 20 Sep 2009 17:07:51 +0000 (19:07 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 20 Sep 2009 17:07:51 +0000 (19:07 +0200)
commitce096702ec01b12ca8af9b4c19f4bb5a83c787a1
treebb99fea8049d85898856bebd9680a4ca30ca7eca
parent4dd9057209a09c523c04abe04a2540768e6b9d4e
fix single-session CD detection

ID_CDROM_MEDIA_SESSION_LAST_OFFSET is not set for CDs with only a single
session (i. e. for the vast majority of CDs out there). The previous rules ran
blkid with invalid arguments for these, causing CD detection to fail in
DK-disks and gvfs.

Now check whether we actually have ID_CDROM_MEDIA_SESSION_LAST_OFFSET, and if
not, call blkid without -O for specifying the offset.

Many thanks to Maxim Levitsky for tracking this down!

https://launchpad.net/bugs/431055
rules/rules.d/60-persistent-storage.rules