platform/upstream/libatasmart.git
15 years agoadd missing 'else'
Lennart Poettering [Fri, 24 Apr 2009 17:31:28 +0000 (19:31 +0200)]
add missing 'else'

15 years agoGet rid of qurik 9_UNKNOWN again
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.

15 years agobump version and soname
Lennart Poettering [Wed, 22 Apr 2009 22:43:02 +0000 (00:43 +0200)]
bump version and soname

15 years agoadd more smart blobs
Lennart Poettering [Wed, 22 Apr 2009 22:36:44 +0000 (00:36 +0200)]
add more smart blobs

15 years agodocument that we are not just interested in bad but also in weird drive's smart data
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

15 years agoSeagate's ST9160821AS drive encodes something strange in attribute 9
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.

15 years agodon't claim we would know what reallocated-event-count actually is
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.

15 years agouse only uppermost 32 bits for reallocated-sectors-count attribute pretty value
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.

15 years agoSupport for JMicron ATA/USB bridges
Lennart Poettering [Wed, 22 Apr 2009 21:48:29 +0000 (23:48 +0200)]
Support for JMicron ATA/USB bridges

15 years agoupdate comments a bit
Lennart Poettering [Wed, 15 Apr 2009 21:39:23 +0000 (23:39 +0200)]
update comments a bit

15 years agobump version and soname
Lennart Poettering [Wed, 15 Apr 2009 21:36:22 +0000 (23:36 +0200)]
bump version and soname

15 years agodon't look for reallocated-sector-count since some vendors seem to encode this differ...
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

15 years agoonly use 'prefail' attributes for overall status
Lennart Poettering [Wed, 15 Apr 2009 21:27:40 +0000 (23:27 +0200)]
only use 'prefail' attributes for overall status

15 years agobump version
Lennart Poettering [Tue, 14 Apr 2009 21:10:22 +0000 (23:10 +0200)]
bump version

15 years agoadd new --power-cycle/--can-smart/--status switches to skdump
Lennart Poettering [Tue, 14 Apr 2009 20:50:09 +0000 (22:50 +0200)]
add new --power-cycle/--can-smart/--status switches to skdump

15 years agowhen dumping status print message when SMART is not supported
Lennart Poettering [Tue, 14 Apr 2009 20:23:55 +0000 (22:23 +0200)]
when dumping status print message when SMART is not supported

15 years agowhen dealing with unknown block device type don't confuse with sunplus device
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

15 years agodon't depend on udev's ID_BUS variable when figuring out device type
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

15 years agoinitialize cmd data before passing it to the scsi ioctls
Lennart Poettering [Tue, 14 Apr 2009 20:10:49 +0000 (22:10 +0200)]
initialize cmd data before passing it to the scsi ioctls

15 years agobump version and soname
Lennart Poettering [Tue, 14 Apr 2009 03:14:30 +0000 (05:14 +0200)]
bump version and soname

15 years agoadd new API sk_disk_smart_get_power_cycle()
Lennart Poettering [Tue, 14 Apr 2009 03:13:13 +0000 (05:13 +0200)]
add new API sk_disk_smart_get_power_cycle()

15 years agoship example blobs in tarball
Lennart Poettering [Sun, 12 Apr 2009 21:45:27 +0000 (23:45 +0200)]
ship example blobs in tarball

15 years agobump version and soname
Lennart Poettering [Sun, 12 Apr 2009 21:33:30 +0000 (23:33 +0200)]
bump version and soname

15 years agodo a basic all-NUL check for the identify data before accepting it is valid
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

15 years agoupdate WDC WD2500JB and WDC WD5000AAKS for new blob format
David Zeuthen [Fri, 10 Apr 2009 04:06:32 +0000 (00:06 -0400)]
update WDC WD2500JB and WDC WD5000AAKS for new blob format

15 years agobump version and soname
Lennart Poettering [Fri, 10 Apr 2009 03:26:21 +0000 (05:26 +0200)]
bump version and soname

15 years agoupdate SAMSUNG HD501LJ--CR100-12 for new blob format
Lennart Poettering [Fri, 10 Apr 2009 03:24:11 +0000 (05:24 +0200)]
update SAMSUNG HD501LJ--CR100-12 for new blob format

15 years agoMerge branch 'master' of ssh://rootserver/home/lennart/git/public/libatasmart
Lennart Poettering [Fri, 10 Apr 2009 03:21:15 +0000 (05:21 +0200)]
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/libatasmart

15 years agoupdate Maxtor 96147H8--BAC51KJ0 for new blob format
Lennart Poettering [Fri, 10 Apr 2009 03:21:05 +0000 (05:21 +0200)]
update Maxtor 96147H8--BAC51KJ0 for new blob format

15 years agoupdate ST320410A--3.39 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

15 years agorevamp blob serialization and include smart status field
Lennart Poettering [Fri, 10 Apr 2009 03:16:11 +0000 (05:16 +0200)]
revamp blob serialization and include smart status field

15 years agohide more files
Lennart Poettering [Fri, 10 Apr 2009 03:15:51 +0000 (05:15 +0200)]
hide more files

15 years agodocument that when we extend the enums we don't consider that abi breakage
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

15 years agominor cleanup
Lennart Poettering [Thu, 9 Apr 2009 19:19:51 +0000 (21:19 +0200)]
minor cleanup

15 years agodeal with ATA/USB truncation
Lennart Poettering [Thu, 9 Apr 2009 01:35:03 +0000 (03:35 +0200)]
deal with ATA/USB truncation

15 years agoadd support for sunplus usb/ata bridges
Lennart Poettering [Thu, 9 Apr 2009 00:26:07 +0000 (02:26 +0200)]
add support for sunplus usb/ata bridges

15 years agobump soname and version
Lennart Poettering [Tue, 7 Apr 2009 19:41:33 +0000 (21:41 +0200)]
bump soname and version

15 years agouse O_NONBLOCK mode when opening device
Lennart Poettering [Tue, 7 Apr 2009 19:39:37 +0000 (21:39 +0200)]
use O_NONBLOCK mode when opening device

15 years agofix parsing of awake status
Lennart Poettering [Tue, 7 Apr 2009 19:38:40 +0000 (21:38 +0200)]
fix parsing of awake status

15 years agoadd blobs for two failing disks
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

15 years agobump version and soname
Lennart Poettering [Sun, 5 Apr 2009 16:55:14 +0000 (18:55 +0200)]
bump version and soname

15 years agomake sure we don't choke on attribute id 255
Lennart Poettering [Sun, 5 Apr 2009 16:51:50 +0000 (18:51 +0200)]
make sure we don't choke on attribute id 255

15 years agoadd another bad drive smart blob
Lennart Poettering [Sun, 5 Apr 2009 16:45:14 +0000 (18:45 +0200)]
add another bad drive smart blob

15 years agofix typo
Lennart Poettering [Sun, 5 Apr 2009 16:39:33 +0000 (18:39 +0200)]
fix typo

15 years agoadd another bad driver SMART blob
Lennart Poettering [Sun, 5 Apr 2009 16:39:08 +0000 (18:39 +0200)]
add another bad driver SMART blob

15 years agoinclude a few bad smart blobs for testing purposes
Lennart Poettering [Sun, 5 Apr 2009 16:35:36 +0000 (18:35 +0200)]
include a few bad smart blobs for testing purposes

15 years agoupdate --help text
Lennart Poettering [Sun, 5 Apr 2009 16:33:30 +0000 (18:33 +0200)]
update --help text

15 years agodefine type string for 'unknown'
Lennart Poettering [Sun, 5 Apr 2009 16:30:39 +0000 (18:30 +0200)]
define type string for 'unknown'

15 years agobump revision and soname
Lennart Poettering [Fri, 3 Apr 2009 17:42:44 +0000 (19:42 +0200)]
bump revision and soname

15 years agoremove | chars that are too much from regexp
Lennart Poettering [Fri, 3 Apr 2009 17:23:42 +0000 (19:23 +0200)]
remove | chars that are too much from regexp

15 years agofix parsing of power-on-minutes
Lennart Poettering [Fri, 3 Apr 2009 17:23:20 +0000 (19:23 +0200)]
fix parsing of power-on-minutes

15 years agoopen the disk device in O_RDONLY, let's see how compatible that is
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

15 years agomake sure the blob data is packed. it's certainly packed anyway, but let's better...
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

15 years agobump revision and soname
Lennart Poettering [Thu, 2 Apr 2009 21:45:34 +0000 (23:45 +0200)]
bump revision and soname

15 years agobeef up skdump to be able to load/save blobs
Lennart Poettering [Thu, 2 Apr 2009 21:44:56 +0000 (23:44 +0200)]
beef up skdump to be able to load/save blobs

15 years agoadd functions to save/load smart data blobs directly
Lennart Poettering [Thu, 2 Apr 2009 21:44:25 +0000 (23:44 +0200)]
add functions to save/load smart data blobs directly

15 years agobump revision for 0.3
Lennart Poettering [Tue, 24 Mar 2009 00:56:11 +0000 (01:56 +0100)]
bump revision for 0.3

15 years agocopy in new quirk table from smartmontools
Lennart Poettering [Tue, 24 Mar 2009 00:51:02 +0000 (01:51 +0100)]
copy in new quirk table from smartmontools

15 years agobump revision
Lennart Poettering [Thu, 19 Mar 2009 00:20:54 +0000 (01:20 +0100)]
bump revision

15 years agoupdate .gitignore
Lennart Poettering [Thu, 19 Mar 2009 00:19:42 +0000 (01:19 +0100)]
update .gitignore

15 years agohandle the good status of bad sector attributes especially
Lennart Poettering [Thu, 19 Mar 2009 00:19:21 +0000 (01:19 +0100)]
handle the good status of bad sector attributes especially

15 years agodrop -1 suffix from attribute names to make things more future-proof
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

15 years agoadd new API sk_disk_smart_get_overall()
Lennart Poettering [Thu, 19 Mar 2009 00:10:43 +0000 (01:10 +0100)]
add new API sk_disk_smart_get_overall()

15 years agoadd high-level sk_disk_smart_get_{power_on, temperature, bad}() calls
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

15 years agofix a few typos
Lennart Poettering [Wed, 18 Mar 2009 23:37:08 +0000 (00:37 +0100)]
fix a few typos

15 years agouse top_builddir instead of builddir
Lennart Poettering [Wed, 18 Mar 2009 20:24:41 +0000 (21:24 +0100)]
use top_builddir instead of builddir

15 years agodump access mode
Lennart Poettering [Wed, 18 Mar 2009 20:10:03 +0000 (21:10 +0100)]
dump access mode

15 years ago12-byte SAT support for libatasmart
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>
15 years agoexplicitly require am 1.9
Lennart Poettering [Mon, 28 Jul 2008 18:33:38 +0000 (20:33 +0200)]
explicitly require am 1.9

15 years agomove utilities to sbin
Lennart Poettering [Fri, 25 Jul 2008 20:18:03 +0000 (22:18 +0200)]
move utilities to sbin

15 years agoremove atasmart.strpool.c during build
Lennart Poettering [Fri, 25 Jul 2008 20:17:43 +0000 (22:17 +0200)]
remove atasmart.strpool.c during build

15 years agoset version info from configure script
Lennart Poettering [Fri, 25 Jul 2008 20:05:01 +0000 (22:05 +0200)]
set version info from configure script

15 years agofix c compiler checks
Lennart Poettering [Fri, 25 Jul 2008 20:03:29 +0000 (22:03 +0200)]
fix c compiler checks

15 years agoremove sptest
Lennart Poettering [Fri, 25 Jul 2008 19:57:12 +0000 (21:57 +0200)]
remove sptest

15 years agoignore atasmart.strpool.c
Lennart Poettering [Fri, 25 Jul 2008 19:56:29 +0000 (21:56 +0200)]
ignore atasmart.strpool.c

15 years agofix space dropping algorithm
Lennart Poettering [Fri, 25 Jul 2008 19:55:16 +0000 (21:55 +0200)]
fix space dropping algorithm

15 years agoadd missing strpool lookup
Lennart Poettering [Fri, 25 Jul 2008 19:33:38 +0000 (21:33 +0200)]
add missing strpool lookup

15 years agoignore strpool
Lennart Poettering [Fri, 25 Jul 2008 19:22:49 +0000 (21:22 +0200)]
ignore strpool

15 years agoadd more complete quirk framework
Lennart Poettering [Fri, 25 Jul 2008 19:22:18 +0000 (21:22 +0200)]
add more complete quirk framework

15 years agooffset all strpool entries by one to avoid clashes with NULL
Lennart Poettering [Fri, 25 Jul 2008 19:21:46 +0000 (21:21 +0200)]
offset all strpool entries by one to avoid clashes with NULL

15 years agofix indenting an latency
Lennart Poettering [Sat, 19 Jul 2008 20:10:03 +0000 (22:10 +0200)]
fix indenting an latency

15 years agostrinpoolize even more tables
Lennart Poettering [Sat, 19 Jul 2008 19:53:30 +0000 (21:53 +0200)]
strinpoolize even more tables

15 years agoinitialize sense data to make valgrind shut up
Lennart Poettering [Sat, 19 Jul 2008 19:53:06 +0000 (21:53 +0200)]
initialize sense data to make valgrind shut up

15 years agoactually use strpool for the atasmart sources
Lennart Poettering [Sat, 19 Jul 2008 19:22:12 +0000 (21:22 +0200)]
actually use strpool for the atasmart sources

15 years agofix write file logic
Lennart Poettering [Sat, 19 Jul 2008 19:21:37 +0000 (21:21 +0200)]
fix write file logic

15 years agoredirect gcc output to the proper original lines
Lennart Poettering [Sat, 19 Jul 2008 19:21:15 +0000 (21:21 +0200)]
redirect gcc output to the proper original lines

15 years agoremove casting warning
Lennart Poettering [Sat, 19 Jul 2008 19:20:53 +0000 (21:20 +0200)]
remove casting warning

15 years agomake strpool error output a bit more useful
Lennart Poettering [Sat, 19 Jul 2008 19:20:07 +0000 (21:20 +0200)]
make strpool error output a bit more useful

15 years agofix order strpool decorators
Lennart Poettering [Sat, 19 Jul 2008 19:19:16 +0000 (21:19 +0200)]
fix order strpool decorators

15 years agoadd a simple string pool generator
Lennart Poettering [Thu, 3 Jul 2008 20:46:19 +0000 (22:46 +0200)]
add a simple string pool generator

15 years agomake a few attribute names actually unique
Lennart Poettering [Thu, 3 Jul 2008 20:44:04 +0000 (22:44 +0200)]
make a few attribute names actually unique

15 years agoinclude raw attribute data
Lennart Poettering [Wed, 2 Jul 2008 15:45:20 +0000 (17:45 +0200)]
include raw attribute data

15 years agohighlight lines only when good_valid is set
Lennart Poettering [Wed, 2 Jul 2008 15:40:33 +0000 (17:40 +0200)]
highlight lines only when good_valid is set

15 years agocheck for threshold/value validity
Lennart Poettering [Wed, 2 Jul 2008 15:22:03 +0000 (17:22 +0200)]
check for threshold/value validity

15 years agofix definition of SkBool, so that assigning 1 to an SkBool:1 bitfield doesn't cause...
Lennart Poettering [Wed, 2 Jul 2008 15:21:26 +0000 (17:21 +0200)]
fix definition of SkBool, so that assigning 1 to an SkBool:1 bitfield doesn't cause a compiler warning

15 years agoadd C++ headers
Lennart Poettering [Wed, 2 Jul 2008 00:57:19 +0000 (02:57 +0200)]
add C++ headers

15 years agofix double inclusion macro name
Lennart Poettering [Tue, 1 Jul 2008 22:19:47 +0000 (00:19 +0200)]
fix double inclusion macro name

15 years agoinstall header file
Lennart Poettering [Tue, 1 Jul 2008 19:18:55 +0000 (21:18 +0200)]
install header file

15 years agoand yet another README fix
Lennart Poettering [Tue, 1 Jul 2008 19:05:33 +0000 (21:05 +0200)]
and yet another README fix

15 years agoyet another README fix
Lennart Poettering [Tue, 1 Jul 2008 19:05:06 +0000 (21:05 +0200)]
yet another README fix