1 CHANGELOG for smartmontools
3 $Id: CHANGELOG 2951 2009-10-08 23:43:46Z samm2 $
5 The most recent version of this file is:
6 http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/CHANGELOG?view=markup
8 Maintainers / Developers Key (alphabetic order):
22 [JPH] Jordan Powell Hargrave
28 [EM] Eduard Martinescu
29 [FM] Frédéric L. W. Meunier
42 NOTES FOR FUTURE RELEASES: see TODO file.
44 <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
46 [AS] Linux: Autodetect DELL PERC and MegaRAID controllers.
47 Hiding debug messages coming from megaraid code.
49 [AS] Linux: Fixed SATA drives support on megaraid device (see ticket #15).
51 [AS] FreeBSD: Removed all old detection code, moving everything to
52 the objects. Now we are using CAM/ATA enumerators to guess device
55 [AS] FreeBSD: Added autodetection for the ada disks (untested).
56 Code for USB device detection refactored.
58 [AS] FreeBSD: cam_get_umassno rewritten using XPT_PATH_INQ
60 [AS] FreeBSD: do not open/close cam device on every request for SCSI
61 disks. Use com->camdev both for SCSI and ATAPICAM.
63 [AS] FreeBSD: added support for the ada disks, based on agapon patch
65 [CF] Add names for attributes 184 and 188, see ticket #17.
67 [CF] configure.in: Change configure date syntax.
68 Add message to '-mno-cygwin' option check.
70 [GK] Add names for some attributes used in MLC flash drives:
71 175, 176, 177, 181, 182
73 [CF] Windows: Check support of gcc '-mno-cygwin' option in configure.
74 This option has been removed in Cygwin gcc 4.x. Update INSTALL
75 instructions accordingly.
77 [CF] Increase SCSI_TIMEOUT_DEFAULT from 6 to 20 seconds to avoid
78 timeouts when a disk spins up from standby mode.
80 [CF] Add USB ID of AcomData 504 (OnSpec USB bridge).
82 [AS] Correcting manual pages (FreeBSD related)
84 [AS] FreeBSD: fix FTBFS on GNU/kFreeBSD (reported by derevko).
86 [AS] FreeBSD: Add USB autodetection to smartd DEVICESCAN directive.
88 [CF] Add USB ID of Myson Century CS8818, add some comments.
90 [CF] Return info strings from 'smart_interface::get_*()' functions as
91 'std::string' instead of 'const char *'. Static buffers are no
94 [SZ] FreeBSD: Fix highpoint type detection and ioctl failed for parameter
97 [CF] Linux: Add USB autodetection to smartd DEVICESCAN directive.
99 [CF] Add USB IDs of Maxtor Basics Desktop and ISD-300A1.
101 [AS] Use malloc() to ensure that the read buffer lands on a single
102 page. This avoids some bugs seen on LSI controlers under
105 [CF] Add missing help text for '-d usb*' options.
107 [CF] Linux: Dereference '/dev/disk/by-*/*' symlink before device type
110 [AS] FreeBSD: Support SATA disks attached to a SAS controller (based on
111 patch from freebsd ports tree).
113 [AS] FreeBSD: Added FreeBSD 8 libusb2 device autodetecion, new
114 configure check for -lusb.
116 [AS] FreeBSD: Added USB device autodetection and fixed -d switch behavior.
118 [AS] FreeBSD: Migrate os_freebsd.cpp to new interface.
120 [CF] Fix max number of 3ware devices, 128 devices are supported again.
121 Regression was introduced during migration to new interface.
122 Thanks to Michael Holweg for the problem report.
124 [CF] Windows installer: Add 'DisplayVersion' to uninstall registry key.
126 [MS] knowndrives.cpp updates:
127 - Marvell SSD SD88SA024BA0
128 - Fujitsu MHZ2 BH series
129 - Fujitsu MHZ2 BJ series
130 - Seagate Maxtor DiamondMax 23
131 - WD Caviar Green: Add some 32MB cache variants
132 - relax OCZ-Vertex pattern
134 [CF] Add USB ID of Verbatim FW/USB160.
136 [CF] Fix data type bug in checksum test for multi sector logs.
138 [CF] Add USB ID of Seagate FreeAgent Go.
140 [MS] Add experimental feature to log attribute values at each check
141 cycle (ATA only), activated with the smartd option
142 "-A PREFIX" / "--attributelog=PREFIX".
143 Introduce configure options "--enable-attributelog" and
144 "--with-attributelog=PREFIX" to enable feature by default.
146 [DG] [SAT] Heads up about a non backwardly compatible change
147 introduced in draft SAT-2 (sat2r8b.pdf) that will break our
148 existing SAT processing code. Action needed if change stands.
150 [MS] smartd.cpp: Adjust umask
152 [CF] Makefile.am: Remove 'uninstall-docsDATA' target to fix
153 'make distcheck' with automake 1.11. The 'make uninstall'
154 of examplescripts fails if docdir does no longer exist.
156 [CF] Remove 'scsiata.h'. The 'scsiata.cpp' module now implements
157 parts of 'dev_interface.h'.
159 [CF] smartctl: Don't report an attribute as failed if threshold is 0.
161 [CF] Print only one warning on checksum errors in multi sector log.
162 Remove casts from calls of checksum().
164 [DG] minor changes to SCSI background scan strings
166 [MS] knowndrives.cpp updates:
167 - Fujitsu MHW2 BJ series
168 - WD Caviar Black family
170 [MS] Makefile.am: Make creation of svnversion.h independent of
173 [CF] Require to specify PORT parameter of '-d usbjmicron' if two disks
176 [CF] smartctl: Limit default number of printed entries for
177 '-l xerror' to 8, for '-l xselftest' to 25.
179 [CF] smartctl: Fix number of entries in '-l xselftest' output.
181 [CF] Add USB IDs of a SunplusIT bridge, three WD drives, and an
182 unsupported Iomega drive.
184 [CF] Makefile.am: Use 'svnversion' instead of 'svn info' to get
185 the revision number. This also checks for mixed and modified
188 [CF] Remove CVS Id strings from '-V, --version' output.
190 [CF] Update CONTRIBUTORS section on man pages.
192 [CF] Makefile.am: 'make maintainer-clean' now removes also files
193 generated by './autogen.sh'.
195 [CF] Invalidate 'do_release' script, it needs some rework for SVN.
197 [CF] Update documentation files for SVN.
199 [CF] Rename trunk/sm5 to trunk/smartmontools.
201 [CF] Print SVN revision number instead of time in version info line.
202 Get SVN revision number from svn (if available) or guess from
203 Id strings. Rename generated file to svnversion.h.
205 [CF] Makefile.am: Modify generation of cvsversion.h for SVN.
207 [GP] Convert CVS repository to SVN.
209 [CF] smartd: Fix size of monitor flag array from previous commit.
211 [CF] Makefile.am: Add missing 'megaraid.h'.
213 [CF] smartd: Add '!' flag to '-r' and '-R' directives. If specified,
214 message is logged as LOG_CRIT and warning mail is sent if
215 attribute normalized or raw value changes.
217 [CF] Replace global 'con->...' variables used for selective self-tests
220 [GK] Add names for some attributes used in Samsung MLC drives:
223 [CF] smartctl: Add option '-x, --xall' to print all info including
224 extended SMART logs and non-SMART info.
226 [CF] smartctl: Add '-l xerror,error' and '-l xselftest,selftest' to print
227 the old logs if the extended logs are not supported.
229 [MS] knowndrives.cpp updates:
230 - Western Digital AV-GP series
231 - Transcend Solid-State Drive and Transcend Solid-State Drive V series
232 - Seagate Momentus 5400.5 series
234 [CF] Disable 48-bit ATA commands for JMicron USB bridges by default
235 because these commands do not work with all devices.
236 Add '-d usbjmicron,x' to enable 48-bit commands.
237 Thanks to Alexander Shaduri for the problem report.
239 [CF] smartd: Don't ignore the '-n' directive when a self-test is
240 scheduled. Start the self-test later when the disk is active
243 [DG] SCSI (SAS): implement '-l sasphy,reset' (reset part was stub
246 [DG] add 'ATA, SCSI command sets and SAT' section to smartctl.8 .
247 [SCSI] add 'number of background medium scans' field
249 [DG] SCSI (SAS): add '-l sasphy' and '-l sasphy,reset' into smartctl
250 to output SAS device phy information (from the Protocol specific
253 [CF] autogen.sh: Remove 'CYGWIN=check_case:strict', this does no
254 longer work on Cygwin 1.7. Print warning if Automake version
255 cannot handle case insensitive filesystems.
257 [CF] Remove '#define TRUE/FALSE', use 'bool' and 'true/false'.
259 [CF] Add 'options' parameter to SCSI printing routine. Move global
260 'con->...' smartctl variables to 'options' parameters of
263 [CF] Windows: Remove outdated entry about undocumented system calls
266 [CF] Print General Purpose Logs even if GPL feature bit is missing.
267 Needed for some older disks which implement READ LOG EXT but
268 do not report the GPL feature set.
269 Change order of the extended log outputs ('-l xerror',
270 '-l xselftest', '-l sataphy'). Extended logs are now printed
271 before their old versions.
273 [CF] autogen.sh: automake 1.10.2 and 1.11 are OK.
275 [CF] Fix syntax error in prototype of 'safe_snprintf()'.
276 Thanks to Alexander Shaduri for bug report and patch.
278 [DG] SCSI: Fetch load-unload cycle counts.
280 [CF] Windows: Add Win-7 and Win2008 to get_os_version_str().
282 [CF] smartd: Fix '-M test' directive in conjunction with '-s' option.
283 Thanks to Matthias Becher for the problem report.
285 [MS] knowndrives.cpp updates:
286 - Add Seagate Barracuda 7200.12 series
287 - Add Seagate Momentus 5400.4 series
288 - Add Hitachi Deskstar 7K1000.B series
289 - Add Transcend SSD TS32GSSD25-M
290 - Add OCZ Vertex 1199
292 [CF] knowndrives.cpp updates:
293 Add Samsung S250 series.
294 Add '-v 198,increasing' to Samsung P80.
295 Replace '#if/#endif' by comment to fix configure option
298 [CF] knowndrives.cpp update:
299 Add Seagate 7200.11 with 'CC' firmware which is unaffected
300 by the bug. Thanks to Bas Mevissen for the patch.
302 [CF] Replace global 'con->...' variables used for drive presets
305 [CF] Simplify '-v' vendor attribute option parsing.
306 Add '-v 197,increasing' and '-v 198,increasing' options
307 to specifiy that an uncorrectable count is never reset.
308 This modifies the printed attribute names and smartd's
309 default setting of '-C' and '-U' directives.
310 Both '-v' options can also be preset in the drive database.
312 [CF] Add '+' modifier to smartd '-C' and '-U' directives.
313 If specified, a warning is only printed if the raw value
316 [CF] Add smartctl option '-l xselftest[,NUM]' to print
317 ATA SMART Extended Self-test Log (GP Log 0x07).
319 [CF] Add experimental option '-d usbsunplus' for drives behind
320 SunplusIT USB bridges. Tested on WinXP with SPIF215(?) in
321 TrekStor DataStation maxi m.u.. Many thanks to SunplusIT
322 tech support for providing the required information.
324 [CF] Windows: Provide a non-console version of smartctl.exe
325 as smartctl-nc.exe. This prevents that a new console is
326 opened when smartctl is run from a GUI program with
328 Used by GSmartControl (http://gsmartcontrol.berlios.de/).
330 [CF] Remove support for platforms without getopt_long() in
331 smartctl.cpp and smartd.cpp. If getopt_long() is missing,
332 ./configure aborts with an explanatory message.
333 For now, short option help texts are only removed from
334 os_linux.cpp and os_win32.cpp. HAVE_GETOPT_LONG is still
337 [CF] Add smartctl '-d test' option to print the result of the
338 device type detection.
340 [CF] Enhance USB device type autodetection, use bcdDevice if known.
341 Add Cypress CY7C68300B/C (AT2LP) to the table.
343 [CF] Linux: Add experimental USB device type autodetection.
344 Uses USB ID info found through symlink "/sys/block/sdX/device".
346 [CF] Windows: Add experimental USB device type autodetection.
347 Uses WMI command line tool 'wmic' to query USB ID.
349 [CF] Add function smart_interface::get_usb_dev_type_by_id() to map
350 USB vendor:product IDs to '-d type' names. Can be used by
351 platform dependent layer to autodetect USB devices if ID of
354 [CF] smartd: Log changes of self-test execution status if
355 '-l selftest'is specified.
357 [CF] knowndrives.cpp update:
358 Samsung SpinPoint F1 RE series
360 [MS] knowndrives.cpp update:
361 Seagate Momentus 5400.6 series
363 [CF] Add forgotten SCSI sense checks to class usbjmicron_device.
365 [CF] Add new SMART STATUS check command for JMicron USB bridges.
366 Should support also older chip versions and prevents a race
369 [CF] Windows: Fix win_scsi_device::scsi_pass_through() for single byte
370 data transfers. Required for JMicron SMART STATUS check.
372 [MS] knowndrives.cpp update:
373 Add Hitachi Travelstar C4K60 family (1.8" slim drives)
375 [MS] Workaround for huge raw values of attribute 9, needed
376 for Hitachi Travelstar C4K60. For the Power_On_Minutes case,
377 clip the display to 4 bytes and show the remaining part,
378 if existent, in parens.
380 [CF] Add experimental option '-d usbjmicron[,PORT]' for drives
381 behind JMicron USB bridges. Tested on WinXP with JM20336 in
382 AixCase AIX-ESU35CD. Many thanks to JMicron tech support
383 for providing the required information.
385 [MS] knowndrives.cpp update:
386 Add WD Caviar Green 8MB and 32MB cache variants, stretch to 2TB.
388 [CF] knowndrives.cpp updates: Add more entries for Samsung P80 disks
389 with old and unknown firmware. Remove old entries which would
390 match any new Samsung model reusing old firmware version number.
392 [CF] Windows: Add a workaround for missing multi-sector support
393 for ATA READ LOG EXT command.
395 [CF] Fix Extended Comprehensive Error Log index base.
396 Add workaround for Samsung disks using reserved byte as index.
398 [CF] knowndrives.cpp updates: Update bug warnings for
399 Seagate 7200.11, ES.2 and DiamondMax 22. Add new entries
400 for fixed firmware versions.
402 [CF] Add smartctl option '-l xerror[,NUM]' to print
403 ATA SMART Extended Comprehensive Error Log (GP Log 0x03).
405 [MS] knowndrives.cpp update:
406 Added remaining WD Scorpio Blue SATA II drives
408 [CF] Minor fix to remove ID 0 from 'smartctl -l sataphy ...' output.
410 [CF] knowndrives.cpp updates: Add warnings about possible firmware
411 bugs to Seagate 7200.11, ES.2 and DiamondMax 22 entries.
413 [CF] knowndrives.cpp updates: Add Samsung SpinPoint F1 series.
415 [CF] Windows: Fix return value of scsi_pass_through(). Regression
416 was introduced during migration to new interface. SAT over USB
417 now works on XP (both '-d sat,12' and '-d sat,16').
419 [MS] knowndrives.cpp updates:
420 - Added Western Digital RE2-GP family
421 - Added Hitachi Travelstar E5K160 family
422 - Allow uppercase variants of Hitachi 5K160 drives
424 [CF] Fix smartctl crash on '-l directory,[gs]'. Allow to override
425 missing GPL feature bit or missing log dir entry with
426 '-T permissive' option.
428 [SZ] os_freebsd.cpp, os_freebsd.h updates:
429 Support HighPoint RocketRAID controller under FreeBSD
431 [MS] knowndrives.cpp updates:
432 - Added Western Digital RE3 32MB cache variants
433 - Added WD Caviar Green 32MB cache variant (WD10EADS)
434 - Added WD Scorpio Black family
436 [DG] Accept half healthy (and half unhealthy) indication from the
437 SMART RETURN STATUS. This makes allowance for SAT implementations
438 (e.g. via USB) that truncate the SCSI sense buffer to 18 bytes.
439 This truncation causes the SMART RETURN STATUS indication to be
440 half health or unhealthy. If the half indication is used, then
441 warn if '-r ioctl' is given.
443 [MS] knowndrives.cpp updates:
445 - Added Seagate U8 family
448 Added support for CHECK_POWER_MODE and WRITE_LOG commands
450 [MS] knowndrives.cpp update:
451 There seem to exist WD Raptors with SATA II interface, add them.
453 [MS] knowndrives.cpp updates:
454 - Added remaining Seagate Barracuda 7200.11 drives
455 - Added HP 1TB SATA disk
457 [MS] knowndrives.cpp updates:
458 - Added Maxtor 92040U6 (DiamondMax Plus 6800)
459 - Added Seagate Maxtor DiamondMax 21 500GB version
460 - Added QUANTUM FIREBALLlct15 22
461 - Added QUANTUM FIREBALL CR6.4A
462 - Added QUANTUM FIREBALLP LM20.4
463 - Added SUN branded Toshiba MK4019GAX
464 - Added TOSHIBA MK1016GAP and relatives: MK1[05]1[67]GAP
465 - Added Western Digital WD800AB and WD2500AB
466 - Some Hitachi 7K160 drives have garbage at end of name: permit it
468 [CF] Add smartd '-n powermode,N' directive parameter to limit the
469 number of skipped checks. Thanks to Michal Hlavinka for the patch.
471 [MS] knowndrives.cpp updates:
472 - Added Hitachi Endurastar J4K30/N4K30
473 - Added Hitachi Travelstar 4K120 series
474 - Some Hitachi 7K80 drives have garbage at end of name: permit it
475 - IBM Travelstar 6GN series
477 [MS] knowndrives.cpp updates:
478 - Added Quantum Fireball ST4300A
479 - Added Asus-Phison SSD (solid state disk)
480 - Added Seagate DB35.3 Series
481 - Added remaining disks of the Seagate SV35.2 Series
483 [MS] Fix trivial compile error with "-pedantic"
485 [MS] Workaround for huge raw values of Reallocated_Sector_Ct and
486 Reallocated_Event_Ct for newer Fujitsu disks (only the lower
487 16 bits seem to be meaningful). Clip the display to 16 bits
488 and show the remaining part, if existent, in parens. Patch by [CF].
490 [CF] smartd DEVICESCAN: Fix autodetection of SAT devices.
491 Thanks to Stanislav Brabec for bug report and testing.
493 [MS] knowndrives.cpp update:
494 Convert file to full string regex: remove "^$" from pattern
496 [MS] knowndrives.cpp updates:
497 - Added Seagate Momentus 5400 PSD series (hybrid drives)
498 - Added Seagate Momentus 7200.3 series
499 - Added Hitachi Deskstar 7K250 (SUN branded)
500 - There are Hitachi Travelstar 5K250 drives with capital "HITACHI"
501 - Correct regex for Maxtor VL 30 drives
503 [CF] Add configure options '--enable-savestates' and
504 '--with-savestates=PREFIX' to enable smartd persistence
505 ('-s' option) by default.
507 [CF] smartd: Add '-s ([cnr]/../.././..)' directive to run scheduled
508 selective self-tests. Useful to perform full tests of large disks
511 [CF] Allow to read local drive database entries from optional file
512 '${sysconfdir}/smart_drivedb.h'.
513 Add configure options '--enable-drivedb' and '--with-drivedbdir=DIR'.
514 If specified, drive database is read from '${drivedbdir}/drivedb.h'.
515 (default '${prefix}/share/smartmontools/drivedb.h'). This file
516 is build from knowndrives.cpp.
518 [MS] knowndrives.cpp updates:
519 - Added 640GB variants of Western Digital AAKS and AACS drives
520 - Added Western Digital AV ATA family
521 - Added 160GB variant of Hitachi P7K500
522 - Added 500GB variant of Hitachi 7K1000
523 - Some cleanup for Quantum disks
524 - Added Seagate Maxtor DiamondMax 22 family
526 [CF] Use full string match for regexp in drive database.
528 [CF] Add option '-d sat+TYPE' to use SAT with controllers which
529 require option '-d TYPE'. Should work with '-d sat+megaraid,N'.
530 As a side effect, '-d usbcypress+TYPE' is also supported.
532 [CF] Add parser to read drive database from a file. Add '-B' option
533 to smartctl and smartd to specify database file name. File syntax
534 is identical to the C/C++ syntax used to inialize the internal
537 [CF] New syntax for drive database: Specify presets by strings
538 with '-v' and '-F' options. Use empty strings instead of NULL.
540 [JPH] Added Linux support for viewing disks behind MegaRAID
543 [CF] smartd: Improve min/max temperature recording in conjunction
546 [CF] Add a wrapper class for FILE *.
548 [CF] smartd: Add experimental support for state persistence (ATA only).
549 Add option '-s' to specify path prefix for state files.
550 Rework scheduled self-test detection to support persistence.
551 If any test schedules are within downtime, the highest priority
552 test is run after next startup.
554 [CF] Remove casts from 'format_ata_string()' calls.
556 [CF] Minor changes to fix errors and warnings from Cygwin gcc 4.3.0.
558 [CF] smartd: Remove SCSITIMEOUT code. According to smartd.h 1.54 CVS log
559 from 2003-10-27, it did never work.
561 [CF] Remove dependencies ataprint.cpp and scsiprint.cpp from smartd.
562 Move common ATA functions from ataprint.cpp to atacmds.cpp.
563 Module scsiprint.cpp was apparently never used in smartd.
565 [CF] Move smartd local declarations from smartd.h and utility.h to
566 smartd.cpp. Remove smartd.h.
568 [CF] Fixed extra '\n' in "Offline data collection status" output.
569 Thanks to Alexander Shaduri for the patch.
571 [CF] smartd: Separate device configuration data from device state data.
572 Use references instead of pointers for configuration and state data.
574 [CF] Add const-correctness and static to ATA support functions.
576 [CF] Add a wrapper class for regex.
578 [CF] Simplify 'create_vendor_attribute_arg_list()'.
580 [CF] smartd: Rework of main data structures. Remove explicit memory
581 allocations, use STL containers and structs with value semantics
582 instead. Remove old malloc/free based memory management helper
583 functions unless old interface is still in use.
585 [CF] Linux: Cleanup device scan, remove name list, create objects directly.
587 [CF] Linux: Cleanup smart_device::open(), type strings are no longer used.
589 [CF] Remove CONTROLLER_* defines and variables unless old interface
592 [CF] Linux: Migrate 3ware interface to 'ata_pass_through()'.
593 Multi-sector support is not complete yet. 48-bit commands
595 WARNING: Not tested, please review code before first test!
597 [CF] Linux: Migrate os_linux.cpp to new interface.
599 [CF] Add direct access to 16-bit registers in 'ata_in/out_regs_48bit'.
601 [CF] Add 'ata_cmd_is_ok()' parameter check,
602 remove 'ata_pass_through_28/48bit()' functions.
604 [CF] Add CVS date/time from cvsversion.h to man pages also.
606 [CF] Add configure option '--with-os-deps='os_module.o ...' to specify
607 alternate OS interface modules. Useful for testing during migration.
609 [CF] Remove declarations of 'optarg', 'optind', ..., include <unistd.h>
610 instead. This fixes 'auto-importing' linker warnings on Cygwin.
612 [CF] Add '-l sataphy[,reset]' to print SATA Phy Event Counters.
614 [CF] Add '-l gplog,ADDR[,FIRST[-LAST|+SIZE]]' and '-l smartlog,...'
615 to dump any log page accessible via GP or SMART read log commands.
617 [CF] Enhance '-l directory' to print both GP and SMART Log directories.
618 Add '-l directory[,gs]' modifiers to select GP or SMART log.
619 Enhance 'ata_cmd_in' parameter struct for 48-bit commands.
621 [CF] Windows: Add full ATA pass through support including 48-bit commands.
623 [CF] Windows: Migrate os_win32.cpp to new interface.
625 [CF] SAT: Add full ATA pass through support including 48-bit commands.
627 [MS] knowndrives.cpp update
628 - Added FUJITSU MHZ2250BS G2 and family
630 [MS] knowndrives.cpp updates
631 - Added Maxtor DiamondMax 60 94098H6
632 - Added Maxtor DiamondMax 1280 84000A6 and family
633 - Added Maxtor DiamondMax VL 30 31536H2 (ATA100) and family
634 - Some Seagate Barracuda 7200.9 have garbage at end of name: permit it
635 - Added Seagate Barracuda ATA ST320430A and family
636 - Regression from previous checkin: add WD RE2 WD...0ABYS again
637 - Added WD RE3 WD5002ABYS and family
638 - Added Quantum Fireball CR13.0A
639 - Added Hitachi Travelstar 5K250 HTS542525K9SA00 and family
640 - Added WD AC420400D and add whole range of AC.... which
641 have 5400rpm or higher (i.e. PIO-only drives omitted)
643 [MS] knowndrives.cpp updates
644 - WD: Separated entries for EIDE and SATA
645 - WD: Separated entries for Caviar SE, SE16, RE, RE2
646 - WD Named: WD Caviar AC series
647 - WD Renamed: WD Caviar RE/RE2 -> WD RE/RE2
648 - WD Renamed: WD Caviar SE/SE16 WD....AA[A-Z][A-Z] -> WD Caviar Blue
649 - WD Renamed: WD Scorpio WD....BEV[A-Z] -> WD Scorpio Blue
650 - Added WD Scorpio Blue WD3200BEVT
651 - Added WD RE2 WD5001ABYS and family
652 - Added WD Caviar Green WD5000AACS and family
653 - Added WD VelociRaptor WD3000GLFS and family
654 - Added Seagate Barracuda ES.2 ST31000340NS and family
655 - Added Samsung SP80A4H
656 - Added Maxtor DiamondMax 21 STM3160215AS and STM3320620AS
657 - Added Seagate Barracuda 7200.7 ST380819AS
658 - Added Maxtor DiamondMax 10 6B100P0
659 - Added Seagate SV35.2 Series
660 - Added Fujitsu MHY2120BH and family
661 - Added Fujitsu MHW2080BH PL (PL variant)
662 - Added Toshiba MK3252GSX and family
664 [BA] Fix smartctl bug: when running in silent mode '-q errorsonly'
665 do not print the Selective Self-test log. Any errors will
666 ALREADY appear in the SMART Self-test log.
668 [CF] Add missing 'const' and other minor fixes to prevent gcc warnings.
670 [OB] Added information message about supported Areca firmware versions.
671 It's displayed in case the ATA device identification fails.
673 [CF] Add configuration file for Doxygen.
675 [CF] Add new object oriented interface to access ATA and SCSI devices.
676 smartctl and smartd are modified to use the new classes in
677 'dev_interface.{h,cpp}'. The template class in 'dev_tunnelled.h'
678 is used in 'scsiata.cpp'. The code in 'dev_ata_cmd_set.{h,cpp}'
679 supports migration from old function 'ata_command_interface()'.
680 All existing 'os_*.cpp' modules should still work without any changes.
681 The required adapter classes from 'dev_legacy.cpp' are automatically
682 added by configure if necessary.
684 [BA] Updated smartd and smartctl and smartd.conf man-page documentation
685 to reflect support for Areca SATA RAID controller cards.
687 [OB] Added support for Areca controllers to smartd. Extensive tests
688 as well as documentation are still pending however.
690 [OB] Implemented device locking for Areca controllers in smartctl
692 [BA] Fixed selective self-test code. Data structure revision number
693 may be != 1 if no selective self-test has ever been run. Host
694 MUST set this value (at least at the first selective self-test
695 instance). Thanks to Curtis Stevens of WDC for clarification.
697 [MC] usbcypress autodetection
699 [BA] Starting to commit Areca code. For now just smartctl.
700 More changes and documentation coming soon.
701 Need Areca firmware version 1.45 dated 10 June 2008 or later.
702 May need changes in opening /dev/sg and file locking.
703 Many thanks to Hank Wu!
705 [CF] smartd: Fix too small name buffer for 3ware with >100 devices.
707 [JH] now C++ Support for QNX Target
708 already tested for QNX 6.3.2 on x86 and armle target
710 [CF] Allow to set BUILD_INFO from make command line.
712 [CF] Windows: Add MSVC8 support, remove MSVC6 project files.
714 [MC] Add usbcypress device support for smartd.
716 [CF] Add output of latest CVS date/time stamp to version info.
717 New file cvsversion.h is generated by Makefile.
718 Move formatting of version info to utility.cpp.
720 [AR] Fix bug in 3ware node creation where nodes would be created
721 then deleted, then recreated.
723 [BA] Add missing CCISS cvs version tags to '-V' printouts.
725 [TS] Linux: Ensure the 3ware device nodes are created with a correct
726 SELinux security context.
728 [AR] Add support for up to 128 devices on 3ware controllers.
730 [CF] C++: Added new main() with exception handlers, replaced
731 exit(x) with throw(x), removed global variable 'exitstatus'.
732 Necessary for future changes, because exit() does not call
735 [SS] FreeBSD: plug file descriptor leak in smartd (only happens with
736 CISS devices). Reported by Vadim Ostranitsyn.
738 [SS] FreeBSD: allow smartctl to interact with SCSI /dev/pass devices,
739 thus enabling it to work with RAID controllers that expose disks
740 via these devices. From scottl@ via FreeBSD ports.
742 [MC] Add usbcypress device support for smartctl.
744 [KS] INSTALL on Solaris: updated description to use C++ compiler.
746 [KS] configure.in on Solaris: added options for Sun's compiler to
747 suppress trivial warnings.
749 [KS] configure.in on Solaris: added direction to search suitable
750 libraries for getaddrinfo().
752 [TS] smartd on Linux: remove forgotten return from deviceopen();
753 SCSI device descriptors had the FD_CLOEXEC flag unset.
755 [CF] Added 'const' to avoid warning on depreciated string constant
756 to 'char *' conversion.
758 [CF] autogen.sh: automake 1.10.1 is OK. Updated message texts.
760 [BA] removed smartmontools.spec file (now in CVS Attic). This
761 was not being used by RH or FC anyhow, and was out of
762 date and not maintained.
764 [BA] smartd on Linux: sets FD_CLOEXEC on the opened device file
765 descriptor. The descriptor is otherwise leaked to other
766 applications (mail sender) which may be considered a security
767 risk and may result in AVC messages on SELinux-enabled systems.
768 Thanks to: Tomá Smetana" <tsmetana@redhat.com>.
770 [BA] smartd: when sending email, to gather information about the
771 host for the body of the email, eliminate gethostbyname()
772 in favor of the IPv6-friendly function getaddrinfo() if the
773 latter is available. Info may be found here
774 http://udrepper.livejournal.com/16116.html
776 http://people.redhat.com/drepper/userapi-ipv6.html
777 Thanks to: Tomá Smetana" <tsmetana@redhat.com>.
779 Smartmontools developers: please check that smartd still LINKS
780 properly on your systems.
782 [BA] Fix ugly syntax bug in os_freebsd.cpp. How did this go
783 undetected for so long??
785 SMARTMONTOOLS STABLE RELEASE 5.38 2008/03/10
787 [KS] Solaris/x86: modified configure.in for Sun's compiler.
789 [BA] smartd.initd.in addition from Erwan Velu <erwan@seanodes.com>
793 - On Linux, DEVICESCAN now automatically recognizes SATA devices
794 behind libata, and SATA devices behind the Marvell driver, and
795 treats them correctly.
797 - On Linux, a '-d sat' or '-d marvell' is automatically added
798 if libata or the marvell driver are recognized behind a SCSI
801 [SS] (Maybe) fix attribute autosave in FreeBSD.
803 [SS] Major NetBSD-specific bugfixes:
804 - handle actual SCSI and ATA errors and not only ioctl() errors;
805 - set up I/O request properly for AUTO_OFFLINE and AUTOSAVE commands (inspired by
806 similar change in os_freebsd.cpp);
807 - handle AUTO_OFFLINE and AUTOSAVE like STATUS_CHECK (like os_linux.cpp does).
809 [GG] add kfreebsd gnu support to configure.in
811 [BA] Fix auto-offline support in FreeBSD. Thanks to
812 Cyrus Rahman <crahman@gmail.com> for the patch, and
813 Eduard Martinescu for blessing it.
815 [DG] smartd re-opens "SCSI" devices as ATA devices if a SAT layer is
816 detected (smartd bug IMO). In Linux this upsets scsi generic
817 device nodes (e.g. /dev/sg0). Detect the re-open in os_linux.cpp
818 and set the O_RDWR flag (ATA uses the O_RDONLY flag).
820 [CF] Drive database: Added Fujitsu MHW2 BH, Maxtor DiamondMax 17, 20, 21,
821 Hitachi Travelstar 4K40, 5K120, 7K200, Deskstar 7K160, T7K500,
822 T7K1000, Toshiba 1.8", Seagate Momentus 5400.3, 5400.3 ED, 7200.2,
823 Barracuda 7200.11 and ES.
824 Updated Toshiba 2.5", Seagate Barracuda 7200.9 and 7200.10.
825 Added missing "(Hitachi )?" to Travelstar entries.
827 [CF] Drive database: Added several Western Digital Caviar and Scorpio
828 drives, added Caviar RE EIDE family.
830 [CF] Drive database: Added Samsung P80 series with *-25 firmware.
832 [CF] Replaced 'head [-n] -1' by 'sed 1...' in autogen.sh to avoid
835 [BA] Fixed autogen.sh script so that it uses 'grep -n 1' if 'grep -1'
836 fails. Needed for Mac OS X 10.4. Uck.
838 [CF] Windows: Added IOCTL_STORAGE_PREDICT_FAILURE. This allows access
839 to ATA SMART status and data if other calls do not work.
840 Thanks to Jaroslaw Kowalski for pointing this out.
841 Added support to use this function without admin rights.
843 [CF] Added ATA-8 revision 4c message text.
845 [CF] Added compiler.h to cciss_ioctl.h header check to prevent
848 [SS] DragonFly support added (using os_freebsd code; untested).
850 [CF] smartctl: Fixed ATA identify byte swapping issue on big-endian
851 platforms. This regression was introduced by the change for
852 '-F swapid'. Thanks to Matthew Butch for bug report and testing.
854 [DG] SAT/SCSI: Improve SAT error processing code. Aborted commands from
855 ATA devices (typically because SMART was disabled) were not being
858 [GG] smartd: wait for the pid file to show up, return an error if it doesn't
860 [JH] fix bad return code (get STATUS) for QNX Part
862 [JH] initial porting to QNX Neutrino 6.3.2
863 need at this time a prerelease devb-eide driver and libcam.so.2
864 only tested for X86 Target, but devb-eide and lobcam.so.2 available for X86/ARM
865 the officional driver coming soon with the next QNX release
866 create two new source files os_qnxnto.[c..h]
868 [CF] smartd: Added option '-n, --no-fork' so that smartd works
869 better with modern init methods. Thanks to Enrico Scholz
870 for the patch from 2005-12-24.
872 [CF] Windows: Improved ATA/SCSI device type detection and
873 DEVICESCAN. This also fixes a regression in 3ware DEVICESCAN.
875 [CF] smartd: Don't start self tests in first pass to avoid
876 performance problems during boot.
877 https://bugzilla.novell.com/show_bug.cgi?id=192591
879 [CF] Fixed regression in SMART STATUS command on Win9x/ME.
881 [BA] Fixed 3ware issue with new controllers. Documentation said
882 that one could address up to 24 disks on a single controller,
883 but in fact one was limited to 16 disks. This is now fixed:
884 up to 32 disks can be addressed. Thanks to Adam Radford.
886 NOTE1: I have patched the Linux and FreeBSD code but not
887 modified the Win32 code (it already supports up to 32 disks).
889 NOTE2: NOT TESTED ON LINUX. Do not use this on a production box!
890 I will remove this NOTE2 as soon as some positive test
891 reports are recieved.
893 NOTE3: NOT TESTED ON FREEBSD. Do not use this on a production box!
894 I will remove this NOTE3 as soon as some positive test
895 reports are recieved.
897 [CF] Windows installer: Added explorer drive menu, CMD window,
898 UBCD4Win plugin, smartd service update and other minor
901 [CF] Windows: Modified drive letter handling for explorer drive
902 context menu: try SCSI if type is unknown, allow 'X:\.' syntax.
904 [CF] Windows: Added automatic ATA/SCSI device type detection and
905 SCSI device scanning. The device names '/dev/sdX' and
906 '/dev/pd<n>' now work for both ATA and SCSI disks.
908 [CF] smartctl: Added ability to parse '-r ataioctl,2' output from
909 stdin ('-') and simulate the ATA commands for testing purposes.
911 [BA] SMART Attributes: added 187, 189, more accurate name for 190.
913 [CF] Windows: Added drive letters 'X:' as alternate disk device names.
915 [CF] smartctl: Added '-F swapid' to fix ATA identify string byte
916 ordering. Added '-q noserial' to suppress serial number output.
918 [CF] Windows: Added '/dev/n?st<n>' as alternate device names for SCSI
919 tapes. These names are also used by Cygwin's /dev emulation layer.
920 Thanks to Corinna Vinschen (Cygwin project lead) for pointing this
923 [CF] Windows: Added IOCTL_SCSI_MINIPORT_*SMART* for commands not handled
924 properly by SMART_IOCTL in disk class driver. This allows to use
925 READ_LOG, WRITE_LOG and ABORT_SELFTEST even if the driver does not
926 support ATA_PASS_THROUGH.
928 [CF] Added ATA-8 revision 4, fixed WRITE LOG '-r ioctl' output.
930 [BA] Updated smartctl and smartd so that they can be used with the latest
931 3ware controllers which have 24 ports. Also updated docs.
932 Thanks to Tim Bell at CERN.
934 [GG] bit 4 in smartctl's return code might be set even when the dist check
935 didn't return "DISK OK"
937 [CF] Drive database: added '-F samsung3' for Samsung P80 firmware
940 [SS] Applied patch from Dean Bennett to fix scheduled tests on
941 Highpoint RAID controllers.
943 [BA] Added patch from Tejun Heo http://thread.gmane.org/gmane.linux.ide/13222/focus=13235
944 to fix broken auto-offline and auto-save via libata. Very clean fix: does it
945 "the right way". Thanks Tejun!
947 [CF] Added message text for ATA-7 self-test execution status 8
948 ("... handling damage").
950 [GG] cciss: support more than 16 disks (patch taken from
951 http://cciss.sourceforge.net/smartmontools_cciss_more_than_16_drives.patch
952 and adjusted for smartd)
954 [DG] Solaris: [SCSI] add USCSI_RQENABLE flag to uscsi pass-through so
955 sense buffer is made available. Expand reporting at this level.
957 [GK] Darwin: Improve handling of powered-down drives.
959 [SS] CCISS physical drive enumeration method changed (incompatibly).
961 [CF] Fixed smartd crash on missing '-s' directive argument.
963 [SS] Support CCISS on FreeBSD (kernel source is required until FreeBSD PR 109813
966 [DG] SCSI/TAPE: some IBM tape drives don't react properly to a LOG
967 SENSE with an allocation length of 4; work around for that case.
969 [CF] Applied Guido's patch to fix CCISS LUN array bounds check
970 (openSUSE bug #239956) and remove trailing spaces in
973 [CF] Fixed 64-bit compilation issue in SCT status struct.
975 [DG] SAT/SCSI: make real SCSI disks visible to DEVICESCAN in
978 [CF] Fixed check of SCT temperature table size.
980 [CF] Added ATA-8 draft revisions, added SCT status format 3.
982 [CF] Drive database: added Samsung T166 series.
984 [CF] ATA: Added ',p' option for '-t scttempint,N' to make
987 [CF] ATA: Added '-t scttempint,N' option to set SCT temperature
990 [CF] ATA: Added '-l scttemp[sts,hist]' options to print disk
991 temperature information and history table provided by
992 SMART Command Transport (SCT) Feature Set.
994 [CF] ATA: Added '-t selective,{redo,next,cont}' commands to
995 perform tests based on the last ranges still stored on
996 disk. Added 'N+SIZE' and 'N-max' format for LBA range
999 [CF] Added Min/Max Temperature format used in attribute 190 of
1000 recent Maxtor disks (DiamondMax 20).
1002 [CF] Linux: Added check for <linux/cciss_ioctl.h> to allow build
1003 (without CCISS support) also when this file is missing.
1005 [CF] Added -F samsung3 option to correct firmware bug reporting
1006 completed self-tests as still in progress. Thanks to Manfred
1007 Schwarb for the patch.
1009 [CF] Added missing const specifiers (undetected by gcc 3.4 and 4.X)
1010 to fix compilation with gcc 2.X.
1012 [CF] Linux: compile fix for SuSE, config.h must be included first.
1014 smartmontools 5.37 Experimental Release
1016 [CF] Windows: Added alternate method for (limited) monitoring of
1017 3ware controllers by parsing the output of CLI or 3DM.
1018 Either "tw_cli" can be run internally ("/dev/tw_cli/cx/py"),
1019 or data can be read from standard input ("/dev/tw_cli/stdin")
1020 or clipboard ("/dev/tw_cli/clip").
1022 [DG] Remove linux specific libata detect code; rely on general SAT
1023 code. smartd should now generate a sensible log message for
1024 ATA devices behind a SAT layer on all architectures.
1026 [BA] Increased max line length MAXLINELEN for /etc/smartd.conf from
1027 128 to 256 characters to handle long strings in
1028 /dev/disk/by-id. Thanks to Martin Krafft.
1030 [PW] Drive database: added missing drives from Seagate Momentus 5400.2
1033 [BA] Finished Christian's fix (next item below) by removing
1034 LINUX_86_64 hack from configure.in.
1036 [CF] Fixed inclusion of PRI?64 macros from inttypes.h.
1038 [CF] Windows: Added WRITE LOG to support selective self tests.
1040 [CF] Fix selective self test log revision number if '-T permissive'
1041 is specified (Tested with Samsung HD401LJ).
1043 [CF] Windows: Fixed int64 printf format for MinGW runtime.
1045 [PW] Drive database: added Seagate Barracuda 7200.10 family, Seagate
1046 Momentus 42 family, Maxtor DiamondMax 60 ATA 66 family, Maxtor
1047 DiamondMax 60 ATA 100 family, and Western Digital Caviar Serial
1050 [PW] Drive database: added missing drives from Seagate Barracuda
1051 7200.9 family, Seagate Barracuda 7200.7 family, Seagate Momentus
1052 7200.1 family, Toshiba 2.5" HDD family (80 GB and above), Western
1053 Digital Caviar RE Serial ATA family, Hitachi Deskstar 7K80 family,
1054 and Maxtor DiamondMax 4320 Ultra ATA family
1056 [BA] Linux: compile fix for SuSE. Check for existence
1057 of linux/compiler.h and include in os_linux.h if
1058 present. Thanks to SB.
1060 [BA] smartd: DEVICESCAN will now pick up SATA/SAT devices
1061 attached to a SCSI device tree via SAT translation.
1062 Note: this is a bit of a hack. I will document it once
1063 I know if this needs to be Linux only or can have more
1064 general application.
1066 [BA] Added a couple SATA commands to the tables -- thanks DG!
1067 Phil -- how about going through and systematically adding
1068 these new commands to atacmdnames.cpp?
1070 [BA] Linux s86_64: get rid of some compiler warnings on
1071 x86_64 Linux systems.
1073 [CF] Windows: Added missing support for READ_LOG, ABORT_SELFTEST
1074 and CHECK_POWER_STATE for 3ware 9000 controllers. Thanks to
1075 Greg de Valois for implementing this new ioctl in the driver.
1077 [PW] Drive database: added Seagate NL35 SATA family. Thanks to Kai
1078 Harrekilde-Petersen for providing a patch.
1080 [DG] [SCSI, Windows] add SPT interface for NT and later. New device
1081 names are "pd<n>", "sd<l>" and "tape<n>".
1083 [PW] Drive database: added Western Digital Scorpio family, Fujitsu MHV
1084 family, Maxtor MaXLine Pro 500 family, and Maxtor DiamondMax 11
1087 [PW] Drive database: added missing drives from Toshiba 2.5" HDD
1088 (30-60 GB) family, Maxtor DiamondMax 10 family, Seagate Barracuda
1089 7200.8 family, Fujitsu MHT family, and Maxtor DiamondMax Plus 8
1092 [SB] Added examplescripts/Example4 using powersave-notify.
1094 [SB] More temperature monitoring examples in smartd.conf with DEVICESCAN.
1096 [SB] Minor improvements of SuSE part of init script.
1098 [CF] Drive database: added Samsung P80 series, P120 series, SP8004H
1101 [GG] Add CCISS (Compaq Smart Array Controller) support with contributions
1102 from Praveen Chidambaram, Douglas Gilbert, Guido Guenther and Frédéric
1105 [PW] Drive database: added Hitachi Deskstar T7K250 and Hitachi
1106 Deskstar 7K500 series. Thanks to L. J. Wu for providing a
1109 [PW] Drive database: added Maxtor MaXLine III family, Seagate U7
1110 family, Seagate ST34321A, FUJITSU MHM2060AT, FUJITSU MHT2040AS,
1111 Western Digital Caviar SE16 family, IBM Travelstar 4GT family,
1112 QUANTUM FIREBALLP KA9.1, QUANTUM FIREBALL SE4.3A, TOSHIBA
1113 MK1032GAX, TOSHIBA MK4026GAX
1115 [PW] Drive database: added missing drives from Western Digital Caviar
1116 SE (Serial ATA) and WD Raptor families
1118 [CF] Windows: Added support for 3ware 9000 controllers using extended
1119 SMART functionality in new 3ware driver. This includes DEVICESCAN
1120 support for at most 2 controllers. Thanks to Greg de Valois from
1121 AMCC/3ware for new driver features, development support and
1122 hardware for testing.
1124 [SZ] smartd: Support HighPoint RocketRAID controller under GNU/linux
1126 [DG] [SCSI] First cut for '-l background' to show background scan
1129 [SZ] smartctl: Support HighPoint RocketRAID controller under GNU/linux
1131 [KS] C++ compile fixes for Solaris with a few cleanups.
1133 [BA] C++ compile fixes for Darwin (thanks to CF)
1135 [CF] Removed old *.c files (now in CVS Attic).
1137 [CF] Added changes for C++ to platform independent and Windows
1140 [BA] Tagged last .c Version with PRE_MOVE_TO_CPP. Copied *.c,v
1141 to *.cpp,v in CVS repository to preserve history of source
1142 files. Removed sm5_Darwin repository.
1144 [CF] smartctl: Added -n option to skip checks when disk is in
1147 [CF] Windows: Added alternate system call for power state check
1148 because the PASS THROUGH calls may spin up the disk.
1150 [CF] smartd: Modified power state logging to report state changes
1151 instead of standby condition.
1153 [CF] smartd: Ignore -n directive on scheduled self tests.
1155 [DG] [SCSI] Make start stop cycle counter log page decoding
1158 [DG] Modify smartctl (but not smartd) to detect probable ATA
1159 devices behind a SAT layer. In the absence of an explicit
1160 device type, change to device type 'sat'.
1162 [DG] Add indication that controller (device) type has been
1163 explicitly set. Preparation for automatic detection of
1164 'sat' device type unless user specifies a device type.
1166 [SS] NetBSD: Deliver strings from ata_identify_device properly
1167 on little- and big-endian platforms.
1169 [BA] Added published ANSI ATA-7 spec to list of recognized ATA
1172 [BA] Code janitor: added missing header strings for '-V' option.
1174 [DG] [SATA] Extend 'sat' device type to allow either 12 or 16 byte
1175 variant of the SAT ATA PASS THROUGH SCSI command. Syntax is
1176 '-d sat,<n>' where <n> can be 0, 12 or 16 . The ',<n>' part
1177 is optional. Currently defaults to 16 byte variant but that
1178 could be made platform or even device dependent.
1180 [DG] [SATA] Add new 'sat' device type for SATA disks behind a
1181 SCSI to ATA Translation (SAT) Layer (SATL). Uses the ATA
1182 PASS THROUGH (16) SCSI command thence the generic SCSI
1183 passthrough for each platform.
1185 [CF] Windows: Added script and make targets to create installer
1186 with NSIS (http://nsis.sourceforge.net/)
1188 [CF] Updated hostname and links for new SourceForge CVS service.
1190 [CF] smartd: Added '-W' directive to track temperature changes
1191 and warn if temperature limits are reached.
1193 [CF] Windows: Added IOCTL_ATA_PASS_THROUGH (Win2003, XP SP2)
1194 for commands unsupported by SMART_IOCTL. Added device
1195 specific options to select subset and ordering of the ATA
1196 IOCTLs actually used. These options are specified as
1197 modifiers of the device name (/dev/hd[a-j]:[saic]+)
1199 [CF] Windows: Added support for drives 4-7 (/dev/hd[e-h]) via
1200 SMARTVSE.VXD on Win9x/ME. Thanks to Dariusz Rzonca for
1203 [DG] [SCSI/SATA linux] from lk 2.6.17 SATA disk identification in
1204 libata will change. Expand LibAta detection to see old
1205 identifier and new variant (VPD page 0x83).
1207 [BA] Identified Attribute 190 for Western Digital disks. This
1208 stores temperature in Celsius, just like Attribute 194.
1209 But it has a failure threshold set to correspond to the
1210 maximum design operating temperature of the disk, which
1211 is 55 Celsius on the WD800JD drives that I studied.
1212 So if this Attribute has 'failed
1213 in the past' this means that the maximum disk operating
1214 temperature has been exceeded.
1216 [GK] Darwin: Add support for AHCI drivers found in Intel-based Macs.
1218 smartmontools 5.36 Stable Release
1220 [BA] Linux: smartd/smartctl issue syntax hints to user if 3ware
1221 disk controller present with EITHER 3ware OR AMCC vendor
1222 name, and user syntax incorrect.
1224 [BA] Update copyright dates to 2006.
1226 [DG] [SCSI] Loosen sanity check on Seagate/Hitachi factory information
1227 log page so it is not skipped on recent Seagate SCSI disks.
1229 [CF] Added command 'smartd -q showtests' to list test schedules.
1231 [CF] Added command 'smartctl -P showall MODEL [FIRMWARE]' to list
1232 database entries for specific drives and firmware.
1234 [PW] Automatically set -v 9,minutes and -v 194,unknown for Maxtor
1235 DiamondMax D540X-4G drives.
1237 [DG] [SCSI] suppress various outputs when data fails sanity checks.
1238 Correct 'last n error events' log page indexing.
1240 [DG] [SCSI] changed smartctl exit status to reflect any problems in
1241 the most recent 20 self test logs [Leandro Santi]
1243 [DG] [SCSI] Fix process return value when scsiGetSmartData() fails
1244 in smartctl [Leandro Santi]
1246 [BA] Updated docs and error message to reflect Linux libata
1247 support for smartmontools starting with the 2.6.15 kernel
1248 series. Also init script support for the 'tinysofa' release.
1250 [DG] [SCSI] Mask dpofua bit when changing mode pages. Fix failure
1251 of 'smartctl -l error'.
1253 [EM] Fixed a problem with FreeBSD and 3Ware 'twe' devices
1255 [CF] Fixed a regexp in knowndrives table, added regexp syntax check
1256 via 'smartctl -P showall'.
1258 [CF] Cygwin & Windows: Fixed memory leak in function calling
1259 IOCTL_IDE_PASS_THROUGH. Thanks to Fred Schmidt for the problem
1262 [CF] Cygwin: added cygrunsrv support and commands "install", "remove"
1263 and "status" to smartd.initd.
1265 [SS] Fix runtime problems on big-engian NetBSD platforms (patch provided
1268 [CF] Cygwin smartd: Open smartd.conf in textmode to allow use of
1271 [CF] Cygwin smartd: Added option '--service' to allow smartd running
1272 as windows service via cygrunsrv. Useful in conjunction with new
1273 syslogd support added in Cygwin 1.5.15.
1275 [CF] Windows: Added patch to avoid output of non-ascii timezone names.
1277 [EM] Incorporate various patches to provide TWE support and support for
1278 multiple 3Ware cards, Power Check Support, and FreeBSD 6.x support.
1279 Thanks to Rudolf Cejka, Frank Behrens, and Jung-uk Kim.
1281 [DG] Silence gcc 4.0.1 compile warning concerning the difference in
1282 "signedness" in pointer assignments. Changes to SCSI code
1285 [PW] Additions to knowndrives table: added missing drive from Quantum
1286 Fireball Plus LM series, added QUANTUM BIGFOOT TS10.0A, added
1287 ExcelStor J680 and J880, added Western Digital Caviar RE Serial ATA
1288 series, added missing drives from Western Digital Caviar SE series,
1289 added Seagate Momentus 4200.2 series, added missing drives from
1290 Maxtor DiamondMax 10 series, added Fujitsu MHG and MHH series, and
1291 added Hitachi Travelstar 5K100 series.
1293 [PW] Additions to knowndrives table: added Fujitsu MHU2100AT, added
1294 Fujitsu M1623TAU, added missing drives from Seagate Barracuda
1295 7200.8 series, added Seagate Momentus 5400.2 series, and added
1296 QUANTUM FIREBALL CR8.4A.
1298 [PW] Additions to knowndrives table: added missing drive from Maxtor
1299 MaxLine II series, added Maxtor DiamondMax 2880 Ultra ATA series,
1300 added Maxtor DiamondMax 17 VL series, added Hitachi Deskstar 7K80
1301 series, and added Hitachi Deskstar 7K400 series.
1303 [CF] Windows: Fixed unsupported 'smartctl -X' on Win2000/XP by using
1304 IOCTL_IDE_PASS_THROUGH instead.
1306 smartmontools 5.34 Stable Release [NOTE: never officially released]
1308 [CF] Cygwin & Windows smartd: Increased SCSI DEVICESCAN range
1309 from ASPI adapter 0-3 to 0-9. Added diagnostic messages.
1311 [CF] Windows smartd: Added ability to run .bat files via '-M exec'
1314 [CF] Cygwin smartd: Added FreeConsole() after fork() to avoid hang
1315 of terminated shell console window.
1317 [DG] [SCSI] Add code so 'smartctl -A' outputs the number of elements
1318 in the grown defect list. When this number is increasing a
1319 disk has problems. N.B. Similar logic should be added to smartd.
1321 [CF] Windows smartd: Fixed event handling to allow start of another
1322 smartd process when service is already running. Useful for testing
1323 service configuration changes in debug mode.
1325 [PW] Added following drives to knowndrives table: Western Digital Raptor
1326 family, Seagate Barracuda 7200.8 family, Maxtor DiamondMax 2160
1327 Ultra ATA and DiamondMax 10 families, Hitachi Travelstar E7K60
1328 family, Seagate Medalist 17240, 13030, 10231, 8420, and 4310,
1329 TOSHIBA MK4018GAP and MK6022GAX, ExcelStor Technology J360, and
1330 Western Digital Caviar AC14300.
1332 [PW] Added missing Fujitsu MHTxxxxAT and Seagate Barracuda 7200.7 drives
1333 to knowndrives table.
1335 [PW] Added QUANTUM FIREBALLP LM10.2 to knowndrives table. Thanks to
1336 Mike Fleetwood for submitting the patch.
1338 [KS] Solaris/SPARC: fixed not to disable automatic offline test and
1339 automatic save attributes incorrectly. Thanks to Roy Badami.
1341 [BA] Linux: smartd init script now recognizes 'trustix' distro.
1343 [DG] [SCSI] Medium and hardware errors were slipping through
1344 unreported. Fix linux SCSI sense reporting via SG_IO ioctl.
1346 [DG] [SCSI] Change lba of first failure in selftest output to
1347 decimal (was hex) to conform with ATA output.
1349 [GK] smartd: Detect most self-test failures even if the hour counter
1352 [BA] smartctl: list 'marvell' as option if user give invalid
1355 [CF] Windows: fixed SCSI timeout handling to allow long timeouts
1358 [CF] Fixed buffer overflow issues in printone() and safe_vsnprintf()
1359 which results in crash on -V option (at least on Windows).
1361 [DG] [SCSI] Add explicit timeouts to INQUIRY and REQUEST SENSE (that
1362 were missed in an earlier patch). Could have impacted freebsd.
1364 [DG] When linux detects a sata_via_libata disk suggest that user try
1365 '-d ata' (rather then '-d libata). Anticipate kernel change.
1367 [YD] Added OS/2 and eComStation platform support.
1369 [PW] Added Seagate U4 family, Fujitsu MHJ and MHK families, Seagate
1370 Barracuda 5400.1, QUANTUM FIREBALLP KX27.3, QUANTUM FIREBALLP KA10.1,
1371 and ExcelStor J340 to knowndrives table.
1373 [DG] [SCSI] After report of Hitachi IC35L073UCDY10 disks locking up
1374 on log page 0x7 (last n error events), check log page (and some
1375 others) is supported (via log page 0x0) before probing.
1377 [CF] Added safe_v?snprintf() for platforms using v?snprintf()
1378 with non standard behaviour on overflow (Windows, old Linux)
1380 [CF] smartd: Added message if check power mode spins up disk.
1382 [CF] Windows: Added support for READ_LOG on WinNT4 using undocumented
1383 pseudo SCSI command via IOCTL_SCSI_PASS_THROUGH.
1385 [CF] smartd: Added ',q' option for '-n' directive to suppress 'skipping
1386 checks' log message. This prevents a laptop disk from spinning up
1387 due to this message. Thanks to Rob MacLachlan and Manfred Schwarb
1388 for pointing out problem & solution.
1390 [CF] Windows: Added function get_os_version_str() to show OS flavor in
1393 [CF] Windows: Added function ata_identify_is_cached() to check for outdated
1394 SMART enabled bit in identify data.
1396 [CF] Windows: Added fix to prevent linkage of smartd specific win32 modules
1399 [PW] Added Fujitsu MPG3153AH, Hitachi Endurastar J4K20/N4K20 (formerly
1400 DK23FA-20J), Seagate Momentus family, and Maxtor Fireball 3 family
1401 to knowndrives table.
1403 [PW] Added missing Maxtor DiamondMax 16, Seagate Barracuda ATA IV, and
1404 Western Digital Caviar WDxxxAA/WDxxxBA drives to knowndrives table.
1406 [CF] Windows: Added ATA check power mode for smartd -n directive.
1408 [CF] Windows: Fixed use of new service status flag which causes hang
1409 of smartd service on WinNT4.
1411 [CF] Windows: Fixed error checking of IOCTL_IDE_PASS_THROUGH (used
1412 for READ_LOG on 2000/XP). Added some diagnostic messages on
1413 -r ataioctl[,2]. Thanks to Manfred Schwarb for bug report and testing.
1415 [BA] Fixed code bug that made it impossible to enable SMART on
1416 disks with failing health status. This would happen if the
1417 os_*.c author made STATUS and STATUS_CHECK work the same way.
1418 I have corrected this at a higher level; we now handle the
1419 case where STATUS and STATUS_CHECK are identical without
1422 [LW] Make os_linux.c/marvell_command_interface() always return 0 on STATUS.
1423 Needed for a disk having bad SMART status.
1425 [CF] smartctl: Added drive family printing.
1427 [CF] autogen.sh: Allow automake 1.9, added message if automake
1430 [BA] smartctl: use locale-specific separators for printing disk
1431 capacity. Also use AC_CHECK_HEADERS not AC_CHECK_HEADER in
1434 [BA] clean-up of #include structure so that -V options to smartd
1435 and smartctl work correctly. Please, don't #include header
1436 files into other header files.
1438 smartmontools 5.33 Experimental Release
1440 [BA] smartctl: ATA disks, if SMART ATTRIBUTE THRESHOLDS page has ID
1441 errors with some Attributes having NULL IDs, print Attribute
1442 info anyway (but issuing a warning to the user).
1444 [DG] [SCSI] Decode Last n error events log page; decode track following
1445 and positioning errors [Hitachi]
1447 [EM] FreeBSD: another tweak, __packed__ introduced in Version 5.0040
1449 [EM] Cleaner tweak of fixes for FreeBSD 4.x.
1451 [EM] Fix compilation errors under FreeBSD 4.x, as it is still using
1454 [EM] Remove 3ware/FreeBSD specific files and just include pieces we need
1456 [DG] Add logic in smartd to detect 3ware, Marvell controllers and SATA
1457 disks behind an ATA-SCSI simulator (in Linux). If specific device
1458 types are not given and they are picked in a general SCSI device
1459 scan then warn and skip.
1461 [GG] insert correct path to smartd into smartd's init script
1463 [BA] Changed all default paths in documentation to reflect /usr/local as
1464 default path prefix. This affects on-line man pages, primarily.
1466 [DS] Added support for OpenBSD
1468 [BA] Added another environment variable SMART_FULLMESSAGE set by
1469 the smartd mailing feature, and modified examplescripts/Example1
1472 [BA] Fixed potentially misleading messages of the form:
1475 [DG] emit warning if SATA disk detected using libata in Linux; then exit
1477 [PW] Added Seagate U10 family, Hitachi Travelstar 7K60, Fujitsu MHR2020AT,
1478 and QUANTUM FIREBALLP AS20.5 to knowndrives table.
1480 [DG] Detect 3ware and Marvell controllers from SCSI INQUIRY vendor string
1481 and suggest usage of appropriate '-d' argument in smartctl.
1483 [LW] Tested the RELEASE_5_33_WITH_MARVELL_SUPPORT branch on
1484 actual Marvell 88SX5041 hardware, with success.
1487 [BA] Fixed nasty DEVICESCAN bug
1489 [BA] Checked in RELEASE_5_33_WITH_MARVELL_SUPPORT branch with
1490 some Marvell support.
1492 [BA] Additional modifications of Ed's controller scheme. Fixed
1493 broken 3ware support under linux, problems with scanning
1494 devices in smartd, and other small problems.
1496 [CF] Added make targets to build formatted man pages (htmlman, txtman),
1497 Windows distribution (dist-win32) and MSVC6 config.h (config-vc6).
1499 [EM] Minor change to FreeBSD inclusion of 'twe' include files. Add
1500 code to check if they exising in /usr/include/sys to use those
1501 in preference to ones added here
1503 [EM] Very preliminary support attempt for 3Ware controllers under
1504 FreeBSD. Also, switched 'escalade_type/escalade_port' to
1505 'controler_type/controller_port' and moved away from
1506 'tryata/tryscsi' to using new 'controller*' variables to
1507 determine which controller type (ATA/SCSI/3Ware) to use.
1509 [GK] Added initscript support for Darwin.
1511 [CF] Windows smartd: Added ability to run smartd as a windows service,
1512 including new commands "smartd install ..." and "smartd remove"
1513 to install and remove the service registry entry.
1515 [BA] smartd: warn user if -s regexp regular expression contains
1516 characters other than 0123456789.*()|+?[-]{}:=SLCO since such
1517 characters are 'suspicous' and may indicate a poorly formed
1518 regexp. Extended regular expression gurus: can this list be
1521 [CF] Fixed bug in Windows smartd: Missing close of config file when
1522 configuration is reloaded by smartd daemon.
1524 [CF] Windows smartd: Added mail warning feature using the "Blat"
1525 (http://blat.sourceforge.net/) mailer as a default.
1527 [PW] Added Maxtor DiamondMax Plus 5120 Ultra ATA 33 series and TOSHIBA
1528 MK3017GAP to knowndrives table.
1530 [CF] Added fixes to build smartmontools on old Linux systems
1531 (libc < 6, Kernel 2.0.x).
1533 [BA] Added ATA minor version identity strings for latest ATA specification
1534 updates: ATA/ATAPI-7 T13 1532D revision 4a and ATA/ATAPI-6 published,
1535 ANSI INCITS 361-2002
1537 [PW] Added Hitachi Travelstar 5K80 family and Fujitsu MHTxxxxAH family to
1540 [EM] Fix up compilation under FreeBSD < 5.x
1542 [PW] Added QUANTUM FIREBALL EX3.2A and missing Western Digital Caviar SE
1543 drives to knowndrives table.
1545 [BA] Modified Hitachi Travelstar 80GN family regexp in drive database.
1546 Thanks to [GK/CF] for problem & solution.
1548 [GK] Added os_darwin.[ch]
1550 [PW] Added the following drives to the knowndrives table: IBM Travelstar
1551 48GH, 30GN, and 15GN family; IBM Deskstar 37GP and 34GXP family;
1552 Western Digital WDC WD272AA; Maxtor DiamondMax D540X-4D family;
1553 TOSHIBA MK2016GAP, MK2018GAP, MK2018GAS, MK2023GAS; and
1554 QUANTUM FIREBALL ST3.2A
1556 [BA] smartd/smarctl now print build HOST/OS information as part
1557 of startup slogan. This should make it slightly easier to
1558 read bug reports from users.
1560 [RZ] Fixed the DEVICESCAN to do what it was supposed to do - give
1561 error message unless scanning is in progress.
1563 [BA] Update documentation to describe 3ware character devices. Better
1564 error detection for missing/malfunctioning devices behind 3ware
1565 controllers. Now pack 3ware ioctl structures explicitly.
1567 [BA] For ATA devices that support LBA mode, print capacity as part
1570 [RZ] Made DEVICESCAN quiet about non-existing devices unless debug
1573 [DG] treat "unit attention" SCSI warning as try again in some contexts
1574 (test unit ready and mode sense)
1576 [BA] on drives that store max/min rather than min/max, get order
1577 correct in printing temp.
1579 [BA] fixed typo in 'smartctl -h' output. Thanks to Gabor Z. Papp.
1581 [BA] linux: clean-up to 3ware/AMCC support; dynamically create
1582 or fix /dev/tw[ae][0-15] device node entries if they don't
1583 exist or are incorrect. One can now use the character devices
1584 /dev/twe[0-15] OR /dev/sd? for 3ware 6000/7000/8000 series
1585 cards. One must use /dev/twa[0-15] for 3ware 9000 series cards.
1586 Note that selective self-tests now work via /dev/tw[ae] devices.
1587 Next step: documentation.
1589 [BA] linux: experimental "support" for 3ware/AMCC 9000 series
1590 controllers that use the 3w-9xxx driver. This will be in a
1591 state of flux for a few days. Note that this requires the
1592 character interface /dev/twa[0-15].
1594 [DG] linux: extend general SCSI OS interface to use the SG_IO ioctl. If
1595 not available, use the older SCSI_IOCTL_SEND_COMMAND ioctl.
1597 [KS] Solaris/x86: fixed system identification problem in configure
1598 script. Thanks to Stuart Swales.
1602 [BA] Update link to revised/updated IBM Deskstar Firmware
1604 [CF] Cygwin & Windows: Added missing ASPI manager initialization
1605 with GetASPI32SupportInfo(). Thanks to Nikolai SAOUKH for pointing
1606 this out and providing a patch.
1608 [BA] modified smartd init script to work on whitebox (thanks to
1611 [BA] removed (reverted) additional Attribute definitions from
1612 http://smart.friko.pl/attributes.php. All (or most?) of these
1613 appear to be return code values for the WD Digital Life Guard Utility.
1615 [PW] Added Seagate Medalist 17242, 13032, 10232, 8422, and 4312 to
1616 knowndrives table. Added missing Seagate U Series 5 drives.
1618 [PW] Added the following QUANTUM models to knowndrives table:
1619 FIREBALL EX6.4A, FIREBALLP AS10.2, FIREBALLP AS40.0, FIREBALL CR4.3A,
1620 FIREBALLP LM15, FIREBALLP LM30, and FIREBALLlct20 30
1622 [PW] Added missing Western Digital Protege drives to knowndrives table.
1624 [PW] Added Maxtor DiamondMax 40 ATA 66 series and DiamondMax 40 VL Ultra
1625 ATA 100 series to knowndrives table.
1627 [PW] Added the following Hitachi/IBM drives to knowndrives table:
1628 HITACHI_DK14FA-20B, Travelstar 40GNX series, Travelstar 4LP series,
1629 and Travelstar DK23XXB series. Added the missing Travelstar 80GN
1632 [PW] Added Fujitsu MPB series and MPG series to knowndrives table. Added
1633 the missing Fujitsu MHSxxxxAT drives.
1635 [KS] Solaris: added workaround for dynamic change of time-zone.
1637 [KS] Solaris: fixed problem that autogen.sh cannot detect absence of
1640 [BA] smartd: added time-zone bug information to man page.
1641 Reverted CF code for _WIN32 case.
1643 [CF] Cygwin & Windows: Added better error messages on IDE/ATA device
1646 [BA] added additional Attribute definitions from
1647 http://smart.friko.pl/attributes.php
1649 [BA] smartd: reworked TimeZone bug workaround so it is only invoked
1650 for glibc. Note: this might not be right -- a similar bug may
1651 exist in other platform's libcs.
1653 [DG] SCSI smartmontools documentation updated [2004/5/6]. See:
1654 http://smartmontools.sourceforge.net/smartmontools_scsi.html
1656 [CF] Windows: Fixed reset of TZ=GMT in glibc timezone bug workaround.
1660 [DG] move SCSI device temperature and start-stop log page output
1661 (smartctl) into --attributes section (was in --info section).
1663 [GG] change default installation location to /usr/local
1665 [CF] Cygwin smartd: Fixed crash on access of SCSI devices after fork().
1667 [PW] Added TOSHIBA MK4018GAS and the following Maxtor drive families
1668 to knowndrives table: DiamondMax D540X-4G, Fireball 541DX,
1669 DiamondMax 3400 Ultra ATA, DiamondMax Plus 6800 Ultra ATA 66.
1671 [PW] Added missing Maxtor DiamondMax 16, DiamondMax D540X-4K, and
1672 DiamondMax Plus 45 Ulta ATA 100 drives to knowndrives table.
1674 [PW] Added ExcelStor J240, Hitachi Travelstar 80GN family, Fujitsu
1675 MHTxxxxAT family, and IBM Deskstar 25GP and 22GXP families to
1678 [CF] Cygwin smartd: Added workaround for missing SIGQUIT via keyboard:
1679 To exit smartd in debug mode, type CONTROL-C twice.
1681 [BA] smartctl: printing of the selective self-test log is now
1682 controlled by a new option: -l selective
1684 [BA] Added entries for Samsung firmware versions -25 to -39 based
1685 on latest info about firmware bug fixes.
1687 [PW] Added Seagate U Series X family, Seagate U8 family, and Seagate
1688 Medalist 8641 family to knowndrives table.
1690 [CF] smartd: Added exit values 5/6 for missing/unreadable config file.
1692 [BA] smartd: now monitor the Current Pending Sector count (Attribute 197)
1693 and the Offline Pending Sector Count (Attribute 198). Log a
1694 warning (and send an email, if so configured) if the raw count
1695 is nonzero. These are controlled by new Directives: -C and -U.
1696 Currently they are enabled by default.
1698 [CF] Added option -c FILE, --configfile=FILE to smartd to specify
1699 an alternate configuration FILE or '-' for standard input.
1701 [KS] configure.in now searches for -lnsl and -lsocket for Solaris.
1703 [CF] Win32/native smartd: Added thread to combine several syslog output
1704 lines into one single event log entry.
1706 [CF] Win32 smartd: Added DEVICESCAN for SCSI/ASPI devices.
1708 [GG] Use gethostbyname() the get the DNS domain since getdomainname()
1709 returns the NIS domain when sending mails from smartd.
1711 [GG] smartd.init.in: pass smartd_opts to smartd on startup, read distribution
1712 specific configuration files if found
1714 [SS] smartctl: added NetBSD support for Selective Self-tests.
1716 [BA] smartd.conf example configuration file now has all examples
1717 commented out except for 'DEVICESCAN'.
1719 [CF] Win32/native smartd: Added ability to display warning "emails"
1720 as message box by "-m msgbox" directive. With "-m sysmsgbox",
1721 a system modal (always on top) message box is shown.
1723 [BA] smartctl: printing of self-test log for disks that support
1724 Selective self-testing now shows the status of the (optional)
1725 read-scan after the selective self test. Also, changed format
1726 in printing self-test log to print failing LBA in base 10 not
1727 base 16 (more compatible with kernel error messages). Also,
1728 in printing SMART error log, print timestamps in format
1729 days+hours+minutes+seconds.
1731 [CF] Win32 smartd: Added ability to log to stdout/stderr
1732 (-l local1/2). Toggling debug console still works
1733 if stdout is redirected.
1735 [BA] smartctl: selective self-test log, print current status
1736 in a more detailed way. Allow writing of selective self-test
1737 log provided that no other self-test is underway.
1739 [BA] Linux: eliminated dependency on kernel tree hdreg.h.
1741 [BA] smartctl: -l selftest option now prints Selective self-test
1742 log in addition to the normal self-test log.
1743 Added additional options (-t pending, -t afterselect) to
1744 control remaining Selective Self-test capabilities. Tested
1745 with several Maxtor disks. Modified error message printing
1746 so that munged option messages print at the end not the
1749 [CF] Added daemon support to Win32 native version of smartd.
1750 The daemon can be controlled by commands similar to initd
1751 scripts: "smartd status|stop|reload|restart|sigusr1|sigusr2".
1753 [CF] Added minor support for option "-l local[0-7]" to Win32 native
1754 (not Cygwin) version of smartd. If specified, the log output
1755 is written to file "./smartd[1-7]?.log" instead of event log.
1757 [BA] Added Selective Self-test to smartctl (-t selective,M-N).
1758 Currently only supported under Linux; Solaris, NetBSD, FreeBSD
1759 and Windows developers must add WRITE LOG functionality to
1762 [BA] Added workaround for an annoying glibc bug: if you change
1763 timezones, (eg, flying with a laptop from USA to Europe)
1764 localtime() does not notice this in a running
1765 executable, so time that appears in the system log (syslog!)
1766 will be incorrect. See
1767 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48184
1768 for additional examples of this bug.
1770 [DG] Set explicit timeouts for SCSI commands (most default to 6 seconds).
1771 Previously a 0 second timeout was meant to be interpreted as a
1772 default timeout but the FreeBSD port had a problem in this area.
1774 [CF] Fixed un-thread-safe exit signal handler for Win32
1776 [BA] Fixed un-thread-safe exit signal handler pointed out
1779 [BA] Changed configure script to eliminate warnings under
1780 Solaris from sys/int_type.h conflicts with int64.h
1781 Added header files for umask to smartd.c.
1783 [BA] Man page format change from Werner LEMBERG. " " changed to \&
1785 [CF] Added os_win32/syslogevt.* event message file tool for Win32
1786 smartd (native+cygwin). May also be useful for other cygwin
1787 programs writing to syslog().
1789 [CF] Added Win32 version of smartd
1791 [CF] Merged RELEASE_5_26_WIN32_BRANCH
1793 [BA] Made some changes to man page markup suggested by
1794 Richard Verhoeven to work around bugs in man2html.
1795 Tested not to break anything under Linux and Solaris.
1797 [CF] Moved PrintOut() from utility.c to smart{ctl,d}.c to avoid
1798 syslog() output of smartctl.
1800 [BA] Grew worried that some time-zone names could be very long (eg,
1801 Mitteleuropaische Zeit) and put date string lengths into a
1802 single macro in utility.c
1804 [EM] Updated os_freebsd.c to handle older versions of FreeBSD in a
1805 more appropriate/obvious fashion.
1807 [EM] Modified autogen.sh as FreeBSD installs automake 1.7 as
1808 'automake17' and NOT 'automake-1.7'
1812 [PW] Added QUANTUM FIREBALLlct15 30, QUANTUM FIREBALLlct20 40, and
1813 Maxtor 6Y060P0 (DiamondMax Plus 9 60GB) to knowndrives table.
1815 [PW] Added Maxtor MaXLine II family to knowndrives table (thanks to
1816 Brett Russ for submitting the patch).
1818 [BA] Added remaining read/write commands to detailed list of
1819 error log commands that have text descriptions of problem
1820 printed. For commands that support it, print number of failed
1821 sectors at problem LBA.
1823 [BA] Made SuSE section of smartd init script more SuSE 9 compatible.
1824 Thanks to Hans-Peter Jansen.
1826 [CF] Windows smartd: Added IDE/ATA device scan
1827 Added windows device names to smartctl.8.in, smartd.8.in
1829 [BA] smartctl/smartd: user-provided '-F samsung' and '-F samsung2'
1830 command line options/Directives did NOT over-ride preset values
1831 unless user specified '-P ignore'. Now they will always over-ride
1832 preset values from the database.
1834 [BA] Added error decoding for a few more READ and WRITE commands.
1836 [PW] Added Maxtor MaXLine Plus II, Western Digital Caviar SE (Serial ATA)
1837 series, Hitachi Deskstar 7K250 series, and Ultra ATA 66 models of
1838 the Maxtor DiamondMax Plus 40 series to knowndrives table.
1840 [BA] Added Maxtor Diamondmax 250 GB drives to database. Note that
1841 these model numbers are not listed in Maxtor documentation, but
1844 [BA] Removed the 'contact developers' phrase from the Samsung disk
1847 [PW] Added TOSHIBA MK2017GAP, IBM Deskstar 14GXP and 16GP series,
1848 Fujitsu MPC series, Seagate Barracuda ATA III family, and missing
1849 Seagate Barracuda U Series drives to knowndrives table
1851 [BA] smartd: wrong loglevel for message: Configuration file
1852 /etc/smartd.conf parsed. Changed to LOG_INFO from LOG_CRIT.
1853 Thanks to Emmanuel CHANTREAU for the report.
1855 [CF] Checked in development version of windows code base.
1857 smartmontools 5.29 (note: there was NO 5.28 release)
1859 [BA] smartd: configure script did not set correct directory to search for
1860 smartd.conf based on --prefix argument to ./configure. Thanks to
1861 GG for identifying the problem and fix.
1863 [BA] make clean now removes man pages (generated from *.in) files as well
1866 [EM] Correct copying of sense data in FreeBSD SCSI implementation. Thanks
1867 to Sergey Svishchev for noticing the bug.
1869 [BA] On solaris, wrong warning message if no ATA support. Warning message
1870 concerns 3ware controller, not ATA.
1872 [SS] Added SCSI support for NetBSD.
1874 [BA] on big-endian linux machines, fixed interpretation of HDIO_GET_IDENTITY
1875 to correctly identify ATAPI bit (was byte swapped). This should
1876 eliminate some SYSLOG noise if user queries a packet device (eg, CD
1879 [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives with
1880 A5AA/A6AA firmware. Thanks to Gerald Schnabel.
1882 [PW] Added Toshiba TOS MK3019GAXB SUN30G to knowndrives table
1884 [PW] Added Western Digital Caviar AC12500, AC24300, AC25100, AC36400,
1885 and AC38400 to knowndrives table
1887 [BA] When printing ATA error log, print the LBA at which READ
1888 or WRITE commands failed.
1890 [BA] Changed syntax of error message in smartctl
1892 [BA] Added versioning info (-V options to smartd/smartctl) for
1897 [KS] Added ATA/IDE support for Solaris/SPARC (ATA/IDE not yet for
1900 [BA] 3ware controllers: documented that one can monitor any of the
1901 physical disks from any of the 3ware /dev/sd? logical devices.
1902 Better warnings if querying a disk that does not exist.
1904 [PW] Added Hitachi Travelstar DK23DA series, Maxtor DiamondMax Plus 40
1905 series, Western Digital Caviar WDxxxAA, WDxxxBA, and WDxxxAB series
1906 to knowndrives table
1908 [BA] missing 'pragma pack' on ATA IDENTIFY DEVICE structure may have
1909 caused odd or incorrect results on 64-bit machines.
1911 [BA] smartctl/smartd allow inspection of self-test and error logs even
1912 if disk firmware claims that these don't exist. This is needed
1913 for some Maxtor disks whose firmware does not indicate log support
1914 even though the disk DOES support it.
1916 [BA] Improved porting instructions and documentation in os_generic.c
1918 [PW] Add Western Digital Caviar WD136AA and SAMSUNG SP40A2H (RR100-07
1919 firmware) to knowndrives table.
1921 [EM] FreeBSD: remove extra definition of FreeNonZero
1923 [BA] smartctl: the -q silent option was printing output for some
1924 error conditions. Fixed. Will rename relevant variables to help
1925 avoid these errors in the future.
1927 [SS] NetBSD port added.
1929 [BA] more sensible error messages for devfs and devfs-like systems.
1930 Instead of saying that the DIRECTORY does not exist, say that
1931 the DEVICE does not exist.
1933 [BA] smartd: added -n Directive, to prevent disk spin-up depending
1934 upon the power mode (SLEEP, STANDBY, or IDLE).
1936 [PW] Added Maxtor DiamondMax 20 VL series, Fujitsu MPF series,
1937 Maxtor DiamondMax 36 series, Maxtor DiamondMax 4320 series, and
1938 Maxtor DiamondMax 536DX series to knowndrives table.
1940 [BA] many warning messages now give the file name AND VERSION
1942 [BA] smartd: when the user provides multiple address recipients
1943 to the '-m' Directive in a comma-delineated list, the commas
1944 are stripped out before passing the list of addresses to the
1945 mailer program. (Thanks to Calin A. Culianu for pointing this out
1946 and providing a patch.)
1948 [BA] smartd: when the '-M exec path' Directive is used, any stdout OR
1949 stderr output from the executable "path" is assumed to indicate a
1950 problem, and is echoed to SYSLOG.
1952 [BA] Added all missing IBM/Hitachi Deskstar 180GXP models to knowndrives
1955 [PW] Added some missing IBM/Hitachi Deskstar 120GXP models to knowndrives
1958 [PW] Added IBM Travelstar 14GS to knowndrives table.
1960 [PW] Modified knowndrives table to match entire Hitachi Travelstar
1961 DK23BA and DK23EA series of drives (thanks to Norikatsu Shigemura
1962 for submitting the patch).
1964 [PW] Added some missing Fujitsu MPE series drives to knowndrives table.
1966 [PW] Added TOSHIBA MK4019GAX, TOSHIBA MK6409MAV, and QUANTUM
1967 FIREBALLlct15 20 to knowndrives table.
1969 [EM] Fixup example command output for FreeBSD
1971 [PW] Added Maxtor DiamondMax 80 family to knowndrives table.
1973 [EM] Catch up FreeBSD code to switch PROJECTHOME to PACKAGE_HOMEPAGE
1976 [BA] smartd: now watches stdout/stderr when trying to run mail, mailx
1977 or mail warning script, and reports any output to SYSLOG. This
1978 gives a clearer error message if something is wrong.
1980 [BA] smartd: Solaris init script modified to accomodate grep that
1981 lacks '-q' quiet option. Also check for running process to kill
1984 [PW] Added some missing Seagate Barracuda 7200.7 and 7200.7 Plus drives
1985 to knowndrives table.
1987 [PW] Added Maxtor DiamondMax Plus 60 family and Seagate U Series 5 20413
1988 to knowndrives table.
1990 [BA] smartd: under Solaris, made default mailer be 'mailx' not
1991 'mail', since Solaris 'mail' does not accept a '-s' argument.
1992 A workaround for Solaris users of earlier versions is to
1993 have '-M exec /bin/mailx' in their smartd.conf config file.
1995 [DG] some SCSI controllers don't like odd length transfers so make
1996 sure LOG SENSE transfers are rounded up to an even number when
1997 and odd length is reported (i.e. there is a double fetch, the
1998 first to find the length, the second gets the data)
2000 [BA] smartd man pages: under Solaris, correct section numbers in the
2003 [KS/BA] smartd man page: describe how to set Solaris syslog.conf
2004 file to catch all messages. Give correct Solaris SYSLOG default
2005 path /var/adm/messages in man pages.
2007 [BA] smartd: incorporated Debian startup script submitted by user.
2009 [BA] smartctl: modified printing of self-test log entry number. Seagate
2010 firmware can leave 'holes' in the self-test log while a test is
2011 actually running. We now print entry numbers consistently in this
2012 case, not assuming that entries are contiguous.
2014 [PW] Added QUANTUM FIREBALL CX10.2A and Western Digital Caviar AC23200L
2015 to knowndrives table.
2017 [PW] Added QUANTUM FIREBALLlct20 20 to knowndrives table.
2019 [PW] Added Maxtor DiamondMax Plus D740X family to knowndrives table.
2021 [PW] Added IBM Travelstar 32GH, 30GT, and 20GN family to knowndrives
2024 [BA] Slackware init script modified to search for /etc/slackware-version
2025 rather than /etc/slackware-release.
2027 [PW] Added Seagate Barracuda ATA II family and TOSHIBA MK4019GAXB to
2030 [GG] explain howto use autoreconf in autogen.sh
2032 [KS] Makefile.am/configure.in: changed manual page sections for
2035 [BA] smartd: reduced number of scheduled self-test messages if
2036 test already run in current hour.
2038 [PW] Added Maxtor DiamondMax Plus 8 family to knowndrives table.
2040 [BA] linux: check for linux/hdreg.h. If it's there, use it. If
2041 not, provide the necessary definitions ourselves.
2043 [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives
2044 with TXAOA5AA firmware
2046 [PW] Added IBM Travelstar 25GS, 18GT, and 12GN family to knowndrives
2049 [PW] Added IBM/Hitachi Travelstar 60GH & 40GN family to knowndrives
2052 [BA] smartd: made '-s' Directive more efficient. Now store
2053 compiled regex, and re-use. If device lacks certain self-test
2054 capabilities, track it and don't try again.
2056 [BA] smartd: made memory allocation for device lists completely
2057 dynamic (eliminating compile-time maximum length constants).
2059 [PW] Removed warning for SAMSUNG SP0802N with TK100-23 firmware
2061 [PW] Added Seagate Barracuda ATA IV family to knowndrives table.
2063 [BA] smartd: reduce per-device memory footprint by making
2064 mail-warning info dynamically allocated. Also remove
2065 potential memory leak if use has -m Directive twice and
2066 keeps reloading the config file (highly unlikely this would
2069 [DG] smartd: added SCSI scheduled self-tests (Background
2072 [BA] smartd: can now run scheduled offline immediate and
2073 self-tests. See man page and -s Directive for details.
2075 [GG] don't include manpages in make-dist-tarball.
2077 [BA] smartctl: on-line examples given with -h are now correct
2078 for solaris and linux, but wrong for freebsd. Ed?
2080 [BA] smartd: man page now explains device scanning for solaris as
2081 well as linux and freebsd.
2083 [BA] smartd/smartctl: man pages now report correct CVS tag release
2084 date, and executables '-V' options reports more build info.
2088 [BA] Improved user messages that appear from 'make install'
2090 [PW] Removed warning for SAMSUNG SP1213N with firmware TL100-23
2092 [BA] incorporated SuSE init script from user.
2094 [DG] if SCSI device is read only, then open it read only.
2096 [BA] when compiled on non-supported system (NOT linux, freebsd or solaris) then
2097 the run-time error messages now clearly say 'your system is not supported'
2098 and give clear directions.
2100 [BA] ./configure script now works correctly on SuSE linux boxes
2102 [BA] minor improvements to man pages
2104 [BA] simplified detection of packet (ATAPI, CD) devices.
2106 [BA] init script (redhat, mandrake, yellowdog) now uses correct
2107 strings for translation and is slightly more standard.
2109 [DG] smartctl: output scsi Seagate vendor pages for disks (not tapes)
2113 Note: there was no '5.24' release. From this point on, even numbered
2114 releases will be 'stable' ones and odd numbered releases will be
2115 unstable/testing/development ones.
2117 [DG] smartd/smartctl: changed scsiClearControlGLTSD() to
2118 scsiSetControlGLTSD() with an 'enabled' argument so '-S on'
2119 and '-S off' work for SCSI devices (if changing GLTSD supported).
2121 [BA] smartd/smartctl: wired in scsiClearControlGLTSD(). Could still
2122 use a corresponding Set function. Left stubs for this purpose.
2124 [DG] scsicmds: added scsiClearControlGLTSD() [still to be wired in]
2126 [BA] smartctl: make SCSI -T options behave the same way as the
2129 [DG] smartctl: output scsi transport protocol if available
2131 [DG] scsi: stop device scan in smartd and smartctl if badly formed
2132 mode response [heuristic to filter out USB devices before we
2133 (potentially) lock them up].
2135 [BA] smartd: deviceclose()->CloseDevice(). Got rid of SCSIDEVELOPMENT
2136 macro-enabled code. Added -W to list of gcc specific options to
2137 always enable. Made code clean for -W warnings.
2139 [PW] Added Maxtor DiamondMax VL 30 family to knowndrives table.
2141 [DG] scsi: add warning (when '-l error' active) if Control mode page
2142 GLTSD bit is set (global disable of saving log counters)
2144 [DG] scsi: remember mode sense cmd length. Output trip temperature
2145 from IE lpage (IBM extension) when unavailable from temp lpage.
2147 [BA] smartd: for both SCSI and ATA now warns user if either
2148 the number of self-test errors OR timestamp of most
2149 recent self-test error have increased.
2151 [DG] smartctl: output Seagate scsi Cache and Factory log pages (if
2152 available) when vendor attributes chosen
2154 [DG] smartd: add scsiCountFailedSelfTests() function.
2156 [DG] Do more sanity checking of scsi log page responses.
2158 [BA] smartd: now warns user if number of self-test errors has
2159 increased for SCSI devices.
2161 [BA] smartd: warn user if number of ATA self-test errors increases
2162 (as before) OR if hour time stamp of most recent self-test
2165 [DG] More checks for well formed mode page responses. This has the side
2166 effect of stopping scans on bad SCSI implementations (e.g. some
2167 USB disks) prior to sending commands (typically log sense) that
2170 [PW] Added Western Digital Caviar family and Caviar SE family to
2173 [BA] smartd: added -l daemon (which is the default value if -l
2176 [PW] Added Seagate Barracuda ATA V family to knowndrives table.
2178 [BA] smartd: added additional command line argument -l FACILITY
2179 or --logfacility FACILITY. This can be used to redirect
2180 messages from smartd to a different file than the one used
2181 by other system daemons.
2183 [PW] Added Seagate Barracuda 7200.7, Western Digital Protege WD400EB,
2184 and Western Digital Caviar AC38400 to knowndrives table.
2186 [BA] smartd: scanning should now also work correctly for
2187 devfs WITHOUT traditional links /dev/hd[a-t] or /dev/sd[a-z].
2189 [PW] Added Maxtor 4W040H3, Seagate Barracuda 7200.7 Plus,
2190 IBM Deskstar 120GXP (40GB), Seagate U Series 20410,
2191 Fujitsu MHM2100AT, MHL2300AT, MHM2150AT, and IBM-DARA-212000
2192 to knowndrives table.
2194 [PW] Added remaining Maxtor DiamondMax Plus 9 models to knowndrives
2197 [EM] smartd: If no matches found, then return 0, rather than an error
2198 indication, as it just means no devices of the given type exist.
2199 Adjust FreeBSD scan code to mirror Linux version.
2201 [BA] smartd: made device scan code simpler and more robust. If
2202 too many devices detected, warn user but scan as many
2203 as possible. If error in scanning, warn user but don't
2206 [EM] smartd: To keep as consistent as possible, migrate FreeBSD
2207 devicescan code to also use glob(3). Also verified clean
2208 compile on a 4.7 FreeBSD system.
2210 [BA] smartd: Modified device scan code to use glob(3). Previously
2211 it appeared to have trouble when scanning devices on an XFS
2212 file system, and used non-public interface to directory
2213 entries. Problems were also reported when /dev/ was on an
2214 ext2/3 file system, but there was a JFS partition on the same
2217 [BA] Clearer error messages when device scanning finds no suitable
2220 [EM] FreeBSD: Fixup code to allow for proper compilation under
2225 [BA] smartd: didn't close file descriptors of ATA packet devices
2226 that are scanned. Fixed.
2228 [BA] Added reload/report targets to the smartmontools init script.
2229 reload: reloads config file
2230 report: send SIGUSR1 to check devices now
2234 [EM] Fix compile issues for FreeBSD < 5-CURRENT.
2236 [PW] Added Fujitsu MHM2200AT to knowndrives table.
2238 [BA] To help catch bugs, clear ATA error structures before all
2239 ioctl calls. Disable code that attempted to time-out on SCSI
2240 devices when they hung (doesn't work).
2242 [BA] Documented STATUS/ERROR flags added by [PW] below.
2244 [BA] Improved algorithm to recognize ATA packet devices. Should
2245 no longer generate SYSLOG kernel noise when user tries either
2246 smartd or smartctl on packet device (CD-ROM or DVD). Clearer
2247 warning messages from smartd when scanning ATA packet device.
2249 [PW] Added TOSHIBA MK4025GAS to knowndrives table.
2251 [PW] Added a textual interpretation of the status and error registers
2252 in the SMART error log (ATA). The interpretation is
2253 command-dependent and currently only eight commands are supported
2254 (those which produced errors in the error logs that I happen to
2257 [BA] added memory allocation tracking to solaris code.
2258 Fixed solaris signal handling (reset handler to default
2259 after first call to handler) by using sigset. Added
2260 HAVE_SIGSET to configure.in
2262 [CD] solaris port: added SCSI functionality to solaris
2265 [BA] smartd: attempt to address bug report about smartd
2266 hanging on USB devices when scanning:
2267 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=107615
2268 Set a timeout of SCSITIMEOUT (nominally 7 seconds) before
2271 [EM] smartd: DEVICESCAN will follow links in a devfs filesystem and
2272 make sure the end point is a disc. Update documentation, added
2273 note about FreeBSD scanning
2275 [BA] smartd: DEVICESCAN also looks for block devices in
2276 /dev. Updated documentation. Now scans for up to
2277 20 ATA devices /dev/hda-t rather than previous 12
2280 [EM] smartd: mirror the FreeBSD DEVICESCAN logic for Linux,
2281 so that smartd now scans only devices found in /dev/. Also,
2282 make utility memory functions take a line number and file so
2283 that we report errors with the correct location.
2285 [GG] add a note about Debian bug #208964 to WARNINGS.
2287 [BA] smartctl: -T verypermissive option broken. Use
2288 -T verpermissive until the next release, please.
2290 [BA] Syntax mods so that code also compiles on Solaris using
2291 Sun Workshop compiler. Need -xmemalign 1i -xCC flags
2296 [DK] Changed configure.in so -Wall is only included if gcc
2297 is used (this is a gcc specific flag) and -fsignedchar
2298 is not used at all (this is a gcc specific compiler
2301 [BA] Modifications so that code now compiles under solaris. Now
2302 all that's needed (:-) is to fill in os_solaris.[hc]. Added
2303 os_generic.[hc] as guide to future ports. Fixed -D option
2304 of smartd (no file name). Modified -h opt of smartd/smartctl
2305 to work properly with solaris getopt().
2307 [EM] Update MAN pages with notes that 3ware drives are NOT supported
2308 under FreeBSD. Cleanup FreeBSD warning message handling.
2310 [EM] FreeBSD only: Fix first user found bug....I guess I was making
2311 the wrong assumption on how to convert ATA devnames to
2312 channel/unit numbers.
2314 [EM] Allow for option --enable-sample to append '.sample' to installed
2315 smartd.conf and rc script files. Also, let rc script shell setting
2316 be determined by configure
2318 [EM] Minor autoconf update to include -lcam for FreeBSD
2320 [EM] Add conditional logic to allow FreeBSD to compile pre-ATAng.
2322 Add some documentation to INSTALL for FreeBSD.
2324 [EM] Implement SCSI CAM support for FreeBSD. NOTE: I am not an expert
2325 in the use of CAM. It seems to work for me, but I may be doing
2326 something horribly wrong, so please exercise caution.
2328 [EM] Switch over to using 'atexit' rather than 'on_exit' routine. This also
2329 meant we needed to save the exit status elsewhere so our 'Goodbye'
2330 routine could examine it.
2332 [EM] Move the DEVICESCAN code to os specific files. Also moved some of the
2333 smartd Memory functions to utility.c to make available to smartctl.
2335 [EM] Code janitor work on os_freebsd.c.
2337 [EM] Added os_freebsd.[hc] code. Additional code janitor
2340 [BA] Code janitor working, moving OS dependent code into
2343 [GG] conditionally compile os_{freebsd,linux}.o depending on
2346 [PW] Print estimated completion time for tests
2348 [BA] Added -F samsung2 flag to correct firmware byte swap.
2349 All samsung drives with *-23 firmware revision string.
2353 [GG] Fixed broken Makefile.am (zero length smartd.conf.5
2354 was being created), fix broken uninstall/distcheck targets
2356 [FM] Improved Slackware init script added to /etc/smartd.initd
2358 smartmontools 5.19 [NOTE CHANGE OF RELEASE NUMBERING]
2360 [BA] smartctl: added '-T verypermissive' option which is
2361 equivalent to giving '-T permissive' many times.
2363 [BA] Try harder to identify from IDENTIFY DEVICE structure
2364 if SMART supported/enabled. smartd now does a more
2365 thorough job of trying to assess this before sending
2366 a SMART status command to find out for sure.
2368 [BA] smartctl: it's now possible to override the program's
2369 guess of the device type (ATA or SCSI) with -d option.
2371 [BA] try hard to avoid sending IDENTIFY DEVICE to packet
2372 devices (CDROMS). They can't do SMART, and this generates
2373 annoying syslog messages. At the same time, identify type
2376 [BA] smartctl: Can now use permissive option more
2377 than once, to control how far to go before giving up.
2379 [BA] smartd: if user asked to monitor either error or self-test
2380 logs (-l error or -l selftest) WITHOUT monitoring any of the
2381 Attribute values, code will SEGV. For 5.1-18 and earlier,
2382 a good workaround is to enable Auto offline (-o on).
2384 [BA] smartctl: If enable auto offline command given, update auto
2385 offline status before printing capabilities.
2387 [GG] Make autotools build the default, remove autotools.diff
2389 [GG] Add auto{conf,make} support, not enabled by default.
2391 [BA] Eliminated #include <linux/hdreg.h> from code. This
2392 should simplify porting to solaris, FreeBSD, etc. The
2393 only linux-specific code is now isolated to three routines,
2394 one for SCSI, one for Escalade, one for ATA.
2396 smartmontools 5.1-18
2398 [BA] smartd: fixed serious bug - Attributes not monitored unless
2399 user told smartd to ignore at least one of them!
2401 smartmontools 5.1-17
2403 [BA] Default runlevels for smartd changed from 3 and 5 to
2406 [BA] Removed as much dynamic memory allocation as possible from
2407 configuration file parsing. Reloading config file, even in
2408 presence of syntax errors etc. should not cause memory leaks.
2410 [PW] It is no longer permissible for the integer part (if any) of
2411 arguments to --report and --device to be followed by non-digits.
2412 For example, the "foo" in --report=ioctl,2foo was previously
2413 ignored, but now causes an error.
2415 [BA] smartd: added -q/--quit command line option to specify
2416 under what circumstances smartd should exit. The old
2417 -c/--checkonce option is now obsoleted by this more
2418 general-purpose option.
2420 [BA] smartd now responds to a HUP signal by re-reading its
2421 configuration file /etc/smartd.conf. If there are
2422 errors in this file, then the configuration file is
2423 ignored and smartd continues to monitor the devices that
2424 it was monitoring prior to receiving the HUP signal.
2426 [BA] Now correctly get SMART status from disks behind 3ware
2427 controllers, thanks to Adam Radford. Need 3w-xxxx driver
2428 version 1.02.00.037 or later. Previously the smartmontools
2429 SMART status always returned "OK" for 3ware controllers.
2431 [BA] Additional work on dynamic memory allocation/deallocation.
2432 This should have no effect on smartctl, but clears that way
2433 for smartd to dynamically add and remove entries. It should
2434 also now be easier to modify smartd to re-read its config
2435 file on HUP (which is easy) without leaking memory (which is
2436 harder). The philosophy is that memory for data structures in
2437 smartd is now allocated only on demand, the first time it
2440 [BA] smartd: finished cleanup. Now use create/rm functions for
2441 cfgentries and dynamic memory allocation almost everywhere.
2442 Philosophy: aggresively try and provoke SEGV to help find
2445 [BA] Added SAMSUNG SV0412H to knowndrives table.
2447 [BA] smartd: if DEVICESCAN used then knowndrives table might not set
2448 the -v attributes correctly -- may have been the same for all
2449 the drives. Cleaned up some data structures and memory
2450 allocation to try and ensure segvs if such problems are
2453 [BA] Now allow -S on and -o on for the 3ware device type. For these
2454 commands to be passed through, the stock 3ware 3w-xxxx driver
2455 must be patched (8 lines). I'll post a patch on the smartmontools
2456 home page after it's been tested by a few other people and 3ware
2457 have had a chance to look it over.
2459 smartmontools-5.1-16
2461 [BA] smartd - can now monitor ATA drives behind 3ware controllers.
2463 [BA] smartd - changed some FATAL out of memory error messages from
2464 syslog level LOG_INFO to LOG_CRIT.
2466 [BA] smartctl - added code to look at ATA drives behind 3ware RAID
2467 controllers using the 3w-xxxx driver. Note that for technical
2468 reasons related to the 3w-xxxx driver, the "Enable Autosave",
2469 "Enable Automatic Offline" commands are not implemented.
2470 I will add this to smartd shortly.
2472 [BA] smartd - modified sleep loop, so that smartd no longer comes
2473 on the run queue every second. Instead, unless interrupted,
2474 it sleeps until the next polling time, when it wakes up. Now
2475 smartd also tries to wake up at exactly the right
2476 intervals (nominally 30 min) even if the user has been sending
2479 [GG] add Fujitsu MHN2300AT to vendoropts_9_seconds.
2481 [EB] Fujitsu change in knowndrives ... match the whole MPD and
2482 MPE series for vendoropts_9_seconds.
2484 [BA] smartd bug, might cause segv if a device can not be opened. Was
2485 due to missing comma in char* list. Consequence is that email
2486 failure messages might have had the wrong Subject: heading for
2487 errorcount, FAILEDhealthcheck, FAILEDreadsmartdata, FAILEDreadsmarterrorlog,
2488 FAILEDreadsmartsefltestlog, FAILEDopendevice were all displaced by
2489 one. And FAILEDopendevice might have caused a segv if -m was being
2490 used as a smartd Directive.
2492 smartmontools-5.1-15
2494 [BA] Cleaned up smartmontools.spec so that upgrading, removing
2495 and other such operations correctly preserve running behavior
2496 and booting behavior of smartd.
2498 [BA] Improved formatting of ATA Error Log printout, and added
2499 listing of names of commands that caused the error. Added
2500 obsolete ATA-4 SMART feature commands to table, along with
2501 obsolete SFF-8035i SMART feature command.
2503 [PW] Added atacmdnames.[hc], which turn command register &
2504 feature register pairs into ATA command names.
2506 [BA] Added conveyance self-test. Some code added for selective
2507 self-tests, but #ifdefed out.
2509 [BA] Modified smartd exit status and log levels. If smartd is
2510 "cleanly" terminated, for example with SIGTERM, then its
2511 exit messages are now logged at LOG_INFO not LOG_CRIT
2513 [BA] Added Attribute IDs (Fujitsu) 0xCA - 0xCE. This is decimal
2514 202-206. Added -v switches for interpretation of Attributes
2517 [BA] Made smartmontools work with any endian order machine for:
2518 - SMART selftest log
2519 - SMART ATA error log
2520 - SMART Attributes values
2521 - SMART Attributes thesholds
2522 - IDENTIFY DEVICE information
2524 Smartmontools is now free of endian bias and works correctly
2525 on both little- and big-endian hardware. This has been tested by
2526 three independent PPC users on a variety of ATA and SCSI hardware.
2528 [DG] Check that certain SCSI command responses are well formed. If
2529 IEC mode page response is not well formed exit smartctl. This
2530 is to protect aacraid. smartd should ignore a aacraid device.
2532 smartmontools-5.1-14
2534 [BA] smartctl: added column to -A output to show if Attributes are
2535 updated only during off-line testing or also during normal
2538 smartmontools-5.1-13
2540 [BA] smartd: attempt to enable/disable automatic offline testing even
2541 if the disk appears not to support it. Now the same logic
2544 [BA] Added definition of Attribute 201, soft read error rate.
2546 [BA] Added IBM/Hitachi IC35L120AVV207-1 (GXP-180) and corresponding
2547 8MB Cache GXP-120 to drive database.
2549 [BA] smartd: if DEVICESCAN Directive used in smartd.conf, and
2550 -I, -R or -r Directives used in conjunction with this, got
2551 segv errors. Fixed by correcting memory allocation calls.
2553 [BA] smartd: enable automatic offline testing was broken due
2554 to cut-and-paste error that disabled it instead of
2555 enabling it. Thanks to Maciej W. Rozycki for pointing
2556 out the problem and solution.
2558 [BA] Fixed "spelling" of some Attribute names to replace spaces
2559 in names by underscores. (Fixed field width easier for awk
2562 [BA,GF] Added mods submitted by [GF] to support Attribute 193 being
2563 load/unload cycles. Add -v 193,loadunload option, useful for
2564 Hitachi drive DK23EA-30, and add this drive to knowndrive.c
2565 Add meaning of attribute 250 : Read error retry rate
2567 smartmontools-5.1-12
2569 [BA] Added another entry for Samsung drives to knowndrive table.
2571 [DG] Refine SCSI log sense command to do a double fetch in most cases
2572 (but not for the TapeAlert log page). Fix TapeAlert and Self Test
2573 log page response truncation.
2575 [PW] Added 'removable' argument to -d Directive for smartd. This indicates
2576 that smartd should continue (rather than exit) if the device does not
2577 appear to be present.
2579 [BA] Modified smartmontools.spec [Man pages location] and
2580 smartd.initd [Extra space kills chkconfig!] for Redhat 6.x
2581 compatibility (thanks to Gerald Schnabel).
2583 smartmontools-5.1-11
2585 [EB] Add another Fujitsu disk to knowndrives.c
2587 [GG] match for scsi/ and ide/ in case of devfs to exclude false postives
2589 [BA] If SCSI device listed in /etc/smartd.conf fails to open or do
2590 SMART stuff correctly, or not enough space
2591 to list all SCSI devices, fail with error unless
2592 -DSCSIDEVELOPMENT set during compile-time.
2594 [BA] Added automatic recognition of /dev/i* (example: /dev/ide/...)
2597 [DG] Add "Device type: [disk | tape | medium changer | ...] line to
2598 smartctl -i output for SCSI devices.
2600 [PW] Fixed bug in smartd where test email would be sent regularly (for
2601 example, daily if the user had specified -M daily) instead of just
2604 [KM] More TapeAlert work. Added translations for media changer
2605 alerts. TapeAlert support reported according to the log page
2606 presence. ModeSense not attempted for non-ready tapes (all
2607 drives do not support this after all). Get peripheral type from
2608 Inquiry even if drive info is not printed. Add QUIETON()
2609 QUIETOFF() to TapeAlert log check.
2611 [BA] Stupid bug in atacmds.c minor_str[] affected ataVersionInfo().
2612 Two missing commas meant that minor_str[] had two few elements,
2613 leading to output like this:
2614 Device Model: Maxtor 6Y120L0
2615 Serial Number: Y40BF74E
2616 Firmware Version: YAR41VW0
2617 Device is: Not in smartctl database [for details use: -P showall]
2619 ATA Standard is: 9,minutes
2621 Missing commas inserted.
2623 [BA] Fixed smartd bug. On device registration, if ATA device did
2624 not support SMART error or self-test logs but user had asked to
2625 monitor them, an attempt would be made to read them anyway,
2626 possibly generating "Drive Seek" errors. We now check that
2627 the self-test and error logs are supported before trying to
2628 access them the first time.
2630 [GG/BA] Fixed bug where if SMART ATA error log not supported,
2631 command was tried anyway. Changed some error printing to use
2634 [GG] Makefile modifications to ease packaging
2636 [DG] Did work for TapeAlerts (SCSI). Now can detect /dev/nst0 as a
2637 SCSI device. Also open SCSI devices O_NONBLOCK so they don't
2638 hang on open awaiting media. The ATA side should worry about
2639 this also: during a DEVICESCAN a cd/dvd device without media
2640 will hang. Added some TapeAlert code suggested by Kai Makisara.
2642 smartmontools-5.1-10
2644 [PW] Extended the -F option/Directive to potentially fix other firmware
2645 bugs in addition to the Samsung byte-order bug. Long option name is
2646 now --firmwarebug and the option/Directive accepts an argument
2647 indicating the type of firmware bug to fix.
2649 [BA] Fixed a bug that prevented the enable automatic off-line
2650 test feature from enabling. It also prevented the enable Attribute
2651 autosave from working. See CVS entry for additional details.
2653 [PW] Modified the -r/--report option (smartctl and smartd) to allow the
2654 user to specify the debug level as a positive integer.
2656 [BA] Added --log directory option to smartctl. If the disk
2657 supports the general-purpose logging feature set (ATA-6/7)
2658 then this option enables the Log Directory to be printed.
2659 This Log Directory shows which device logs are available, and
2660 their lengths in sectors.
2662 [PW] Added -P/--presets option to smartctl and -P Directive to smartd.
2664 [GG] Introduce different exit codes indicating the type of problem
2665 encountered for smartd.
2667 [DG] Add non-medium error count to '-l error' and extended self test
2668 duration to '-l selftest'. Get scsi IEs and temperature changes
2669 working in smartd. Step over various scsi disk problems rather
2670 than abort smartd startup.
2672 [DG] Support -l error for SCSI disks (and tapes). Output error counter
2675 [BA] Added -F/--fixbyteorder option to smartctl. This allows us to read
2676 SMART data from some disks that have byte-reversed two- and four-
2677 byte quantities in their SMART data structures.
2679 [BA] Fixed serious bug: the -v options in smartd.conf were all put
2680 together and used together, not drive-by-drive.
2682 [PW] Added knowndrives.h and knowndrives.c. The knowndrives array
2683 supersedes the drivewarnings array.
2685 [GG] add {-p,--pidfile} option to smartd to write a PID file on
2686 startup. Update the manpage accordingly.
2688 [DG] Fix scsi smartd problem detecting SMART support. More cleaning
2689 and fix (and rename) scsiTestUnitReady(). More scsi renaming.
2691 [BA] Fixed smartd so that if a disk that is explictily listed is not
2692 found, then smartd will exit with nonzero status BEFORE forking.
2693 If a disk can't be registered, this will also be detected before
2694 forking, so that init scripts can react correctly.
2696 [BA] Replaced all linux-specific ioctl() calls in atacmds.c with
2697 a generic handler smartcommandhandler(). Now the only routine
2698 that needs to be implemented for a given OS is os_specific_handler().
2699 Also implemented the --report ataioctl. This provides
2700 two levels of reporting. Using the option once gives a summary
2701 report of device IOCTL transactions. Using the option twice give
2702 additional info (a printout of ALL device raw 512 byte SMART
2703 data structures). This is useful for debugging.
2705 [DG] more scsi cleanup. Output scsi device serial number (VPD page
2706 0x80) if available as part of '-i'. Implement '-t offline' as
2707 default self test (only self test older disks support).
2709 [BA] Changed crit to info in loglevel of smartd complaint to syslog
2710 if DEVICESCAN enabled and device not found.
2712 [BA] Added -v 194,10xCelsius option/Directive. Raw Attribute number
2713 194 is ten times the disk temperature in Celsius.
2715 [DG] scsicmds.[hc] + scsiprint.c: clean up indentation, remove tabs.
2716 Introduce new intermediate interface based on "struct scsi_cmnd_io"
2717 to isolate SCSI generic commands + responses from Linux details;
2718 should help port to FreeBSD of SCSI part of smartmontools.
2719 Make SCSI command builders more parametric.
2723 [BA] smartctl: if HDIO_DRIVE_TASK ioctl() is not implemented (no
2724 kernel support, then try to assess drive health by examining
2725 Attribute values/thresholds directly.
2727 [BA] smartd/smartctl: added -v 200,writeerrorcount option/Directive
2730 [BA] smartd: Now send email if any of the SMART commands fails,
2731 or if open()ing the device fails. This is often noted
2732 as a common disk failure mode.
2734 [BA] smartd/smartctl: Added -v N,raw8 -v N,raw16 and -v N,raw48
2735 Directives/Options for printing Raw Attributes in different
2738 [BA] smartd: Added -r ID and -R ID for reporting/tracking Raw
2739 values of Attributes.
2741 [BA] smartd/smartctl: Changed printing of spin-up-time attribute
2742 raw value to reflect current/average as per IBM standard.
2744 [BA] smartd/smartctl: Added -v 9,seconds option for disks which
2745 use Attribute 9 for power-on lifetime in seconds.
2747 [BA] smartctl: Added a warning message so that users of some IBM
2748 disks are warned to update their firmware. Note: we may want
2749 to add a command-line flag to disable the warning messages.
2750 I have done this in a general way, using regexp, so that we
2751 can add warnings about any type of disk that we wish...
2755 [BA] smartd: Created a subdirectory examplescripts/ of source
2756 directory that contains executable scripts for the -M exec PATH
2757 Directive of smartd.
2761 [BA] smartd: DEVICESCAN in /etc/smartd.conf
2762 can now be followed by all the same Directives as a regular
2763 device name like /dev/hda takes. This allows one to use
2765 DEVICESCAN -m root@example.com
2766 in the /etc/smartd.conf file.
2768 [BA] smartd: Added -c (--checkonce) command-line option. This checks
2769 all devices once, then exits. The exit status can be
2770 used to learn if devices were detected, and if smartd is
2771 functioning correctly. This is primarily for Distribution
2774 [BA] smartd: Implemented -M exec Directive for
2775 smartd.conf. This makes it possible to run an
2776 arbitrary script or mailing program with the
2779 [PW] smartd: Modified -M Directive so that it can be given
2780 multiple times. Added -M exec Directive.
2784 [BA] Fixed bug in smartctl pointed out by Pierre Gentile.
2785 -d scsi didn't work because tryata and tryscsi were
2786 reversed -- now works on /devfs SCSI devices.
2788 [BA] Fixed bug in smartctl pointed out by Gregory Goddard
2789 <ggoddard@ufl.edu>. Manual says that bit 6 of return
2790 value turned on if errors found in smart error log. But
2791 this wasn't implemented.
2795 [BA] Modified printing format for 9,minutes to read
2796 Xh+Ym not X h + Y m, so that fields are fixed width.
2798 [BA] Added Attribute 240 "head flying hours"
2802 [BA] As requested, local time/date now printed by smartctl -i
2804 [PW] Added "help" argument to -v for smartctl
2806 [PW] Added -D, --showdirectives option to smartd
2808 [DG] add '-l selftest' capability for SCSI devices (update smartctl.8)
2810 [BA] smartd,smartctl: added additional Attribute modification option
2811 -v 220,temp and -v 9,temp.
2813 [PW] Renamed smartd option -X to -d
2815 START OF SMARTMONTOOLS 5.1 series
2817 smartmontools-5.0.50
2819 [PW] Changed smartd.conf Directives -- see man page
2821 [BA/DG] Fixed uncommented comment in smartd.conf
2823 [DG] Correct 'Recommended start stop count' for SCSI devices
2825 [PW] Replaced smartd.conf directive -C with smartd option -i
2827 [PW] Changed options for smartctl -- see man page.
2829 [BA] Use strerror() to generate system call error messages.
2831 [BA] smartd: fflush() all open streams before fork().
2833 [BA] smartctl, smartd simplified internal handling of checksums
2834 for simpler porting and less code.
2836 smartmontools-5.0.49
2838 [PW] smartd --debugmode changed to --debug
2840 [BA] smartd/smartctl added attribute 230 Head Amplitude from
2843 [PW] Added list of proposed new options for smartctl to README.
2845 [PW] smartd: ParseOpts() now uses getopt_long() if HAVE_GETOPT_LONG is
2846 defined and uses getopt() otherwise. This is controlled by CPPFLAGS in
2849 [BA] smartd: Fixed a couple of error messages done with perror()
2850 to redirect them as needed.
2852 smartmontools-5.0.48
2854 [BA] smartctl: The -O option to enable an Immediate off-line test
2855 did not print out the correct time that the test would take to
2856 complete. This is because the test timer is volatile and not
2857 fixed. This has been fixed, and the smartctl.8 man page has been
2858 updated to explain how to track the Immediate offline test as it
2859 progresses, and to further emphasize the differences between the
2860 off-line immediate test and the self-tests.
2862 [BA] smartd/smartctl: Added new attribute (200) Multi_Zone_Error_Rate
2864 [BA] smartctl: modified so that arguments could have either a single -
2865 as in -ea or multiple ones as in -e -a. Improved warning message for
2866 device not opened, and fixed error in redirection of error output of
2867 HD identity command.
2869 [PW] smartd: added support for long options. All short options are still
2870 supported; see manpage for available long options.
2872 [BA] smartctl. When raw Attribute value was 2^31 or larger, did
2873 not print correctly.
2875 smartmontools-5.0.46
2877 [BA] smartd: added smartd.conf Directives -T and -s. The -T Directive
2878 enables/disables Automatic Offline Testing. The -s Directive
2879 enables/disables Attribute Autosave. Documentation and
2880 example configuration file updated to agree.
2882 [BA] smartd: user can make smartd check the disks at any time
2883 (ie, interrupt sleep) by sending signal SIGUSR1 to smartd. This
2884 can be done for example with:
2886 where <pid> is the process ID number of smartd.
2888 [EB] scsi: don't trust the data we receive from the drive too
2889 much. It very well might have errors (like zero response length).
2890 Seen on Megaraid logical drive, and verified in the driver source.
2892 [BA] smartd: added Directive -m for sending test email and
2893 for modifying email reminder behavior. Updated manual, and sample
2894 configuration file to illustrate & explain this.
2896 [BA] smartd: increased size of a continued smartd.conf line to
2899 [BA] Simplified Directive parsers and improved warning/error
2902 smartmontools-5.0.45
2904 [EB] Fixed bug in smartd where testunitready logic inverted
2905 prevented functioning on scsi devices.
2906 The bug in question only affects smartd users with scsi devices.
2907 To see if your version of smartd has the testunitready() bug, do
2909 If the version of the module smartd.c in a line like:
2910 Module: smartd.c revision: 1.66 date: 2002/11/17
2911 has a revision greater than or equal to 1.30, and less than or equal to
2912 1.64, then your version of the code has this problem.
2913 This problem affected releases starting with RELEASE_5_0_16 up to and
2914 including RELEASE_5_0_43.
2916 [BA] Added testunitnotready to smartctl for symmetry with smartd.
2918 [SB] added Czech descriptions to .spec file
2919 [SB] corrected comment in smartd.conf example
2921 [BA] Changed way that entries in the ATA error log are printed,
2922 to make it clearer which is the most recent error and
2923 which is the oldest one.
2925 NOTE: All changes made prior to this point were done by Bruce Allen
2926 [BA] although several of them had been suggested by earlier postings
2927 by Stanislav Brabec [SB].
2929 smartmontools-5.0.43
2931 Changed Temperature_Centigrade to Temperature_Celsius.
2932 The term "Centigrade" ceased to exist in 1948. (c.f
2933 http://www.bartleby.com/64/C004/016.html).
2935 smartmontools-5.0.42
2937 Modified SCSI device check to also send warning emails if
2938 requested in directives file.
2940 Added a new smartd configuration file Directive: -M ADDRESS.
2941 This sends a single warning email to ADDRESS for failures or
2942 errors detected with the -c, -L, -l, or -f Directives.
2944 smartmontools-5.0.38
2946 Modified perror() statements in atacmds.c so that printout for SMART
2947 commands errors is properly suppressed or queued depending upon users
2948 choices for error reporting modes.
2950 Added Italian descriptions to smartmontools.spec file.
2952 Started impementing send-mail-on-error for smartd; not yet enabled.
2954 Added -P (Permissive) Directive to smartd.conf file to allow SMART
2955 monitoring of pre-ATA-3 Rev 4 disks that have SMART but do not have
2956 a SMART capability bit.
2958 Removed charset encodings from smartmontools.spec file for non-English
2961 smartmontools-5.0.32
2963 Added manual page smartd.conf.5 for configuration file.
2965 smartctl: Missing ANSI prototype in failuretest(); fixed.
2967 smartctl: Checksum warnings now printed on stdout, or are silent,
2968 depending upon -q and -Q settings.
2970 smartmontools-5.0.31
2972 Changed Makefile so that the -V option does not reflect file state
2975 smartctl: added new options -W, -U, and -P to control if and how the
2976 smartctl exits if an error is detected in either a SMART data
2977 structure checksum, or a SMART command returns an error.
2979 modified manual page to break options into slightly more logical
2982 reformatted 'usage' message order to agree with man page ordering
2984 modified .spec file so that locale information now contains
2985 character set definition. Changed pt_BR to pt since we do not use any
2986 aspect other than language. See man setlocale.
2988 smartmontools-5.0.30
2989 smartctl: added new options -n and -N to force device to be ATA or SCSI
2990 smartctl: no longer dies silently if device path does not start/dev/X
2991 smartctl: now handles arbitrary device paths
2993 smartmontools-5.0.29
2994 Modified .spec file and Makefile to make them more compliant with
2995 the "right" way of doing things.
2997 smartmontools-5.0.26
2998 Fixed typesetting error in man page smartd.8
3000 Removed redundant variable (harmless) from smartd.c
3002 smartmontools-5.0.25
3004 Added a new directive for the configuration file. If the word
3005 DEVICESCAN appears before any non-commented material in the
3006 configuration file, then the confi file will be ignored and the
3007 devices wil be scanned.
3009 smartmontools-5.0.24
3011 Note: it has now been confirmed that the code modifications between
3012 5.0.23 and 5.0.24 have eliminated the GCC 3.2 problems. Note that
3013 there is a GCC bug howerver, see #8404 at
3014 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&cmd=query
3015 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8404
3017 Added new Directive for Configuration file:
3018 -C <N> This sets the time in between disk checks to be <N>
3019 seconds apart. Note that although you can give
3020 this Directive multiple times on different lines of
3021 the configuration file, only the final value that
3022 is given has an effect, and applies to all the
3023 disks. The default value of <N> is 1800 sec, and
3024 the minimum allowed value is ten seconds.
3026 Problem wasn't the print format. F.L.W. Meunier <0@pervalidus.net>
3027 sent me a gcc 3.2 build and I ran it under a debugger. The
3028 problem seems to be with passing the very large (2x512+4) byte
3029 data structures as arguments. I never liked this anyway; it was
3030 inherited from smartsuite. So I've changed all the heavyweight
3031 functions (ATA ones, anyone) to just passing pointers, not hideous
3032 kB size structures on the stack. Hopefully this will now build OK
3033 under gcc 3.2 with any sensible compilation options.
3035 smartmontools-5.0.23
3037 Because of reported problems with GCC 3.2 compile, I have gone
3038 thorough the code and explicitly changed all print format
3039 parameters to correspond EXACTLY to int unless they have to be
3040 promoted to long longs. To quote from the glibc bible: [From
3041 GLIBC Manual: Since the prototype doesn't specify types for
3042 optional arguments, in a call to a variadic function the default
3043 argument promotions are performed on the optional argument
3044 values. This means the objects of type char or short int (whether
3045 signed or not) are promoted to either int or unsigned int, as
3048 smartmontools-5.0.22
3050 smartd, smartctl now warn if they find an attribute whose ID
3051 number does not match between Data and Threshold structures.
3053 Fixed nasty bug which led to wrong number of arguments for a
3054 varargs statement, with attendent stack corruption. Sheesh!
3055 Have added script to CVS attic to help find such nasties in the
3058 smartmontools-5.0.21
3060 Eliminated some global variables out of header files and other
3061 minor cleanup of smartd.
3063 smartmontools-5.0.20
3065 Did some revision of the man page for smartd and made the usage
3066 messages for Directives 100% consistent.
3068 smartmontools-5.0-19
3070 smartd: prints warning message when it gets SIGHUP, saying that it
3071 is NOT re-reading the config file.
3073 smartctl: updated man page to say self-test commands -O,x,X,s,S,A
3074 appear to be supported in the code. [I can't test these, can anyone
3077 smartmontools-5.0-18
3079 smartctl: smartctl would previously print the LBA of a self-test
3080 if it completed, and the LBA was not 0 or 0xff...f However
3081 according to the specs this is not correct. According to the
3082 specs, if the self-test completed without error then LBA is
3083 undefined. This version fixes that. LBA value only printed if
3084 self-test encountered an error.
3086 smartmontools-5.0-17
3088 smartd has changed significantly. This is the first CVS checkin of
3089 code that extends the options available for smartd. The following
3090 options can be placed into the /etc/smartd.conf file, and control the
3092 Configuration file Directives (following device name):
3093 -A Device is an ATA device
3094 -S Device is a SCSI device
3095 -c Monitor SMART Health Status
3096 -l Monitor SMART Error Log for changes
3097 -L Monitor SMART Self-Test Log for new errors
3098 -f Monitor for failure of any 'Usage' Attributes
3099 -p Report changes in 'Prefailure' Attributes
3100 -u Report changes in 'Usage' Attributes
3101 -t Equivalent to -p and -u Directives
3102 -a Equivalent to -c -l -L -f -t Directives
3103 -i ID Ignore Attribute ID for -f Directive
3104 -I ID Ignore Attribute ID for -p, -u or -t Directive
3105 # Comment: text after a hash sign is ignored
3106 \ Line continuation character
3108 cleaned up functions used for printing CVS IDs. Now use string
3109 library, as it should be.
3111 modified length of device name string in smartd internal structure
3112 to accomodate max length device name strings
3114 removed un-implemented (-e = Email notification) option from
3115 command line arg list. We'll put it back on when implemeneted.
3117 smartd now logs serious (fatal) conditions in its operation at
3118 loglevel LOG_CRIT rather than LOG_INFO before exiting with error.
3120 smartd used to open a file descriptor for each SMART enabled
3121 device, and then keep it open the entire time smartd was running.
3122 This meant that some commands, like IOREADBLKPART did not work,
3123 since the fd to the device was open. smartd now opens the device
3124 when it needs to read values, then closes it. Also, if one time
3125 around it can't open the device, it simply prints a warning
3126 message but does not give up. Have eliminated the .fd field from
3127 data structures -- no longer gets used.
3129 smartd now opens SCSI devices as well using O_RDONLY rather than
3130 O_RDWR. If someone can no longer monitor a SCSI device that used
3131 to be readable, this may well be the reason why.
3133 smartd never checked if the number of ata or scsi devices detected
3134 was greater than the max number it could monitor. Now it does.
3136 smartmontools-5.0-16
3138 smartd on startup now looks in the configuration file /etc/smartd.conf for
3139 a list of devices which to include in its monitoring list. See man page
3140 (man smartd) for syntax.
3142 smartd: close file descriptors of SCSI device if not SMART capable
3143 Closes ALL file descriptors after forking to daemon.
3145 added new temperature attribute (231, temperature)
3147 smartd: now open ATA disks using O_RDONLY
3149 smartmontools-5.0-11
3151 smartd now prints the name of a failed or changed attribute
3152 into logfile, not just ID number
3154 Changed name of -p (print version) option to -V
3156 Minor change in philosophy: if a SMART command fails or the device
3157 appears incapable of a SMART command that the user has asked for,
3158 complain by printing an error message, but go ahead and try
3159 anyway. Since unimplemented SMART commands should just return an
3160 error but not cause disk problems, this should't cause any
3163 Added two new flags: q and Q. q is quiet mode - only print: For
3164 the -l option, errors recorded in the SMART error log; For the -L
3165 option, errors recorded in the device self-test log; For the -c
3166 SMART "disk failing" status or device attributes (pre-failure or
3167 usage) which failed either now or in the past; For the -v option
3168 device attributes (pre-failure or usage) which failed either now
3169 or in the past. Q is Very Quiet mode: Print no ouput. The only
3170 way to learn about what was found is to use the exit status of
3173 smartctl now returns sensible values (bitmask). See smartctl.h
3174 for the values, and the man page for documentation.
3176 The SMART status check now uses the correct ATA call. If failure
3177 is detected we search through attributes to list the failed ones.
3178 If the SMART status check shows GOOD, we then look to see if their
3179 are any usage attributes or prefail attributes have failed at any
3180 time. If so we print them.
3182 Modified function that prints vendor attributes to say if the
3183 attribute has currently failed or has ever failed.
3185 -p option now prints out license info and CVS strings for all
3186 modules in the code, nicely formatted.
3188 Previous versions of this code (and Smartsuite) only generate
3189 SMART failure errors if the value of an attribute is below the
3190 threshold and the prefailure bit is set. However the ATA Spec
3191 (ATA4 <=Rev 4) says that it is a SMART failure if the value of an
3192 attribute is LESS THAN OR EQUAL to the threshold and the
3193 prefailure bit is set. This is now fixed in both smartctl and
3194 smartd. Note that this is a troubled subject -- the original
3195 SFF 8035i specification defining SMART was inconsistent about
3196 this. One section says that Attribute==Threshold is pass,
3197 and another section says it is fail. However the ATA specs are
3198 consistent and say Attribute==Threshold is a fail.
3200 smartd did not print the correct value of any failing SMART attribute. It
3201 printed the index in the attribute table, not the attribute
3204 when starting self-tests in captive mode ioctl returns EIO because
3205 the drive has been busied out. Detect this and don't return an eror
3206 in this case. Check this this is correct (or how to fix it?)
3208 fixed possible error in how to determine ATA standard support
3209 for devices with no ATA minor revision number.
3211 device opened only in read-only not read-write mode. Don't need R/W
3212 access to get smart data. Check this with Andre.
3214 smartctl now handles all possible choices of "multiple options"
3215 gracefully. It goes through the following phases of operation,
3216 in order: INFORMATION, ENABLE/DISABLE, DISPLAY DATA, RUN/ABORT TESTS.
3217 Documentation has bee updated to explain the different phases of
3218 operation. Control flow through ataPrintMain()
3221 If reading device identity information fails, try seeing if the info
3222 can be accessed using a "DEVICE PACKET" command. This way we can
3223 at least get device info.
3225 Modified Makefile to automatically tag CVS archive on issuance of
3228 Modified drive detection so minor device ID code showing ATA-3 rev
3229 0 (no SMART) is known to not be SMART capable.
3231 Now verify the checksum of the device ID data structure, and of the
3232 attributes threshold structure. Before neither of these
3233 structures had their checksums verified.
3235 New behavior vis-a-vis checksums. If they are wrong, we log
3236 warning messages to stdout, stderr, and syslog, but carry on
3237 anyway. All functions now call a checksumwarning routine if the
3238 checksum doesn't vanish as it should.
3240 Changed Read Hard Disk Identity function to get fresh info from
3241 the disk on each call rather than to use the values that were read
3242 upon boot-up into the BIOS. This is the biggest change in this
3243 release. The ioctl(device, HDIO_GET_IDENTITY, buf ) call should
3244 be avoided in such code. Note that if people get garbled strings
3245 for the model, serial no and firmware versions of their drives,
3246 then blame goes here (the BIOS does the byte swapping for you,
3249 Function ataSmartSupport now looks at correct bits in drive
3250 identity structure to verify first that these bits are valid,
3253 Function ataIsSmartEnabled() written which uses the Drive ID state
3254 information to tell if SMART is enabled or not. We'll carry this
3255 along for the moment without using it.
3257 Function ataDoesSmartWork() guaranteed to work if the device
3260 Replace some numbers by #define MACROS
3262 Wrote Function TestTime to return test time associated with each
3263 different type of test.
3265 Thinking of the future, have added a new function called
3266 ataSmartStatus2(). Eventually when I understand how to use the
3267 TASKFILE API and am sure that this works correctly, it will
3268 replace ataSmartStatus(). This queries the drive directly to
3269 see if the SMART status is OK, rather than comparing thresholds to
3270 attribute values ourselves. But I need to get some drives that fail
3271 their SMART status to check it.
3274 smartmontools-5.0-10
3275 Removed extraneous space before printing in some error messages
3276 Fixed additional typos in documentation
3277 Fixed some character buffers that were too short for their contents.
3281 Put project home path into all source files near the top
3282 Corrected typos in the documentation
3283 Modified Makefile so that Mandrake Cooker won't increment version number
3284 (unless they happen to be working on my machine, which I doubt!)
3286 smartmontools-5.0-8:
3288 For IBM disks whose raw temp data includes three temps. print all
3291 print timestamps for error log to msec precision
3293 added -m option for Hitachi disks that store power on life in
3296 added -L option for printing self-test error logs
3298 in -l option, now print power on lifetime, so that one can see
3299 when the error took place
3301 updated SMART structure definitions to ATA-5 spec
3305 added -f and -F options to enable/disable autosave threshold
3308 changed argv parsing to use getops -- elminate buffer overflow
3311 expanded and corrected documentation
3313 fixed problem with smartd. It did not actually call
3314 ataSmartEnable()! Since the argument was left out, the test
3315 always suceeded because it evaluated to a pointer to the function.
3317 smartd: closed open file descriptors if device does not support
3318 smart. Note: this still needs to be fixed for SCSI devices
3321 smartmontools-5.0-0 STARTED with smartsuite-2.1-2