Skip to content
  • ballen4705's avatar
    smartctl would previously print the LBA of a self-test if it completed, and · fa6914dd
    ballen4705 authored
    the LBA was not 0 or 0xff...f
    
    However according to the specs this is not correct.  According to the specs, if
    the self-test completed without error then LBA is undefined.  This version fixes that.
    
    
    // T13/1321D revision 1c: (Data structure Rev #1)
    
          //The failing LBA shall be the LBA of the uncorrectable sector
          //that caused the test to fail. If the device encountered more
          //than one uncorrectable sector during the test, this field
          //shall indicate the LBA of the first uncorrectable sector
          //encountered. If the test passed or the test failed for some
          //reason other than an uncorrectable sector, the value of this
          //field is undefined.
    
          // This is true in ALL ATA-5 specs
    
    
    git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@151 4ea69e1a-61f1-4043-bf83-b5c94c648137
    fa6914dd