platform/upstream/libatasmart.git
14 years agoadd link to bz
Lennart Poettering [Fri, 23 Oct 2009 22:26:29 +0000 (00:26 +0200)]
add link to bz

14 years agocheck the right boolean when calculating blob size
Lennart Poettering [Fri, 23 Oct 2009 21:40:53 +0000 (23:40 +0200)]
check the right boolean when calculating blob size

14 years agodelay smart initialization until the first SMART call is done
Lennart Poettering [Fri, 23 Oct 2009 21:38:17 +0000 (23:38 +0200)]
delay smart initialization until the first SMART call is done

14 years agoadd another blob
Lennart Poettering [Sun, 18 Oct 2009 23:39:25 +0000 (01:39 +0200)]
add another blob

14 years agoblobs: add an interesting SAMSUNG SSD blob
Lennart Poettering [Tue, 29 Sep 2009 21:15:54 +0000 (23:15 +0200)]
blobs: add an interesting SAMSUNG SSD blob

Contributed by Tobias Wolf.

14 years agobuild-sys: bump release version and soname
Lennart Poettering [Tue, 29 Sep 2009 03:39:32 +0000 (05:39 +0200)]
build-sys: bump release version and soname

14 years agoblacklist: disable jmicron access mode for some more jmicron bridges
Lennart Poettering [Tue, 29 Sep 2009 03:36:11 +0000 (05:36 +0200)]
blacklist: disable jmicron access mode for some more jmicron bridges

This is a followup on:

https://bugzilla.redhat.com/show_bug.cgi?id=515881

14 years agobump release
Lennart Poettering [Fri, 18 Sep 2009 03:16:30 +0000 (05:16 +0200)]
bump release

14 years agovala: install .vapi file
Lennart Poettering [Fri, 18 Sep 2009 03:14:58 +0000 (05:14 +0200)]
vala: install .vapi file

14 years agovala: update vala API to newest C API
Lennart Poettering [Fri, 18 Sep 2009 03:10:38 +0000 (05:10 +0200)]
vala: update vala API to newest C API

14 years agoblacklist 152d:2329 jmicron usb bridges
Lennart Poettering [Thu, 17 Sep 2009 20:54:16 +0000 (22:54 +0200)]
blacklist 152d:2329 jmicron usb bridges

14 years agoinclude more blobs in tarball
Lennart Poettering [Wed, 19 Aug 2009 22:55:04 +0000 (00:55 +0200)]
include more blobs in tarball

14 years agoadd an interesting SSD blob
Lennart Poettering [Wed, 19 Aug 2009 22:52:12 +0000 (00:52 +0200)]
add an interesting SSD blob

14 years agoactivate automake silent rules
Lennart Poettering [Wed, 19 Aug 2009 22:51:49 +0000 (00:51 +0200)]
activate automake silent rules

14 years agosupport some ssd smart attrs
Lennart Poettering [Wed, 19 Aug 2009 22:51:13 +0000 (00:51 +0200)]
support some ssd smart attrs

14 years agobump req'd versions
Lennart Poettering [Thu, 6 Aug 2009 19:28:49 +0000 (21:28 +0200)]
bump req'd versions

14 years agoupdate configure.ac a bit
Lennart Poettering [Thu, 6 Aug 2009 19:26:24 +0000 (21:26 +0200)]
update configure.ac a bit

14 years agohighlight if smart status is bad
Lennart Poettering [Thu, 6 Aug 2009 19:23:04 +0000 (21:23 +0200)]
highlight if smart status is bad

14 years agofix parsing of power-on-minutes
Lennart Poettering [Thu, 6 Aug 2009 19:04:31 +0000 (21:04 +0200)]
fix parsing of power-on-minutes

14 years agoreplace space by underscore
Lennart Poettering [Thu, 6 Aug 2009 18:56:41 +0000 (20:56 +0200)]
replace space by underscore

14 years agoreplace space by underscore
Lennart Poettering [Thu, 6 Aug 2009 18:53:16 +0000 (20:53 +0200)]
replace space by underscore

14 years agoanother entry for our db
Lennart Poettering [Thu, 6 Aug 2009 18:43:10 +0000 (20:43 +0200)]
another entry for our db

14 years agoadd another entry to our little database
Lennart Poettering [Thu, 6 Aug 2009 18:40:55 +0000 (20:40 +0200)]
add another entry to our little database

14 years agoadd another entry to our little database
Lennart Poettering [Thu, 6 Aug 2009 18:40:46 +0000 (20:40 +0200)]
add another entry to our little database

14 years agobump soname due to ABI change
Lennart Poettering [Thu, 6 Aug 2009 18:39:56 +0000 (20:39 +0200)]
bump soname due to ABI change

14 years agorework lgoic that determines verdict of drive
Lennart Poettering [Thu, 6 Aug 2009 18:35:21 +0000 (20:35 +0200)]
rework lgoic that determines verdict of drive

Distuingish attributes that are failing now vs. failed in the past.

Add 'warn' field that is used to signal UIs to highlight certain
attributes.

Beef up the "overall status" logic a bit.

This breaks ABI. Depending on your client this might break API too.

14 years agorename failed to bad
Lennart Poettering [Thu, 6 Aug 2009 18:34:35 +0000 (20:34 +0200)]
rename failed to bad

14 years agoadd MHY2250B/0085000B to quirk db
Lennart Poettering [Wed, 5 Aug 2009 23:51:18 +0000 (01:51 +0200)]
add MHY2250B/0085000B to quirk db

https://bugzilla.redhat.com/show_bug.cgi?id=499265

14 years agoverify parsing of all attributes
Lennart Poettering [Wed, 5 Aug 2009 23:16:53 +0000 (01:16 +0200)]
verify parsing of all attributes

14 years agouse AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE
Lennart Poettering [Wed, 5 Aug 2009 21:43:04 +0000 (23:43 +0200)]
use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE

14 years agofix url in configure.ac
Lennart Poettering [Wed, 5 Aug 2009 21:42:44 +0000 (23:42 +0200)]
fix url in configure.ac

14 years agoblacklist attribute 5 of an hitachi drive
Lennart Poettering [Wed, 5 Aug 2009 21:41:54 +0000 (23:41 +0200)]
blacklist attribute 5 of an hitachi drive

https://bugzilla.redhat.com/show_bug.cgi?id=506254

15 years agobuild-system: add missing blob to tarball
Lennart Poettering [Sun, 10 May 2009 16:07:45 +0000 (18:07 +0200)]
build-system: add missing blob to tarball

15 years agoAdd ACLOCAL_AMFLAGS = -I m4
Michael Biebl [Wed, 29 Apr 2009 22:10:12 +0000 (00:10 +0200)]
Add ACLOCAL_AMFLAGS = -I m4

As we already use AC_CONFIG_MACRO_DIR(m4), make sure to actually include
the m4 macros in the dist tarball.

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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