Package: libatasmart Version: 0.18-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu precise ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: Add some more SMART attribute names from Samsung to make output easier to understand. You can see the names in this spec sheet from Samsung, page 24: http://www.samsung.com/global/business/semiconductor/products/SSD/downloads/ds_SS805_NSSD_100_SLC_SATA_II_rev11.pdf Patch by Tobias Wolf. Originally reported in Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/885869 Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise') Architecture: i386 (i686) Kernel: Linux 3.2.0-030200rc2-generic (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru libatasmart-0.18/debian/patches/0003-Add-S.M.A.R.T-attributes-for-Samsung-SSD.patch libatasmart-0.18/debian/patches/0003-Add-S.M.A.R.T-attributes-for-Samsung-SSD.patch --- libatasmart-0.18/debian/patches/0003-Add-S.M.A.R.T-attributes-for-Samsung-SSD.patch 1969-12-31 19:00:00.000000000 -0500 +++ libatasmart-0.18/debian/patches/0003-Add-S.M.A.R.T-attributes-for-Samsung-SSD.patch 2011-12-01 13:44:04.000000000 -0500 @@ -0,0 +1,48 @@ +From 8dc5e62534244acea8cdfc3439bcba8fb67fd846 Mon Sep 17 00:00:00 2001 +From: Tobias Wolf <tow...@gmail.com> +Date: Sun, 21 Feb 2010 12:58:42 +0100 +Subject: [PATCH] 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 + +--- + atasmart.c | 9 +++++++++ + 1 files changed, 9 insertions(+), 0 deletions(-) + +diff --git a/atasmart.c b/atasmart.c +--- a/atasmart.c ++++ b/atasmart.c +@@ -1317,6 +1317,15 @@ + [170] = { "available-reserved-space", SK_SMART_ATTRIBUTE_UNIT_PERCENT, NULL }, + [171] = { "program-fail-count", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, + [172] = { "erase-fail-count", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [175] = { "program-fail-count-chip", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [176] = { "erase-fail-count-chip", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [177] = { "wear-leveling-count", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [178] = { "used-reserved-blocks-chip", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [179] = { "used-reserved-blocks-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [180] = { "unused-reserved-blocks", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [181] = { "program-fail-count-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [182] = { "erase-fail-count-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, ++ [183] = { "runtime-bad-blk-total", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, + [184] = { "end-to-end-error", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, + [187] = { "reported-uncorrect", SK_SMART_ATTRIBUTE_UNIT_SECTORS, verify_sectors }, + [188] = { "command-timeout", SK_SMART_ATTRIBUTE_UNIT_NONE, NULL }, +-- +1.7.0 + diff -Nru libatasmart-0.18/debian/patches/series libatasmart-0.18/debian/patches/series --- libatasmart-0.18/debian/patches/series 2011-10-11 19:06:33.000000000 -0400 +++ libatasmart-0.18/debian/patches/series 2011-12-01 13:42:49.000000000 -0500 @@ -1,2 +1,3 @@ # Debian patches for libatasmart 0002-Drop-our-own-many-bad-sectors-heuristic.patch +0003-Add-S.M.A.R.T-attributes-for-Samsung-SSD.patch