From 33f02c29400c73f30d60ea99bb86dbc1c7065823 Mon Sep 17 00:00:00 2001 From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Thu, 24 Oct 2002 11:16:51 +0000 Subject: [PATCH] Added new temperature attribute. git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@110 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/VERSION | 2 +- sm5/atacmds.c | 5 ++++- sm5/atacmds.cpp | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sm5/VERSION b/sm5/VERSION index b4de39476..48082f72f 100644 --- a/sm5/VERSION +++ b/sm5/VERSION @@ -1 +1 @@ -11 +12 diff --git a/sm5/atacmds.c b/sm5/atacmds.c index a3a6f35a6..2155f09cc 100644 --- a/sm5/atacmds.c +++ b/sm5/atacmds.c @@ -29,7 +29,7 @@ #include <errno.h> #include "atacmds.h" -const char *CVSid1="$Id: atacmds.c,v 1.22 2002/10/24 09:54:02 ballen4705 Exp $" CVSID1; +const char *CVSid1="$Id: atacmds.c,v 1.23 2002/10/24 11:16: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 @@ -717,6 +717,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ name="UDMA_CRC_Error_Count"; break; case 220: + // Note -- this is also apparently used for temperature. name="Disk_Shift"; break; case 221: @@ -743,6 +744,8 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ case 228: name="Power-off_Retract_Count"; break; + case 231: + name="Temperature_Centigrade"; default: name="Unknown_Attribute"; break; diff --git a/sm5/atacmds.cpp b/sm5/atacmds.cpp index 655e3b5ac..bb116e56f 100644 --- a/sm5/atacmds.cpp +++ b/sm5/atacmds.cpp @@ -29,7 +29,7 @@ #include <errno.h> #include "atacmds.h" -const char *CVSid1="$Id: atacmds.cpp,v 1.22 2002/10/24 09:54:02 ballen4705 Exp $" CVSID1; +const char *CVSid1="$Id: atacmds.cpp,v 1.23 2002/10/24 11:16: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 @@ -717,6 +717,7 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ name="UDMA_CRC_Error_Count"; break; case 220: + // Note -- this is also apparently used for temperature. name="Disk_Shift"; break; case 221: @@ -743,6 +744,8 @@ void ataPrintSmartAttribName(char *out, unsigned char id){ case 228: name="Power-off_Retract_Count"; break; + case 231: + name="Temperature_Centigrade"; default: name="Unknown_Attribute"; break; -- GitLab