~ubuntu-branches/ubuntu/saucy/libatasmart/saucy

« back to all changes in this revision

Viewing changes to .pc/0002-Drop-our-own-many-bad-sectors-heuristic.patch/atasmart.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-03-25 07:38:36 UTC
  • mfrom: (12.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130325073836-wvynbcyypar3jy1e
Tags: 0.19-2
* debian/local/apport-hook.py: Fix syntax to be Python 3 compatible.
  (LP: #1013171)
* debian/local/apport-hook.py: Include output of "udisksctl dump" from
  udisks2.
* Add 0001-Dont-test-undefined-bits.patch: Fix an incorrect IO error reading
  SMART status, by filtering out undefined bits. Thanks Phillip Susi.
  (LP: #1143495)
* Bump Standards-Version to 3.9.4, no changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
923
923
        /* SAT/USB bridges truncate packets, so we only check for 4F,
924
924
         * not for 2C on those */
925
925
        if ((d->type == SK_DISK_TYPE_ATA_PASSTHROUGH_12 || cmd[3] == htons(0x00C2U)) &&
926
 
            cmd[4] == htons(0x4F00U))
 
926
            (cmd[4] & htons(0xFF00U)) == htons(0x4F00U))
927
927
                *good = TRUE;
928
928
        else if ((d->type == SK_DISK_TYPE_ATA_PASSTHROUGH_12 || cmd[3] == htons(0x002CU)) &&
929
 
                 cmd[4] == htons(0xF400U))
 
929
                 (cmd[4] & htons(0xFF00U)) == htons(0xF400U))
930
930
                *good = FALSE;
931
931
        else {
932
932
                errno = EIO;