From 06116d568e994d1c16c772327cdf5a1ba5dee25d Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Wed, 13 Jun 2007 20:52:22 +0000
Subject: [PATCH] Drive database: added '-F samsung3' for Samsung P80 firmware
 BH100-35

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2409 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/CHANGELOG       |  5 ++++-
 sm5/knowndrives.cpp | 19 ++++++++++++++++---
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/sm5/CHANGELOG b/sm5/CHANGELOG
index 9b99af6f5..ee3b3940c 100644
--- a/sm5/CHANGELOG
+++ b/sm5/CHANGELOG
@@ -1,6 +1,6 @@
 CHANGELOG for smartmontools
 
-$Id: CHANGELOG,v 1.617 2007/06/05 20:41:10 shattered Exp $
+$Id: CHANGELOG,v 1.618 2007/06/13 20:52:22 chrfranke Exp $
 
 The most recent version of this file is:
 http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/CHANGELOG?view=markup
@@ -33,6 +33,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
 
 <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
 
+  [CF] Drive database: added '-F samsung3' for Samsung P80 firmware
+       BH100-35.
+
   [SS] Applied patch from Dean Bennett to fix scheduled tests on 
        Highpoint RAID controllers.
 
diff --git a/sm5/knowndrives.cpp b/sm5/knowndrives.cpp
index 6ca40775d..861d7ec18 100644
--- a/sm5/knowndrives.cpp
+++ b/sm5/knowndrives.cpp
@@ -26,7 +26,7 @@
 #include "knowndrives.h"
 #include "utility.h" // includes <regex.h>
 
-const char *knowndrives_c_cvsid="$Id: knowndrives.cpp,v 1.160 2007/04/05 18:23:29 shattered Exp $"
+const char *knowndrives_c_cvsid="$Id: knowndrives.cpp,v 1.161 2007/06/13 20:52:22 chrfranke Exp $"
 ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID KNOWNDRIVES_H_CVSID UTILITY_H_CVSID;
 
 #define MODEL_STRING_LENGTH                         40
@@ -387,9 +387,22 @@ const drivesettings knowndrives[] = {
     ".*",
     NULL, NULL, NULL, NULL
   },
-  { "SAMSUNG SpinPoint P80 series", // firmware *-26 or later, tested with SP1614C/SW100-34
+  { "SAMSUNG SpinPoint P80 series", // BH100-35 firmware, tested with SP0842N/BH100-35
     "^SAMSUNG SP(0451|08[0124]2|12[0145]3|16[0145]4)[CN]$",
-    ".*-(2[6789]|3[0-9])$",
+    "^BH100-35$",
+    NULL, NULL,
+    specialpurpose_fix_samsung3,
+    same_as_minus_F3
+  },
+  { "SAMSUNG SpinPoint P80 series", // firmware *-35 or later
+    "^SAMSUNG SP(0451|08[0124]2|12[0145]3|16[0145]4)[CN]$",
+    ".*-3[5-9]$",
+    may_need_minus_F3_enabled,
+    NULL, NULL, NULL
+  },
+  { "SAMSUNG SpinPoint P80 series", // firmware *-26...34, tested with SP1614C/SW100-34
+    "^SAMSUNG SP(0451|08[0124]2|12[0145]3|16[0145]4)[CN]$",
+    ".*-(2[6789]|3[0-4])$",
     NULL,
     vendoropts_9_halfminutes,
     NULL, NULL
-- 
GitLab