summaryrefslogtreecommitdiffstats
path: root/atasmart.c
Commit message (Collapse)AuthorAgeFilesLines
* Seagate's ST9160821AS drive encodes something strange in attribute 9Lennart Poettering2009-04-231-1/+10
| | | | | | | | Attribute 9 of ST9160821AS apparently is not the power on time in hours. Since we have no idea what it is and how it is encoded this adds a quirk to mark the attribute as 'unknown' for this drive. See rhbz #497107.
* don't claim we would know what reallocated-event-count actually isLennart Poettering2009-04-231-3/+2
| | | | | | | | We don't reliably know what this actually is on many drives and since it is redundant to reallocated-sectors-count it's no loss to admit that we have no clue. See rhbz #497107.
* use only uppermost 32 bits for reallocated-sectors-count attribute pretty valueLennart Poettering2009-04-231-0/+2
| | | | | | | | | This seems to fix the attribute for Fujitsu drives. And those 32 bit should be enough to still encode bad sectors up to 2TB which should be more than enough. Hence it is probably safe to ignore the remaing 16 bit even on non-Fujitsu drives. See rhbz #496087.
* Support for JMicron ATA/USB bridgesLennart Poettering2009-04-221-13/+144
|
* don't look for reallocated-sector-count since some vendors seem to encode ↵Lennart Poettering2009-04-151-2/+1
| | | | this differently than others
* only use 'prefail' attributes for overall statusLennart Poettering2009-04-151-1/+1
|
* when dumping status print message when SMART is not supportedLennart Poettering2009-04-141-1/+2
|
* when dealing with unknown block device type don't confuse with sunplus deviceLennart Poettering2009-04-141-1/+10
|
* don't depend on udev's ID_BUS variable when figuring out device typeLennart Poettering2009-04-141-37/+25
|
* initialize cmd data before passing it to the scsi ioctlsLennart Poettering2009-04-141-0/+2
|
* add new API sk_disk_smart_get_power_cycle()Lennart Poettering2009-04-141-4/+48
|
* do a basic all-NUL check for the identify data before accepting it is validLennart Poettering2009-04-121-0/+14
|
* revamp blob serialization and include smart status fieldLennart Poettering2009-04-101-65/+249
|
* minor cleanupLennart Poettering2009-04-091-3/+2
|
* deal with ATA/USB truncationLennart Poettering2009-04-091-2/+4
|
* add support for sunplus usb/ata bridgesLennart Poettering2009-04-091-20/+170
|
* use O_NONBLOCK mode when opening deviceLennart Poettering2009-04-071-1/+7
|
* fix parsing of awake statusLennart Poettering2009-04-071-1/+3
|
* make sure we don't choke on attribute id 255Lennart Poettering2009-04-051-1/+1
|
* define type string for 'unknown'Lennart Poettering2009-04-051-2/+2
|
* remove | chars that are too much from regexpLennart Poettering2009-04-031-2/+2
|
* fix parsing of power-on-minutesLennart Poettering2009-04-031-1/+1
|
* open the disk device in O_RDONLY, let's see how compatible that isLennart Poettering2009-04-031-1/+1
|
* make sure the blob data is packed. it's certainly packed anyway, but let's ↵Lennart Poettering2009-04-031-1/+1
| | | | better be safe than sorry
* add functions to save/load smart data blobs directlyLennart Poettering2009-04-021-81/+200
|
* copy in new quirk table from smartmontoolsLennart Poettering2009-03-241-52/+82
|
* handle the good status of bad sector attributes especiallyLennart Poettering2009-03-191-0/+10
|
* drop -1 suffix from attribute names to make things more future-proofLennart Poettering2009-03-191-5/+5
|
* add new API sk_disk_smart_get_overall()Lennart Poettering2009-03-191-14/+80
|
* add high-level sk_disk_smart_get_{power_on, temperature, bad}() callsLennart Poettering2009-03-191-19/+182
|
* fix a few typosLennart Poettering2009-03-191-7/+7
|
* dump access modeLennart Poettering2009-03-181-2/+20
|
* 12-byte SAT support for libatasmartMatthew Garrett2009-03-181-7/+79
| | | | | | | | | | | | | | Hi Lennart, My USB enclosure (a Maxtor basics of some description) supports SAT, but only the 12-byte version. I've included a patch that implements it. RIght now it tries the 16 byte one and then falls back, which is possibly not ideal - there's a significant pause before the 16 byte one finishes and the 12 byte one is tried. I'd reverse the order, but I've no idea if that would confuse other devices. Are we able to check for which commands the firmware claims to support? Signed-off-by: Lennart Poettering <lennart@poettering.net>
* fix space dropping algorithmLennart Poettering2008-07-251-0/+1
|
* add missing strpool lookupLennart Poettering2008-07-251-1/+1
|
* add more complete quirk frameworkLennart Poettering2008-07-251-57/+326
|
* strinpoolize even more tablesLennart Poettering2008-07-191-1/+2
|
* initialize sense data to make valgrind shut upLennart Poettering2008-07-191-0/+2
|
* actually use strpool for the atasmart sourcesLennart Poettering2008-07-191-10/+15
|
* add a simple string pool generatorLennart Poettering2008-07-031-0/+8
|
* make a few attribute names actually uniqueLennart Poettering2008-07-031-4/+4
|
* include raw attribute dataLennart Poettering2008-07-021-2/+4
|
* highlight lines only when good_valid is setLennart Poettering2008-07-021-2/+5
|
* check for threshold/value validityLennart Poettering2008-07-021-12/+33
|
* autoconfizationLennart Poettering2008-07-011-3/+1
|
* fix copyright blurbLennart Poettering2008-07-011-4/+4
|
* fixup #includesLennart Poettering2008-07-011-1/+1
|
* rename smart.[ch] to atasmart.[ch]Lennart Poettering2008-07-011-0/+1258