platform/upstream/libatasmart.git
13 years agoHandle Total LBAs Written and Total LBSa Read
Wojciech Piekutowski [Mon, 11 Apr 2011 22:21:39 +0000 (00:21 +0200)]
Handle Total LBAs Written and Total LBSa Read

13 years agoHandle Media Wearout Indicator
Wojciech Piekutowski [Mon, 11 Apr 2011 22:08:02 +0000 (00:08 +0200)]
Handle Media Wearout Indicator

13 years agoHandle Available Reserved Space
Wojciech Piekutowski [Mon, 11 Apr 2011 21:54:17 +0000 (23:54 +0200)]
Handle Available Reserved Space

13 years agoAdd INTEL SSD 320 120GB blob
Wojciech Piekutowski [Mon, 11 Apr 2011 21:28:55 +0000 (23:28 +0200)]
Add INTEL SSD 320 120GB blob

13 years agoDisplay endurance-remaining as percentage decreasing from 100 to 0
Wojciech Piekutowski [Mon, 11 Apr 2011 21:16:56 +0000 (23:16 +0200)]
Display endurance-remaining as percentage decreasing from 100 to 0

13 years agostrpool: initialize i->suffix_of to NULL
Gianluigi Tiesi [Tue, 5 Apr 2011 17:45:27 +0000 (19:45 +0200)]
strpool: initialize i->suffix_of to NULL

https://bugs.freedesktop.org/show_bug.cgi?id=28772

13 years agobuld-sys: simplify configure script; drop unused checks.
Diego Elio Pettenò [Tue, 8 Feb 2011 15:51:06 +0000 (16:51 +0100)]
buld-sys: simplify configure script; drop unused checks.

With this change, configure is updated to a more modern syntax, a number of
tests possibly introduced by autoscan are dropped (as the code never makes
use of those), and comments are changed with dnl's so that they are not
copied in the final output.

13 years agobuild-sys: use the same flags checking as PulseAudio.
Diego Elio Pettenò [Tue, 8 Feb 2011 15:47:16 +0000 (16:47 +0100)]
build-sys: use the same flags checking as PulseAudio.

This introduces the same attributes.m4 file used there and replaces the
custom checking code.

13 years agobuild-sys: make libatasmart easily cross-compilable
Diego Elio Pettenò [Tue, 8 Feb 2011 15:41:18 +0000 (16:41 +0100)]
build-sys: make libatasmart easily cross-compilable

Pick up the AX_CC_FOR_BUILD macro from autoconf-archive (improved, going to
be sent there soon), then use that one to find the host's compiler.

Build the strpool in a different directory, since you cannot override CC
and other variables on a per-target basis yet. While this adds recursivity
to the build system is the best hope you have to properly solve the
cross-compilation.

Update .gitignore accordingly to the above changes, and make sure
bootstrap.sh search macro files in the m4 directory.

13 years agobuild-sys: allow libatasmart headers to be installed somewhere else
Christoph Thompson [Wed, 10 Nov 2010 11:06:35 +0000 (12:06 +0100)]
build-sys: allow libatasmart headers to be installed somewhere else

Please find attached a small patch which allows installing the headers of
libatasmart in a subfolder (or anywhere else for that matter) for keeping
things tidy in there. This might be also useful if libatasmart gets ported
to a non-UNIX platform one of these days.

Have a nice day.

14 years agolibatasmart patch
Guy Taylor [Sun, 14 Feb 2010 21:54:25 +0000 (21:54 +0000)]
libatasmart patch

hi

I have made a patch for libatasmart to add support for attribute 184
and 188. just adds the name to them.
Anyway I thought you might want to take a look at it.

Iv attached the patch against the git master and here is the link to
the Ubuntu's bug/patch
https://bugs.launchpad.net/libatasmart/+bug/521864

Thanks
Guy Taylor

14 years agoblacklist another bridge
Lennart Poettering [Fri, 18 Dec 2009 11:45:17 +0000 (12:45 +0100)]
blacklist another bridge

http://bugs.freedesktop.org/show_bug.cgi?id=24951

14 years agofix return of uninitialized variable
David Zeuthen [Wed, 9 Dec 2009 22:14:36 +0000 (17:14 -0500)]
fix return of uninitialized variable

atasmart.c: In function ‘init_smart’:
 atasmart.c:2556: warning: ‘ret’ may be used uninitialized in this function

We apparently don't initialize the ret variable in init_smart() -
unfortunately

 o  this warning is never reported with using -O0 (thanks gcc -
    see http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings though)

 o  we never run into this bug with just skdump(1)

The bug does show up in the udisks (aka DeviceKit-disks) use of
libatasmart and this patch fixes it.

http://bugs.freedesktop.org/show_bug.cgi?id=25543

14 years agomake init_smart() static
Lennart Poettering [Tue, 27 Oct 2009 21:57:26 +0000 (22:57 +0100)]
make init_smart() static

14 years agoDrop LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE check that is not part of modern...
Michael Biebl [Tue, 27 Oct 2009 21:55:08 +0000 (22:55 +0100)]
Drop LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE check that is not part of modern libudev anymore

14 years agoRestrict the list of exported symbols to sk_.*
Michael Biebl [Tue, 27 Oct 2009 21:53:50 +0000 (22:53 +0100)]
Restrict the list of exported symbols to sk_.*

Use libtools' -export-symbols-regex to restrict the list of exported
symbols so we not accidentally export symbols like init_smart

14 years agomore Apple SSD firmware versions are evil then originally thought
Lennart Poettering [Tue, 27 Oct 2009 20:58:35 +0000 (21:58 +0100)]
more Apple SSD firmware versions are evil then originally thought

14 years agofix name of a blob in Makefile.am
Lennart Poettering [Tue, 27 Oct 2009 02:28:06 +0000 (03:28 +0100)]
fix name of a blob in Makefile.am

14 years agobump version and release
Lennart Poettering [Tue, 27 Oct 2009 02:14:05 +0000 (03:14 +0100)]
bump version and release

14 years agoadd blob for laptop drive with failing Old-Age attribute
David Zeuthen [Sat, 24 Oct 2009 23:16:35 +0000 (19:16 -0400)]
add blob for laptop drive with failing Old-Age attribute

4 start-stop-count              1     1    20   252391      0xe7d903000000 old-age online  no   no

14 years agoadd missing blob to tarball
Lennart Poettering [Fri, 23 Oct 2009 22:44:14 +0000 (00:44 +0200)]
add missing blob to tarball

14 years agoadd another SSD blob
Lennart Poettering [Fri, 23 Oct 2009 22:43:48 +0000 (00:43 +0200)]
add another SSD blob

14 years agoIgnore attributes 5 and 190 on some Apple SSD
Lennart Poettering [Fri, 23 Oct 2009 22:38:42 +0000 (00:38 +0200)]
Ignore attributes 5 and 190 on some Apple SSD

http://bugs.freedesktop.org/show_bug.cgi?id=24700

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