You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

90 lines
3.5 KiB

--- a/knowndrives.cpp
+++ b/knowndrives.cpp
@@ -40,11 +40,84 @@ const char * knowndrives_cpp_cvsid = "$I
// see read_default_drive_databases() below.
// The drive_settings structure is described in drivedb.h.
const drive_settings builtin_knowndrives[] = {
-#include "drivedb.h"
+ { "DEFAULT",
+ "-", "-",
+ "Default settings",
+ "-v 1,raw48,Raw_Read_Error_Rate "
+ "-v 2,raw48,Throughput_Performance "
+ "-v 3,raw16(avg16),Spin_Up_Time "
+ "-v 4,raw48,Start_Stop_Count "
+ "-v 5,raw16(raw16),Reallocated_Sector_Ct "
+ "-v 6,raw48,Read_Channel_Margin,HDD "
+ "-v 7,raw48,Seek_Error_Rate,HDD "
+ "-v 8,raw48,Seek_Time_Performance,HDD "
+ "-v 9,raw24(raw8),Power_On_Hours "
+ "-v 10,raw48,Spin_Retry_Count,HDD "
+ "-v 11,raw48,Calibration_Retry_Count,HDD "
+ "-v 12,raw48,Power_Cycle_Count "
+ "-v 13,raw48,Read_Soft_Error_Rate "
+ // 14-174 Unknown_Attribute
+ "-v 175,raw48,Program_Fail_Count_Chip,SSD "
+ "-v 176,raw48,Erase_Fail_Count_Chip,SSD "
+ "-v 177,raw48,Wear_Leveling_Count,SSD "
+ "-v 178,raw48,Used_Rsvd_Blk_Cnt_Chip,SSD "
+ "-v 179,raw48,Used_Rsvd_Blk_Cnt_Tot,SSD "
+ "-v 180,raw48,Unused_Rsvd_Blk_Cnt_Tot,SSD "
+ "-v 181,raw48,Program_Fail_Cnt_Total "
+ "-v 182,raw48,Erase_Fail_Count_Total,SSD "
+ "-v 183,raw48,Runtime_Bad_Block "
+ "-v 184,raw48,End-to-End_Error "
+ // 185-186 Unknown_Attribute
+ "-v 187,raw48,Reported_Uncorrect "
+ "-v 188,raw48,Command_Timeout "
+ "-v 189,raw48,High_Fly_Writes,HDD "
+ "-v 190,tempminmax,Airflow_Temperature_Cel "
+ "-v 191,raw48,G-Sense_Error_Rate,HDD "
+ "-v 192,raw48,Power-Off_Retract_Count "
+ "-v 193,raw48,Load_Cycle_Count,HDD "
+ "-v 194,tempminmax,Temperature_Celsius "
+ "-v 195,raw48,Hardware_ECC_Recovered "
+ "-v 196,raw16(raw16),Reallocated_Event_Count "
+ "-v 197,raw48,Current_Pending_Sector "
+ "-v 198,raw48,Offline_Uncorrectable "
+ "-v 199,raw48,UDMA_CRC_Error_Count "
+ "-v 200,raw48,Multi_Zone_Error_Rate,HDD "
+ "-v 201,raw48,Soft_Read_Error_Rate,HDD "
+ "-v 202,raw48,Data_Address_Mark_Errs,HDD "
+ "-v 203,raw48,Run_Out_Cancel "
+ "-v 204,raw48,Soft_ECC_Correction "
+ "-v 205,raw48,Thermal_Asperity_Rate "
+ "-v 206,raw48,Flying_Height,HDD "
+ "-v 207,raw48,Spin_High_Current,HDD "
+ "-v 208,raw48,Spin_Buzz,HDD "
+ "-v 209,raw48,Offline_Seek_Performnce,HDD "
+ // 210-219 Unknown_Attribute
+ "-v 220,raw48,Disk_Shift,HDD "
+ "-v 221,raw48,G-Sense_Error_Rate,HDD "
+ "-v 222,raw48,Loaded_Hours,HDD "
+ "-v 223,raw48,Load_Retry_Count,HDD "
+ "-v 224,raw48,Load_Friction,HDD "
+ "-v 225,raw48,Load_Cycle_Count,HDD "
+ "-v 226,raw48,Load-in_Time,HDD "
+ "-v 227,raw48,Torq-amp_Count,HDD "
+ "-v 228,raw48,Power-off_Retract_Count "
+ // 229 Unknown_Attribute
+ "-v 230,raw48,Head_Amplitude,HDD "
+ "-v 231,raw48,Temperature_Celsius,HDD "
+ "-v 232,raw48,Available_Reservd_Space "
+ "-v 233,raw48,Media_Wearout_Indicator,SSD "
+ // 234-239 Unknown_Attribute
+ "-v 240,raw24(raw8),Head_Flying_Hours,HDD "
+ "-v 241,raw48,Total_LBAs_Written "
+ "-v 242,raw48,Total_LBAs_Read "
+ // 243-249 Unknown_Attribute
+ "-v 250,raw48,Read_Error_Retry_Rate "
+ // 251-253 Unknown_Attribute
+ "-v 254,raw48,Free_Fall_Sensor,HDD"
+ },
};
-const unsigned builtin_knowndrives_size =
- sizeof(builtin_knowndrives) / sizeof(builtin_knowndrives[0]);
+const unsigned builtin_knowndrives_size = 1;
/// Drive database class. Stores custom entries read from file.
/// Provides transparent access to concatenation of custom and