Ronan Le Martret [Tue, 18 Feb 2014 08:07:26 +0000 (09:07 +0100)]
Use rpm macro For x86_64 compatibility.
Fix :Do not provide pkgconfig(libatasmart) for arch x86_64.
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Change-Id: Ia18f881664ebb2182a0162faea2153d92db41517
Jacek Pielaszkiewicz [Fri, 4 Oct 2013 08:07:18 +0000 (10:07 +0200)]
Package split on binary and development packages
Change-Id: I15ad4d94bc15a6ff78c4b1b7ab995a508688d666
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Jacek Pielaszkiewicz [Fri, 4 Oct 2013 06:30:44 +0000 (08:30 +0200)]
Initial packaging directory.
Change-Id: Ic59667080ca4deccbfdb8584d213448e6c2392ba
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Lennart Poettering [Sun, 20 May 2012 22:04:26 +0000 (00:04 +0200)]
build-sys: bump version info
Tobias Wolf [Sun, 21 Feb 2010 11:58:42 +0000 (12:58 +0100)]
attributes: Add S.M.A.R.T attributes for Samsung SSD
Taken from:
http://www.samsung.com/global/business/semiconductor/products/SSD/downloads/ds_SS805_NSSD_100_SLC_SATA_II_rev11.pdf
Description:
Attribute Name
175 Program Fail Count (Chip)
176 Erase Fail Count (Chip)
177 Wear Leveling Count
178 Used Reserved Block Count (Chip)
179 Used Reserved Block Count (Total)
180 Unused Reserved Block Count (Total)
181 Program Fail Count (Total)
182 Erase Fail Count (Total)
183 Runtime bad block (Total)
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/885869
Oleksij Rempel (Alexey Fisher) [Thu, 5 Jan 2012 08:50:17 +0000 (09:50 +0100)]
quirks: add quirks for Intel SSD Serie 320
According to Intel documantation, complete SSD Serie 320 use same
SMART parameters. I tested it with one more drive: INETL_SSDSA2CT040G3.
Also i collected serial numbers for Intel SSD Serie 320 deevices:
serie 320:
40GB:
SSDSA2CT040G3K5
SSDSA2CT040G301
SSDSA2CT040G3B5
SSDSA2CT040G310
SSDSA2BT040G3
80GB:
SSDSA2CW080G3K5
SSDSA2CW080G301
SSDSA2CW080G3B5
SSDSA2CW080G310
SSDSA2BW080G3
120GB:
SSDSA2CW120G3B5
SSDSA2CW120G3K5
SSDSA2CW120G301
SSDSA2CW120G310
160GB:
SSDSA2CW160G3K5
SSDSA2CW160G3B5
SSDSA2BW160G3
300GB:
SSDSA2CW300G3K5
SSDSA2CW300G3B5
SSDSA2BW300G3
600GB:
SSDSA2CW600G3K5
SSDSA2CW600G301
SSDSA2CW600G3B5
SSDSA2CW600G310
this patch set RegExp for all this devices.
Lennart Poettering [Sun, 20 May 2012 21:58:07 +0000 (23:58 +0200)]
build-sys: modernize build system
Lennart Poettering [Tue, 11 Oct 2011 22:27:15 +0000 (00:27 +0200)]
build-sys: fix distcheck
Lennart Poettering [Tue, 11 Oct 2011 22:21:23 +0000 (00:21 +0200)]
build-sys: prepare release 18
Lennart Poettering [Tue, 11 Oct 2011 22:10:43 +0000 (00:10 +0200)]
build-sys: rename bootstrap.sh to autogen.sh
Lennart Poettering [Tue, 11 Oct 2011 22:10:21 +0000 (00:10 +0200)]
build-sys: updates to bootstrap.sh
Lennart Poettering [Tue, 11 Oct 2011 21:53:59 +0000 (23:53 +0200)]
atasmart: multiply by sector threshold by 1024 to avoid false positives
https://bugs.freedesktop.org/show_bug.cgi?id=25772
Martin Pitt [Tue, 2 Mar 2010 08:58:59 +0000 (09:58 +0100)]
Speed up get_overall() and get_bad()
Instead of iterating through all attributes four times for an
sk_disk_smart_get_overall() call, just do it once and store the results in
SkDisk. This considerably speeds up libatasmart for common operations like
smart_get_overall() and smart_get_bad().
https://bugs.freedesktop.org/show_bug.cgi?id=26834
Lennart Poettering [Tue, 11 Oct 2011 21:29:10 +0000 (23:29 +0200)]
atasmart: sector field can never be larger then 48 bits, so no point in comparing with (uint64_t) -1
Lennart Poettering [Tue, 11 Oct 2011 21:25:58 +0000 (23:25 +0200)]
atasmart: ignore sector count if it is -1
https://bugs.freedesktop.org/show_bug.cgi?id=25021
Wojciech Piekutowski [Tue, 12 Apr 2011 22:02:50 +0000 (00:02 +0200)]
Add quirk names
Wojciech Piekutowski [Tue, 12 Apr 2011 21:55:29 +0000 (23:55 +0200)]
Treat 'Media Wearout Indicator' as a percentage
Wojciech Piekutowski [Tue, 12 Apr 2011 21:54:14 +0000 (23:54 +0200)]
Disable short time verification for Spin Up Time
Wojciech Piekutowski [Tue, 12 Apr 2011 21:29:56 +0000 (23:29 +0200)]
Comment on difference between SMALL_PERCENT and PERCENT attribute units
Wojciech Piekutowski [Tue, 12 Apr 2011 21:19:51 +0000 (23:19 +0200)]
Support Timed Workload Media Wear, Timed Workload Host Reads, Workload Timer
Wojciech Piekutowski [Tue, 12 Apr 2011 20:54:04 +0000 (22:54 +0200)]
Support Program Fail Count and Erase Fail Count attributes
Wojciech Piekutowski [Tue, 12 Apr 2011 20:49:42 +0000 (22:49 +0200)]
Show MB, GB or TB depending on the value
Wojciech Piekutowski [Tue, 12 Apr 2011 20:15:24 +0000 (22:15 +0200)]
Start/Stop Count always shows 0 for Intel SSD G3
Wojciech Piekutowski [Mon, 11 Apr 2011 22:39:21 +0000 (00:39 +0200)]
Handle duplicated Available Reserved Space
Wojciech Piekutowski [Mon, 11 Apr 2011 22:36:45 +0000 (00:36 +0200)]
Handle duplicated Total LBAs Written
Wojciech Piekutowski [Mon, 11 Apr 2011 22:21:39 +0000 (00:21 +0200)]
Handle Total LBAs Written and Total LBSa Read
Wojciech Piekutowski [Mon, 11 Apr 2011 22:08:02 +0000 (00:08 +0200)]
Handle Media Wearout Indicator
Wojciech Piekutowski [Mon, 11 Apr 2011 21:54:17 +0000 (23:54 +0200)]
Handle Available Reserved Space
Wojciech Piekutowski [Mon, 11 Apr 2011 21:28:55 +0000 (23:28 +0200)]
Add INTEL SSD 320 120GB blob
Wojciech Piekutowski [Mon, 11 Apr 2011 21:16:56 +0000 (23:16 +0200)]
Display endurance-remaining as percentage decreasing from 100 to 0
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
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.
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.
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.
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.
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
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
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
Lennart Poettering [Tue, 27 Oct 2009 21:57:26 +0000 (22:57 +0100)]
make init_smart() static
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
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
Lennart Poettering [Tue, 27 Oct 2009 20:58:35 +0000 (21:58 +0100)]
more Apple SSD firmware versions are evil then originally thought
Lennart Poettering [Tue, 27 Oct 2009 02:28:06 +0000 (03:28 +0100)]
fix name of a blob in Makefile.am
Lennart Poettering [Tue, 27 Oct 2009 02:14:05 +0000 (03:14 +0100)]
bump version and release
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
Lennart Poettering [Fri, 23 Oct 2009 22:44:14 +0000 (00:44 +0200)]
add missing blob to tarball
Lennart Poettering [Fri, 23 Oct 2009 22:43:48 +0000 (00:43 +0200)]
add another SSD blob
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
Lennart Poettering [Fri, 23 Oct 2009 22:26:29 +0000 (00:26 +0200)]
add link to bz
Lennart Poettering [Fri, 23 Oct 2009 21:40:53 +0000 (23:40 +0200)]
check the right boolean when calculating blob size
Lennart Poettering [Fri, 23 Oct 2009 21:38:17 +0000 (23:38 +0200)]
delay smart initialization until the first SMART call is done
Lennart Poettering [Sun, 18 Oct 2009 23:39:25 +0000 (01:39 +0200)]
add another 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.
Lennart Poettering [Tue, 29 Sep 2009 03:39:32 +0000 (05:39 +0200)]
build-sys: bump release version and soname
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
Lennart Poettering [Fri, 18 Sep 2009 03:16:30 +0000 (05:16 +0200)]
bump release
Lennart Poettering [Fri, 18 Sep 2009 03:14:58 +0000 (05:14 +0200)]
vala: install .vapi file
Lennart Poettering [Fri, 18 Sep 2009 03:10:38 +0000 (05:10 +0200)]
vala: update vala API to newest C API
Lennart Poettering [Thu, 17 Sep 2009 20:54:16 +0000 (22:54 +0200)]
blacklist 152d:2329 jmicron usb bridges
Lennart Poettering [Wed, 19 Aug 2009 22:55:04 +0000 (00:55 +0200)]
include more blobs in tarball
Lennart Poettering [Wed, 19 Aug 2009 22:52:12 +0000 (00:52 +0200)]
add an interesting SSD blob
Lennart Poettering [Wed, 19 Aug 2009 22:51:49 +0000 (00:51 +0200)]
activate automake silent rules
Lennart Poettering [Wed, 19 Aug 2009 22:51:13 +0000 (00:51 +0200)]
support some ssd smart attrs
Lennart Poettering [Thu, 6 Aug 2009 19:28:49 +0000 (21:28 +0200)]
bump req'd versions
Lennart Poettering [Thu, 6 Aug 2009 19:26:24 +0000 (21:26 +0200)]
update configure.ac a bit
Lennart Poettering [Thu, 6 Aug 2009 19:23:04 +0000 (21:23 +0200)]
highlight if smart status is bad
Lennart Poettering [Thu, 6 Aug 2009 19:04:31 +0000 (21:04 +0200)]
fix parsing of power-on-minutes
Lennart Poettering [Thu, 6 Aug 2009 18:56:41 +0000 (20:56 +0200)]
replace space by underscore
Lennart Poettering [Thu, 6 Aug 2009 18:53:16 +0000 (20:53 +0200)]
replace space by underscore
Lennart Poettering [Thu, 6 Aug 2009 18:43:10 +0000 (20:43 +0200)]
another entry for our db
Lennart Poettering [Thu, 6 Aug 2009 18:40:55 +0000 (20:40 +0200)]
add 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
Lennart Poettering [Thu, 6 Aug 2009 18:39:56 +0000 (20:39 +0200)]
bump soname due to ABI change
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.
Lennart Poettering [Thu, 6 Aug 2009 18:34:35 +0000 (20:34 +0200)]
rename failed to bad
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
Lennart Poettering [Wed, 5 Aug 2009 23:16:53 +0000 (01:16 +0200)]
verify parsing of all attributes
Lennart Poettering [Wed, 5 Aug 2009 21:43:04 +0000 (23:43 +0200)]
use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE
Lennart Poettering [Wed, 5 Aug 2009 21:42:44 +0000 (23:42 +0200)]
fix url in configure.ac
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
Lennart Poettering [Sun, 10 May 2009 16:07:45 +0000 (18:07 +0200)]
build-system: add missing blob to tarball
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.
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
Lennart Poettering [Thu, 7 May 2009 00:06:30 +0000 (02:06 +0200)]
show full device string when dumping status
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