Ticket #1471: smartmontools-add-error-rate.patch
File smartmontools-add-error-rate.patch, 2.3 KB (added by , 4 years ago) |
---|
-
atacmds.cpp
120 120 {"msec24hour32" , RAWFMT_MSEC24_HOUR32}, 121 121 {"tempminmax" , RAWFMT_TEMPMINMAX}, 122 122 {"temp10x" , RAWFMT_TEMP10X}, 123 {"errorsperops" , RAWFMT_ERRORS16_PER_OPS32}, 123 124 }; 124 125 125 126 const unsigned num_format_names = sizeof(format_names)/sizeof(format_names[0]); … … 2117 2118 s = strprintf("%d.%d", word[0]/10, word[0]%10); 2118 2119 break; 2119 2120 2121 case RAWFMT_ERRORS16_PER_OPS32: 2122 // first 16 bits are #errors, last 32 bits are #operations 2123 s = strprintf("%u (%u ops)", word[2], word[1] << 16 | word[0]); 2124 break; 2125 2120 2126 default: 2121 2127 s = "?"; // Should not happen 2122 2128 break; -
atacmds.h
667 667 RAWFMT_MSEC24_HOUR32, 668 668 RAWFMT_TEMPMINMAX, 669 669 RAWFMT_TEMP10X, 670 RAWFMT_ERRORS16_PER_OPS32, 670 671 }; 671 672 672 673 // Attribute flags -
drivedb.h
4089 4089 // ST4000DM004-2CV104/0001 (TRIM: no), ST4000DM005-2DP166/0001, ST8000DM004-2CX188/0001 4090 4090 "ST(2000DM00[589]|3000DM007|4000DM00[45]|6000DM003|8000DM004)-.*", 4091 4091 "", "", 4092 "-v 1,errorsperops " 4093 "-v 7,errorsperops " 4094 "-v 188,raw16 " 4095 "-v 195,errorsperops " 4092 4096 "-v 200,raw48,Pressure_Limit " 4093 "-v 188,raw16 -v 240,msec24hour32"4097 "-v 240,msec24hour32 " 4094 4098 }, 4095 4099 { "Seagate Desktop HDD.15", // tested with ST4000DM000-1CD168/CC43, ST5000DM000-1FK178/CC44, 4096 4100 // ST6000DM001-1XY17Z/CC48 -
smartctl.8.in
1701 1701 .I temp10x 1702 1702 \- Raw Attribute is ten times the disk temperature in Celsius. 1703 1703 .Sp 1704 .I errorsperops 1705 \- Raw Attribute contains number of errors in the first 16 bits and 1706 the number of operations in the last 32 bits. This format is used for 1707 error rates (like attributes 1, 7, or 195) by some Seagate drives. 1708 .Sp 1704 1709 .I raw16(raw16) 1705 1710 \- Print the raw attribute as a 16-bit value and two optional 1706 1711 16-bit values if these words are nonzero. This is the default