]> git.ipfire.org Git - thirdparty/libatasmart.git/log
thirdparty/libatasmart.git
17 years agoif the ID_ATA_SMART_ACCESS udev env var is set for a device read the access method...
Lennart Poettering [Thu, 7 May 2009 00:07:35 +0000 (02:07 +0200)] 
if the ID_ATA_SMART_ACCESS udev env var is set for a device read the access method from it

17 years agoshow full device string when dumping status
Lennart Poettering [Thu, 7 May 2009 00:06:30 +0000 (02:06 +0200)] 
show full device string when dumping status

17 years agoallow prefixing device strings with access methods
Lennart Poettering [Wed, 6 May 2009 22:50:51 +0000 (00:50 +0200)] 
allow prefixing device strings with access methods

17 years agorename SK_DISK_TYPE_ATA to SK_DISK_TYPE_LINUX_IDE
Lennart Poettering [Wed, 6 May 2009 22:50:23 +0000 (00:50 +0200)] 
rename SK_DISK_TYPE_ATA to SK_DISK_TYPE_LINUX_IDE

17 years agoblack list a few attributes on FUJITSU MHY2120BH/0085000B
Lennart Poettering [Wed, 6 May 2009 18:29:50 +0000 (20:29 +0200)] 
black list a few attributes on FUJITSU MHY2120BH/0085000B

17 years agoadd a weird furjitsu drive to our db
Lennart Poettering [Wed, 6 May 2009 18:21:40 +0000 (20:21 +0200)] 
add a weird furjitsu drive to our db

17 years agolook at lower 32 bit of current-pending-sector raw data only, similar to reallocated...
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

17 years agoadd another sunplus bridge to the list of supported sunplus bridges
Lennart Poettering [Fri, 24 Apr 2009 18:58:56 +0000 (20:58 +0200)] 
add another sunplus bridge to the list of supported sunplus bridges

17 years agoadd missing 'else'
Lennart Poettering [Fri, 24 Apr 2009 17:31:28 +0000 (19:31 +0200)] 
add missing 'else'

17 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.

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

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

17 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

17 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.

17 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.

17 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.

17 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

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

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

17 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

17 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

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

17 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

17 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

17 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

17 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

17 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

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

17 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()

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

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

17 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

17 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

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

17 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

17 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

17 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

17 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

17 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

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

17 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

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

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

17 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

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

17 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

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

17 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

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

17 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

17 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

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

17 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

17 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

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

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

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

17 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

17 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

17 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

17 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

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

17 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

17 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

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

17 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

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

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

17 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

17 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

17 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()

17 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

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

17 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

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

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

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

17 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

17 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

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

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

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

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

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

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

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

17 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

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

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

17 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

17 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

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

17 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

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

17 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

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

17 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

17 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

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