~juanje/udev/udev-acls-android

Viewing all changes in revision 171.

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-04-15 22:29:06 UTC
  • Revision ID: james.westby@ubuntu.com-20100415222906-noxpchsk5tg0ds6b
Tags: 151-11
* Fix cdrom_id even harder to correctly detecting media. (Committed to
  and cherrypicked from upstream git head):
  - Rework feature/profiles buffer parsing: Previously we were ignoring many
    profiles, which could lead to misdetecting the content types.
  - Print more debug messages with -d.
  - Do not ignore errors from scsi_cmd_run(). scsi_cmd_run() can return
    positive error messages if we have CHECK_CONDITION set and get the error
    code from the SCSI command result. So check the result for non-zero, not
    for being negative.  This fix another common cause for "phantom" media
    in empty CD-ROM drives. (LP: #562978)
  - Swap media state and TOC info probing. Blank CDs do not have a TOC, thus
    will fail cd_media_toc() (at least with the "Do not ignore errors from
    scsi_cmd_run()" fix). Thus probe the media state first, so that we can
    properly detect blank media.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: