From 8e0f06e2b3e54653c7eb64e10d0b8233ec04caa7 Mon Sep 17 00:00:00 2001
From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Wed, 4 Dec 2002 14:17:51 +0000
Subject: [PATCH]   [BA] smartd/smartctl added attribute 230 Head Amplitude
 from   IBM DPTA-353750.

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

diff --git a/sm5/CHANGELOG b/sm5/CHANGELOG
index 7e5e5d812..bbfd2b328 100644
--- a/sm5/CHANGELOG
+++ b/sm5/CHANGELOG
@@ -1,6 +1,6 @@
 CHANGELOG for smartmontools
 
-$Id: CHANGELOG,v 1.65 2002/12/01 23:24:00 pjwilliams Exp $
+$Id: CHANGELOG,v 1.66 2002/12/04 14:17:51 ballen4705 Exp $
 
 Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
 
@@ -32,6 +32,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
 
 CURRENT RELEASE (see VERSION file in this directory):
 
+  [BA] smartd/smartctl added attribute 230 Head Amplitude from
+  IBM DPTA-353750.
+
   [PW] Added list of proposed new options for smartctl to README.
 
   [PW] smartd: ParseOpts() now uses getopt_long() if HAVE_GETOPT_LONG is
diff --git a/sm5/atacmds.c b/sm5/atacmds.c
index d6fd84443..10e17b848 100644
--- a/sm5/atacmds.c
+++ b/sm5/atacmds.c
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include "atacmds.h"
 
-const char *CVSid1="$Id: atacmds.c,v 1.43 2002/11/26 12:37:12 ballen4705 Exp $" CVSID1;
+const char *CVSid1="$Id: atacmds.c,v 1.44 2002/12/04 14:17:51 ballen4705 Exp $" CVSID1;
 
 // These Drive Identity tables are taken from hdparm 5.2, and are also
 // given in the ATA/ATAPI specs for the IDENTIFY DEVICE command.  Note
@@ -832,6 +832,10 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
   case 228:
     name="Power-off_Retract_Count";
     break;
+  case 230:
+    // seen in IBM DTPA-353750
+    name="Head Amplitude";
+    break;
   case 231:
     name="Temperature_Celsius";
     break;
diff --git a/sm5/atacmds.cpp b/sm5/atacmds.cpp
index dea0f9edd..7a3473f98 100644
--- a/sm5/atacmds.cpp
+++ b/sm5/atacmds.cpp
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include "atacmds.h"
 
-const char *CVSid1="$Id: atacmds.cpp,v 1.43 2002/11/26 12:37:12 ballen4705 Exp $" CVSID1;
+const char *CVSid1="$Id: atacmds.cpp,v 1.44 2002/12/04 14:17:51 ballen4705 Exp $" CVSID1;
 
 // These Drive Identity tables are taken from hdparm 5.2, and are also
 // given in the ATA/ATAPI specs for the IDENTIFY DEVICE command.  Note
@@ -832,6 +832,10 @@ void ataPrintSmartAttribName(char *out, unsigned char id){
   case 228:
     name="Power-off_Retract_Count";
     break;
+  case 230:
+    // seen in IBM DTPA-353750
+    name="Head Amplitude";
+    break;
   case 231:
     name="Temperature_Celsius";
     break;
-- 
GitLab