Lennart Poettering [Wed, 6 May 2009 22:50:51 +0000 (00:50 +0200)]
allow prefixing device strings with access methods
Lennart Poettering [Wed, 6 May 2009 22:50:23 +0000 (00:50 +0200)]
rename SK_DISK_TYPE_ATA to SK_DISK_TYPE_LINUX_IDE
Lennart Poettering [Wed, 6 May 2009 18:29:50 +0000 (20:29 +0200)]
black list a few attributes on FUJITSU MHY2120BH/
0085000B
Lennart Poettering [Wed, 6 May 2009 18:21:40 +0000 (20:21 +0200)]
add a weird furjitsu drive to our db
Lennart Poettering [Wed, 6 May 2009 18:21:12 +0000 (20:21 +0200)]
look at lower 32 bit of current-pending-sector raw data only, similar to reallocated-sector-count
Lennart Poettering [Fri, 24 Apr 2009 18:58:56 +0000 (20:58 +0200)]
add another sunplus bridge to the list of supported sunplus bridges
Lennart Poettering [Fri, 24 Apr 2009 17:31:28 +0000 (19:31 +0200)]
add missing 'else'
Lennart Poettering [Thu, 23 Apr 2009 22:52:02 +0000 (00:52 +0200)]
Get rid of qurik 9_UNKNOWN again
Apparently Seagate seems to use the MSB's of the raw data of the
power-on-time field for something else on some disks, so let's just look
at the lower 32bits of that field and we get a value that works on all
disks including those from Seagate. 32bit should be more than enough to
encode the power-on-time for almost all disks so this should not be much
of a limitation.
Lennart Poettering [Wed, 22 Apr 2009 22:43:02 +0000 (00:43 +0200)]
bump version and soname
Lennart Poettering [Wed, 22 Apr 2009 22:36:44 +0000 (00:36 +0200)]
add more smart blobs
Lennart Poettering [Wed, 22 Apr 2009 22:36:10 +0000 (00:36 +0200)]
document that we are not just interested in bad but also in weird drive's smart data
Lennart Poettering [Wed, 22 Apr 2009 22:30:19 +0000 (00:30 +0200)]
Seagate's ST9160821AS drive encodes something strange in attribute 9
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.
Lennart Poettering [Wed, 22 Apr 2009 22:28:54 +0000 (00:28 +0200)]
don't claim we would know what reallocated-event-count actually is
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.
Lennart Poettering [Wed, 22 Apr 2009 22:25:39 +0000 (00:25 +0200)]
use only uppermost 32 bits for reallocated-sectors-count attribute pretty value
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.
Lennart Poettering [Wed, 22 Apr 2009 21:48:29 +0000 (23:48 +0200)]
Support for JMicron ATA/USB bridges
Lennart Poettering [Wed, 15 Apr 2009 21:39:23 +0000 (23:39 +0200)]
update comments a bit
Lennart Poettering [Wed, 15 Apr 2009 21:36:22 +0000 (23:36 +0200)]
bump version and soname
Lennart Poettering [Wed, 15 Apr 2009 21:28:47 +0000 (23:28 +0200)]
don't look for reallocated-sector-count since some vendors seem to encode this differently than others
Lennart Poettering [Wed, 15 Apr 2009 21:27:40 +0000 (23:27 +0200)]
only use 'prefail' attributes for overall status
Lennart Poettering [Tue, 14 Apr 2009 21:10:22 +0000 (23:10 +0200)]
bump version
Lennart Poettering [Tue, 14 Apr 2009 20:50:09 +0000 (22:50 +0200)]
add new --power-cycle/--can-smart/--status switches to skdump
Lennart Poettering [Tue, 14 Apr 2009 20:23:55 +0000 (22:23 +0200)]
when dumping status print message when SMART is not supported
Lennart Poettering [Tue, 14 Apr 2009 20:23:28 +0000 (22:23 +0200)]
when dealing with unknown block device type don't confuse with sunplus device
Lennart Poettering [Tue, 14 Apr 2009 20:11:15 +0000 (22:11 +0200)]
don't depend on udev's ID_BUS variable when figuring out device type
Lennart Poettering [Tue, 14 Apr 2009 20:10:49 +0000 (22:10 +0200)]
initialize cmd data before passing it to the scsi ioctls
Lennart Poettering [Tue, 14 Apr 2009 03:14:30 +0000 (05:14 +0200)]
bump version and soname
Lennart Poettering [Tue, 14 Apr 2009 03:13:13 +0000 (05:13 +0200)]
add new API sk_disk_smart_get_power_cycle()
Lennart Poettering [Sun, 12 Apr 2009 21:45:27 +0000 (23:45 +0200)]
ship example blobs in tarball
Lennart Poettering [Sun, 12 Apr 2009 21:33:30 +0000 (23:33 +0200)]
bump version and soname
Lennart Poettering [Sun, 12 Apr 2009 21:28:13 +0000 (23:28 +0200)]
do a basic all-NUL check for the identify data before accepting it is valid
David Zeuthen [Fri, 10 Apr 2009 04:06:32 +0000 (00:06 -0400)]
update WDC WD2500JB and WDC WD5000AAKS for new blob format
Lennart Poettering [Fri, 10 Apr 2009 03:26:21 +0000 (05:26 +0200)]
bump version and soname
Lennart Poettering [Fri, 10 Apr 2009 03:24:11 +0000 (05:24 +0200)]
update SAMSUNG HD501LJ--CR100-12 for new blob format
Lennart Poettering [Fri, 10 Apr 2009 03:21:15 +0000 (05:21 +0200)]
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/libatasmart
Lennart Poettering [Fri, 10 Apr 2009 03:21:05 +0000 (05:21 +0200)]
update Maxtor 96147H8--BAC51KJ0 for new blob format
Lennart Poettering [Fri, 10 Apr 2009 03:18:19 +0000 (05:18 +0200)]
update ST320410A--3.39 for new blob format
Lennart Poettering [Fri, 10 Apr 2009 03:16:11 +0000 (05:16 +0200)]
revamp blob serialization and include smart status field
Lennart Poettering [Fri, 10 Apr 2009 03:15:51 +0000 (05:15 +0200)]
hide more files
Lennart Poettering [Fri, 10 Apr 2009 03:13:29 +0000 (05:13 +0200)]
document that when we extend the enums we don't consider that abi breakage
Lennart Poettering [Thu, 9 Apr 2009 19:19:51 +0000 (21:19 +0200)]
minor cleanup
Lennart Poettering [Thu, 9 Apr 2009 01:35:03 +0000 (03:35 +0200)]
deal with ATA/USB truncation
Lennart Poettering [Thu, 9 Apr 2009 00:26:07 +0000 (02:26 +0200)]
add support for sunplus usb/ata bridges
Lennart Poettering [Tue, 7 Apr 2009 19:41:33 +0000 (21:41 +0200)]
bump soname and version
Lennart Poettering [Tue, 7 Apr 2009 19:39:37 +0000 (21:39 +0200)]
use O_NONBLOCK mode when opening device
Lennart Poettering [Tue, 7 Apr 2009 19:38:40 +0000 (21:38 +0200)]
fix parsing of awake status
David Zeuthen [Tue, 7 Apr 2009 13:36:15 +0000 (09:36 -0400)]
add blobs for two failing disks
WDC WD5000AAKS-00TMA0--12.01C01 has bad sectors
5 reallocated-sector-count 192 192 140 63 sectors 0x3f0000000000 prefail online no
196 reallocated-event-count 137 137 0 63 sectors 0x3f0000000000 old-age online no
197 current-pending-sector 194 193 0 529 sectors 0x110200000000 old-age online no
WDC WD2500JB-00REA0-20.00K20 has a single bad sector and also report
problems with spin-up time
3 spin-up-time 198 1 21 5.1 s 0xe31300000000 prefail online no
197 current-pending-sector 200 200 0 1 sectors 0x010000000000 old-age online no
Lennart Poettering [Sun, 5 Apr 2009 16:55:14 +0000 (18:55 +0200)]
bump version and soname
Lennart Poettering [Sun, 5 Apr 2009 16:51:50 +0000 (18:51 +0200)]
make sure we don't choke on attribute id 255
Lennart Poettering [Sun, 5 Apr 2009 16:45:14 +0000 (18:45 +0200)]
add another bad drive smart blob
Lennart Poettering [Sun, 5 Apr 2009 16:39:33 +0000 (18:39 +0200)]
fix typo
Lennart Poettering [Sun, 5 Apr 2009 16:39:08 +0000 (18:39 +0200)]
add another bad driver SMART blob
Lennart Poettering [Sun, 5 Apr 2009 16:35:36 +0000 (18:35 +0200)]
include a few bad smart blobs for testing purposes
Lennart Poettering [Sun, 5 Apr 2009 16:33:30 +0000 (18:33 +0200)]
update --help text
Lennart Poettering [Sun, 5 Apr 2009 16:30:39 +0000 (18:30 +0200)]
define type string for 'unknown'
Lennart Poettering [Fri, 3 Apr 2009 17:42:44 +0000 (19:42 +0200)]
bump revision and soname
Lennart Poettering [Fri, 3 Apr 2009 17:23:42 +0000 (19:23 +0200)]
remove | chars that are too much from regexp
Lennart Poettering [Fri, 3 Apr 2009 17:23:20 +0000 (19:23 +0200)]
fix parsing of power-on-minutes
Lennart Poettering [Fri, 3 Apr 2009 17:02:03 +0000 (19:02 +0200)]
open the disk device in O_RDONLY, let's see how compatible that is
Lennart Poettering [Fri, 3 Apr 2009 16:46:53 +0000 (18:46 +0200)]
make sure the blob data is packed. it's certainly packed anyway, but let's better be safe than sorry
Lennart Poettering [Thu, 2 Apr 2009 21:45:34 +0000 (23:45 +0200)]
bump revision and soname
Lennart Poettering [Thu, 2 Apr 2009 21:44:56 +0000 (23:44 +0200)]
beef up skdump to be able to load/save blobs
Lennart Poettering [Thu, 2 Apr 2009 21:44:25 +0000 (23:44 +0200)]
add functions to save/load smart data blobs directly
Lennart Poettering [Tue, 24 Mar 2009 00:56:11 +0000 (01:56 +0100)]
bump revision for 0.3
Lennart Poettering [Tue, 24 Mar 2009 00:51:02 +0000 (01:51 +0100)]
copy in new quirk table from smartmontools
Lennart Poettering [Thu, 19 Mar 2009 00:20:54 +0000 (01:20 +0100)]
bump revision
Lennart Poettering [Thu, 19 Mar 2009 00:19:42 +0000 (01:19 +0100)]
update .gitignore
Lennart Poettering [Thu, 19 Mar 2009 00:19:21 +0000 (01:19 +0100)]
handle the good status of bad sector attributes especially
Lennart Poettering [Thu, 19 Mar 2009 00:12:40 +0000 (01:12 +0100)]
drop -1 suffix from attribute names to make things more future-proof
Lennart Poettering [Thu, 19 Mar 2009 00:10:43 +0000 (01:10 +0100)]
add new API sk_disk_smart_get_overall()
Lennart Poettering [Wed, 18 Mar 2009 23:37:38 +0000 (00:37 +0100)]
add high-level sk_disk_smart_get_{power_on, temperature, bad}() calls
Lennart Poettering [Wed, 18 Mar 2009 23:37:08 +0000 (00:37 +0100)]
fix a few typos
Lennart Poettering [Wed, 18 Mar 2009 20:24:41 +0000 (21:24 +0100)]
use top_builddir instead of builddir
Lennart Poettering [Wed, 18 Mar 2009 20:10:03 +0000 (21:10 +0100)]
dump access mode
Matthew Garrett [Mon, 16 Mar 2009 19:00:37 +0000 (19:00 +0000)]
12-byte SAT support for libatasmart
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>
Lennart Poettering [Mon, 28 Jul 2008 18:33:38 +0000 (20:33 +0200)]
explicitly require am 1.9
Lennart Poettering [Fri, 25 Jul 2008 20:18:03 +0000 (22:18 +0200)]
move utilities to sbin
Lennart Poettering [Fri, 25 Jul 2008 20:17:43 +0000 (22:17 +0200)]
remove atasmart.strpool.c during build
Lennart Poettering [Fri, 25 Jul 2008 20:05:01 +0000 (22:05 +0200)]
set version info from configure script
Lennart Poettering [Fri, 25 Jul 2008 20:03:29 +0000 (22:03 +0200)]
fix c compiler checks
Lennart Poettering [Fri, 25 Jul 2008 19:57:12 +0000 (21:57 +0200)]
remove sptest
Lennart Poettering [Fri, 25 Jul 2008 19:56:29 +0000 (21:56 +0200)]
ignore atasmart.strpool.c
Lennart Poettering [Fri, 25 Jul 2008 19:55:16 +0000 (21:55 +0200)]
fix space dropping algorithm
Lennart Poettering [Fri, 25 Jul 2008 19:33:38 +0000 (21:33 +0200)]
add missing strpool lookup
Lennart Poettering [Fri, 25 Jul 2008 19:22:49 +0000 (21:22 +0200)]
ignore strpool
Lennart Poettering [Fri, 25 Jul 2008 19:22:18 +0000 (21:22 +0200)]
add more complete quirk framework
Lennart Poettering [Fri, 25 Jul 2008 19:21:46 +0000 (21:21 +0200)]
offset all strpool entries by one to avoid clashes with NULL
Lennart Poettering [Sat, 19 Jul 2008 20:10:03 +0000 (22:10 +0200)]
fix indenting an latency
Lennart Poettering [Sat, 19 Jul 2008 19:53:30 +0000 (21:53 +0200)]
strinpoolize even more tables
Lennart Poettering [Sat, 19 Jul 2008 19:53:06 +0000 (21:53 +0200)]
initialize sense data to make valgrind shut up
Lennart Poettering [Sat, 19 Jul 2008 19:22:12 +0000 (21:22 +0200)]
actually use strpool for the atasmart sources
Lennart Poettering [Sat, 19 Jul 2008 19:21:37 +0000 (21:21 +0200)]
fix write file logic
Lennart Poettering [Sat, 19 Jul 2008 19:21:15 +0000 (21:21 +0200)]
redirect gcc output to the proper original lines
Lennart Poettering [Sat, 19 Jul 2008 19:20:53 +0000 (21:20 +0200)]
remove casting warning
Lennart Poettering [Sat, 19 Jul 2008 19:20:07 +0000 (21:20 +0200)]
make strpool error output a bit more useful
Lennart Poettering [Sat, 19 Jul 2008 19:19:16 +0000 (21:19 +0200)]
fix order strpool decorators
Lennart Poettering [Thu, 3 Jul 2008 20:46:19 +0000 (22:46 +0200)]
add a simple string pool generator
Lennart Poettering [Thu, 3 Jul 2008 20:44:04 +0000 (22:44 +0200)]
make a few attribute names actually unique
Lennart Poettering [Wed, 2 Jul 2008 15:45:20 +0000 (17:45 +0200)]
include raw attribute data
Lennart Poettering [Wed, 2 Jul 2008 15:40:33 +0000 (17:40 +0200)]
highlight lines only when good_valid is set
Lennart Poettering [Wed, 2 Jul 2008 15:22:03 +0000 (17:22 +0200)]
check for threshold/value validity