From 4bdc8e7bf6eda85ee81b024ac60b85fcf9e9090b Mon Sep 17 00:00:00 2001
From: geoffk1 <geoffk1@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Mon, 6 Jul 2009 02:46:47 +0000
Subject: [PATCH] Add names for some attributes used in Samsung MLC drives:
 178-180 & 183

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2822 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/CHANGELOG   |  5 ++++-
 sm5/NEWS        |  3 ++-
 sm5/atacmds.cpp | 14 +++++++++++++-
 3 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/sm5/CHANGELOG b/sm5/CHANGELOG
index b76f0e6e4..2c4b15f2b 100644
--- a/sm5/CHANGELOG
+++ b/sm5/CHANGELOG
@@ -1,6 +1,6 @@
 CHANGELOG for smartmontools
 
-$Id: CHANGELOG,v 1.817 2009/07/05 17:52:46 chrfranke Exp $
+$Id: CHANGELOG,v 1.818 2009/07/06 02:46:47 geoffk1 Exp $
 
 The most recent version of this file is:
 http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/CHANGELOG?view=markup
@@ -41,6 +41,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
 
 <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
 
+  [GK] Add names for some attributes used in Samsung MLC drives:
+       178-180 & 183
+
   [CF] smartctl: Add option '-x, --xall' to print all info including
        extended SMART logs and non-SMART info.
 
diff --git a/sm5/NEWS b/sm5/NEWS
index b956edf87..70be1fa28 100644
--- a/sm5/NEWS
+++ b/sm5/NEWS
@@ -1,6 +1,6 @@
 smartmontools NEWS
 ------------------
-CVS ID: $Id: NEWS,v 1.37 2009/06/18 20:17:53 chrfranke Exp $
+CVS ID: $Id: NEWS,v 1.38 2009/07/06 02:46:47 geoffk1 Exp $
 
 The most up-to-date version of this file is:
 http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/NEWS?view=markup
@@ -47,6 +47,7 @@ Summary: smartmontools release 5.39 (UNSTABLE/EXPERIMENTAL)
 - Use getaddrinfo() instead of gethostbyname() to support IPv6
 - C++ Support for QNX Target, already tested for QNX 6.3.2 on x86 and
   armle target
+- Additional support for Samsung MLC flash drives
 
 
 Date 2008-03-10
diff --git a/sm5/atacmds.cpp b/sm5/atacmds.cpp
index 56f163f05..500ab8e0c 100644
--- a/sm5/atacmds.cpp
+++ b/sm5/atacmds.cpp
@@ -40,7 +40,7 @@
 
 #include <algorithm> // std::sort
 
-const char *atacmds_c_cvsid="$Id: atacmds.cpp,v 1.217 2009/04/16 21:24:08 chrfranke Exp $"
+const char *atacmds_c_cvsid="$Id: atacmds.cpp,v 1.218 2009/07/06 02:46:47 geoffk1 Exp $"
 ATACMDS_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID SCSIATA_H_CVSID UTILITY_H_CVSID;
 
 // for passing global control variables
@@ -1977,6 +1977,18 @@ void ataPrintSmartAttribName(char * out, unsigned char id, const unsigned char *
   case 13:
     name="Read_Soft_Error_Rate";
     break;
+  case 178:
+    name="Used_Rsvd_Blk_Cnt_Chip";
+    break;
+  case 179:
+    name="Used_Rsvd_Blk_Cnt_Tot";
+    break;
+  case 180:
+    name="Unused_Rsvd_Blk_Cnt_Tot";
+    break;
+  case 183:
+    name="Runtime_Bad_Block";
+    break;
   case 187:
     name="Reported_Uncorrect";
     break;
-- 
GitLab