1 CHANGELOG for smartmontools
3 $Id: CHANGELOG 2993 2009-12-04 17:29:50Z chrfranke $
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 [CF] Linux: Add workaround for Adaptec series 2, 5 and 5Z controllers
47 with firmware >= 17380. Patch was provided by Phil Wilson, see:
48 http://linux.adaptec.com/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards
50 [CF] configure.in: Add '-fno-strict-aliasing' to CXXFLAGS if supported.
51 This suppresses gcc 4.4.1 warnings on Linux and avoids possible
52 unsafe optimizations (ticket #23).
53 Patch was provided by Manfred Schwarb.
55 [CF] Avoid truncation of configure arguments in '-V' output.
57 [AS] Added USB IDs of WD Passport USB Portable
59 [CF] Linux: Fix segfault in 3ware interface (ticket #22).
61 [MS] knowndrives.cpp updates:
62 - Hitachi Deskstar 7K2000
63 - Seagate Momentus 7200 FDE.2 series
65 [CF] Add USB ID of WD My Passport 070A.
66 knowndrives.cpp update:
67 - WD My Passport hard drive (USB interface)
69 [CF] smartd: Write 'worst' attribute value to '.state' file also.
70 This allows to use state persistence with 'raw64' attributes.
72 [CF] Rework ATA SMART attribute check in smartctl and smartd.
73 smartd: Ignore normalized attribute value and threshold
74 if 'raw64' or 'hex64' format is selected.
76 [CF] Add USB IDs of Iomega LPHD080-0, 2 Genesys Logic bridges and
79 [MS] knowndrives.cpp update: Hitachi Travelstar 5K320 series
81 [CF] smartctl: Ignore normalized attribute value and threshold
82 if 'raw64' or 'hex64' format is selected.
84 [CF] knowndrives.cpp updates:
85 - add OCZ-Vertex raw64 attributes
87 Thanks to Marcin Marszalek for the patch.
89 [CF] Add '-v ID,hex*' print formats. Fix '-v N,FORMAT,NAME' parsing.
91 [CF] Add '-v ID,raw64[,...]' print format based on a patch provided
94 [CF] Add '-v ID,RAW_FORMAT[,ATTR_NAME]' option. This allows to add new
95 attributes without the need to enhance the '-v' option.
96 Rework attribute name and raw value formatting.
98 [CF] Fix auto_ptr initialization in linux_scsi_device::autodetect_open().
100 [CF] Remove duplicate function smart_device_list::add().
101 Replace calls with push_back().
103 [MS] attribute update:
104 trim attribute names to 23 chars
106 [CF] Add smart pointer class template to manage device object pointers.
107 Remove related 'delete' calls and 'try/catch' blocks.
109 [CF] do_release: Replace generation of '*.asc' by '*.md5' and '*.sha1'.
111 [MS] attribute updates:
112 - change attributes 202,204,205 to the meanings as found in wdidle3.exe
113 retain old entries as comments (possible Fujitsu use)
114 - add attribute 240 as found in Fujitsu MHY2xxxBH
116 [MS] attributes updates:
117 - attributes 225, 232 and 233 for Intel X25-E SSD
118 - non-conflicting attributes extracted from wdidle3.exe
119 (thanks to Franc Zabkar and Dan Lukes)
121 [CF] Update Windows and ./configure info in INSTALL file.
123 [CF] Update 'do_release' script for SVN.
125 [MS] knowndrives.cpp updates:
126 - Western Digital MyPassport Essential hard drive (USB interface)
127 - Seagate Momentus 7200.4 series
128 - Western Digital Raptor X
131 [CF] knowndrives.cpp updates:
132 - New Seagate 7200.11 firmware version
135 [CF] smartctl: Use printf() instead of pout() for exception error
136 messages to avoid access to bogus 'con->dont_print'.
138 [CF] smartd: Add missing help texts for '-A', '-B' and '-s'.
140 [CF] Add missing check for log page 0x11 support to smartctl
143 [CF] Add USB ID of Freecom Hard Drive XS.
145 [AS] Linux: Autodetect DELL PERC and MegaRAID controllers.
146 Hiding debug messages coming from megaraid code.
148 [AS] Linux: Fixed SATA drives support on megaraid device (see ticket #15).
150 [AS] FreeBSD: Removed all old detection code, moving everything to
151 the objects. Now we are using CAM/ATA enumerators to guess device
154 [AS] FreeBSD: Added autodetection for the ada disks (untested).
155 Code for USB device detection refactored.
157 [AS] FreeBSD: cam_get_umassno rewritten using XPT_PATH_INQ
159 [AS] FreeBSD: do not open/close cam device on every request for SCSI
160 disks. Use com->camdev both for SCSI and ATAPICAM.
162 [AS] FreeBSD: added support for the ada disks, based on agapon patch
164 [CF] Add names for attributes 184 and 188, see ticket #17.
166 [CF] configure.in: Change configure date syntax.
167 Add message to '-mno-cygwin' option check.
169 [GK] Add names for some attributes used in MLC flash drives:
170 175, 176, 177, 181, 182
172 [CF] Windows: Check support of gcc '-mno-cygwin' option in configure.
173 This option has been removed in Cygwin gcc 4.x. Update INSTALL
174 instructions accordingly.
176 [CF] Increase SCSI_TIMEOUT_DEFAULT from 6 to 20 seconds to avoid
177 timeouts when a disk spins up from standby mode.
179 [CF] Add USB ID of AcomData 504 (OnSpec USB bridge).
181 [AS] Correcting manual pages (FreeBSD related)
183 [AS] FreeBSD: fix FTBFS on GNU/kFreeBSD (reported by derevko).
185 [AS] FreeBSD: Add USB autodetection to smartd DEVICESCAN directive.
187 [CF] Add USB ID of Myson Century CS8818, add some comments.
189 [CF] Return info strings from 'smart_interface::get_*()' functions as
190 'std::string' instead of 'const char *'. Static buffers are no
193 [SZ] FreeBSD: Fix highpoint type detection and ioctl failed for parameter
196 [CF] Linux: Add USB autodetection to smartd DEVICESCAN directive.
198 [CF] Add USB IDs of Maxtor Basics Desktop and ISD-300A1.
200 [AS] Use malloc() to ensure that the read buffer lands on a single
201 page. This avoids some bugs seen on LSI controlers under
204 [CF] Add missing help text for '-d usb*' options.
206 [CF] Linux: Dereference '/dev/disk/by-*/*' symlink before device type
209 [AS] FreeBSD: Support SATA disks attached to a SAS controller (based on
210 patch from freebsd ports tree).
212 [AS] FreeBSD: Added FreeBSD 8 libusb2 device autodetecion, new
213 configure check for -lusb.
215 [AS] FreeBSD: Added USB device autodetection and fixed -d switch behavior.
217 [AS] FreeBSD: Migrate os_freebsd.cpp to new interface.
219 [CF] Fix max number of 3ware devices, 128 devices are supported again.
220 Regression was introduced during migration to new interface.
221 Thanks to Michael Holweg for the problem report.
223 [CF] Windows installer: Add 'DisplayVersion' to uninstall registry key.
225 [MS] knowndrives.cpp updates:
226 - Marvell SSD SD88SA024BA0
227 - Fujitsu MHZ2 BH series
228 - Fujitsu MHZ2 BJ series
229 - Seagate Maxtor DiamondMax 23
230 - WD Caviar Green: Add some 32MB cache variants
231 - relax OCZ-Vertex pattern
233 [CF] Add USB ID of Verbatim FW/USB160.
235 [CF] Fix data type bug in checksum test for multi sector logs.
237 [CF] Add USB ID of Seagate FreeAgent Go.
239 [MS] Add experimental feature to log attribute values at each check
240 cycle (ATA only), activated with the smartd option
241 "-A PREFIX" / "--attributelog=PREFIX".
242 Introduce configure options "--enable-attributelog" and
243 "--with-attributelog=PREFIX" to enable feature by default.
245 [DG] [SAT] Heads up about a non backwardly compatible change
246 introduced in draft SAT-2 (sat2r8b.pdf) that will break our
247 existing SAT processing code. Action needed if change stands.
249 [MS] smartd.cpp: Adjust umask
251 [CF] Makefile.am: Remove 'uninstall-docsDATA' target to fix
252 'make distcheck' with automake 1.11. The 'make uninstall'
253 of examplescripts fails if docdir does no longer exist.
255 [CF] Remove 'scsiata.h'. The 'scsiata.cpp' module now implements
256 parts of 'dev_interface.h'.
258 [CF] smartctl: Don't report an attribute as failed if threshold is 0.
260 [CF] Print only one warning on checksum errors in multi sector log.
261 Remove casts from calls of checksum().
263 [DG] minor changes to SCSI background scan strings
265 [MS] knowndrives.cpp updates:
266 - Fujitsu MHW2 BJ series
267 - WD Caviar Black family
269 [MS] Makefile.am: Make creation of svnversion.h independent of
272 [CF] Require to specify PORT parameter of '-d usbjmicron' if two disks
275 [CF] smartctl: Limit default number of printed entries for
276 '-l xerror' to 8, for '-l xselftest' to 25.
278 [CF] smartctl: Fix number of entries in '-l xselftest' output.
280 [CF] Add USB IDs of a SunplusIT bridge, three WD drives, and an
281 unsupported Iomega drive.
283 [CF] Makefile.am: Use 'svnversion' instead of 'svn info' to get
284 the revision number. This also checks for mixed and modified
287 [CF] Remove CVS Id strings from '-V, --version' output.
289 [CF] Update CONTRIBUTORS section on man pages.
291 [CF] Makefile.am: 'make maintainer-clean' now removes also files
292 generated by './autogen.sh'.
294 [CF] Invalidate 'do_release' script, it needs some rework for SVN.
296 [CF] Update documentation files for SVN.
298 [CF] Rename trunk/sm5 to trunk/smartmontools.
300 [CF] Print SVN revision number instead of time in version info line.
301 Get SVN revision number from svn (if available) or guess from
302 Id strings. Rename generated file to svnversion.h.
304 [CF] Makefile.am: Modify generation of cvsversion.h for SVN.
306 [GP] Convert CVS repository to SVN.
308 [CF] smartd: Fix size of monitor flag array from previous commit.
310 [CF] Makefile.am: Add missing 'megaraid.h'.
312 [CF] smartd: Add '!' flag to '-r' and '-R' directives. If specified,
313 message is logged as LOG_CRIT and warning mail is sent if
314 attribute normalized or raw value changes.
316 [CF] Replace global 'con->...' variables used for selective self-tests
319 [GK] Add names for some attributes used in Samsung MLC drives:
322 [CF] smartctl: Add option '-x, --xall' to print all info including
323 extended SMART logs and non-SMART info.
325 [CF] smartctl: Add '-l xerror,error' and '-l xselftest,selftest' to print
326 the old logs if the extended logs are not supported.
328 [MS] knowndrives.cpp updates:
329 - Western Digital AV-GP series
330 - Transcend Solid-State Drive and Transcend Solid-State Drive V series
331 - Seagate Momentus 5400.5 series
333 [CF] Disable 48-bit ATA commands for JMicron USB bridges by default
334 because these commands do not work with all devices.
335 Add '-d usbjmicron,x' to enable 48-bit commands.
336 Thanks to Alexander Shaduri for the problem report.
338 [CF] smartd: Don't ignore the '-n' directive when a self-test is
339 scheduled. Start the self-test later when the disk is active
342 [DG] SCSI (SAS): implement '-l sasphy,reset' (reset part was stub
345 [DG] add 'ATA, SCSI command sets and SAT' section to smartctl.8 .
346 [SCSI] add 'number of background medium scans' field
348 [DG] SCSI (SAS): add '-l sasphy' and '-l sasphy,reset' into smartctl
349 to output SAS device phy information (from the Protocol specific
352 [CF] autogen.sh: Remove 'CYGWIN=check_case:strict', this does no
353 longer work on Cygwin 1.7. Print warning if Automake version
354 cannot handle case insensitive filesystems.
356 [CF] Remove '#define TRUE/FALSE', use 'bool' and 'true/false'.
358 [CF] Add 'options' parameter to SCSI printing routine. Move global
359 'con->...' smartctl variables to 'options' parameters of
362 [CF] Windows: Remove outdated entry about undocumented system calls
365 [CF] Print General Purpose Logs even if GPL feature bit is missing.
366 Needed for some older disks which implement READ LOG EXT but
367 do not report the GPL feature set.
368 Change order of the extended log outputs ('-l xerror',
369 '-l xselftest', '-l sataphy'). Extended logs are now printed
370 before their old versions.
372 [CF] autogen.sh: automake 1.10.2 and 1.11 are OK.
374 [CF] Fix syntax error in prototype of 'safe_snprintf()'.
375 Thanks to Alexander Shaduri for bug report and patch.
377 [DG] SCSI: Fetch load-unload cycle counts.
379 [CF] Windows: Add Win-7 and Win2008 to get_os_version_str().
381 [CF] smartd: Fix '-M test' directive in conjunction with '-s' option.
382 Thanks to Matthias Becher for the problem report.
384 [MS] knowndrives.cpp updates:
385 - Add Seagate Barracuda 7200.12 series
386 - Add Seagate Momentus 5400.4 series
387 - Add Hitachi Deskstar 7K1000.B series
388 - Add Transcend SSD TS32GSSD25-M
389 - Add OCZ Vertex 1199
391 [CF] knowndrives.cpp updates:
392 Add Samsung S250 series.
393 Add '-v 198,increasing' to Samsung P80.
394 Replace '#if/#endif' by comment to fix configure option
397 [CF] knowndrives.cpp update:
398 Add Seagate 7200.11 with 'CC' firmware which is unaffected
399 by the bug. Thanks to Bas Mevissen for the patch.
401 [CF] Replace global 'con->...' variables used for drive presets
404 [CF] Simplify '-v' vendor attribute option parsing.
405 Add '-v 197,increasing' and '-v 198,increasing' options
406 to specifiy that an uncorrectable count is never reset.
407 This modifies the printed attribute names and smartd's
408 default setting of '-C' and '-U' directives.
409 Both '-v' options can also be preset in the drive database.
411 [CF] Add '+' modifier to smartd '-C' and '-U' directives.
412 If specified, a warning is only printed if the raw value
415 [CF] Add smartctl option '-l xselftest[,NUM]' to print
416 ATA SMART Extended Self-test Log (GP Log 0x07).
418 [CF] Add experimental option '-d usbsunplus' for drives behind
419 SunplusIT USB bridges. Tested on WinXP with SPIF215(?) in
420 TrekStor DataStation maxi m.u.. Many thanks to SunplusIT
421 tech support for providing the required information.
423 [CF] Windows: Provide a non-console version of smartctl.exe
424 as smartctl-nc.exe. This prevents that a new console is
425 opened when smartctl is run from a GUI program with
427 Used by GSmartControl (http://gsmartcontrol.berlios.de/).
429 [CF] Remove support for platforms without getopt_long() in
430 smartctl.cpp and smartd.cpp. If getopt_long() is missing,
431 ./configure aborts with an explanatory message.
432 For now, short option help texts are only removed from
433 os_linux.cpp and os_win32.cpp. HAVE_GETOPT_LONG is still
436 [CF] Add smartctl '-d test' option to print the result of the
437 device type detection.
439 [CF] Enhance USB device type autodetection, use bcdDevice if known.
440 Add Cypress CY7C68300B/C (AT2LP) to the table.
442 [CF] Linux: Add experimental USB device type autodetection.
443 Uses USB ID info found through symlink "/sys/block/sdX/device".
445 [CF] Windows: Add experimental USB device type autodetection.
446 Uses WMI command line tool 'wmic' to query USB ID.
448 [CF] Add function smart_interface::get_usb_dev_type_by_id() to map
449 USB vendor:product IDs to '-d type' names. Can be used by
450 platform dependent layer to autodetect USB devices if ID of
453 [CF] smartd: Log changes of self-test execution status if
454 '-l selftest'is specified.
456 [CF] knowndrives.cpp update:
457 Samsung SpinPoint F1 RE series
459 [MS] knowndrives.cpp update:
460 Seagate Momentus 5400.6 series
462 [CF] Add forgotten SCSI sense checks to class usbjmicron_device.
464 [CF] Add new SMART STATUS check command for JMicron USB bridges.
465 Should support also older chip versions and prevents a race
468 [CF] Windows: Fix win_scsi_device::scsi_pass_through() for single byte
469 data transfers. Required for JMicron SMART STATUS check.
471 [MS] knowndrives.cpp update:
472 Add Hitachi Travelstar C4K60 family (1.8" slim drives)
474 [MS] Workaround for huge raw values of attribute 9, needed
475 for Hitachi Travelstar C4K60. For the Power_On_Minutes case,
476 clip the display to 4 bytes and show the remaining part,
477 if existent, in parens.
479 [CF] Add experimental option '-d usbjmicron[,PORT]' for drives
480 behind JMicron USB bridges. Tested on WinXP with JM20336 in
481 AixCase AIX-ESU35CD. Many thanks to JMicron tech support
482 for providing the required information.
484 [MS] knowndrives.cpp update:
485 Add WD Caviar Green 8MB and 32MB cache variants, stretch to 2TB.
487 [CF] knowndrives.cpp updates: Add more entries for Samsung P80 disks
488 with old and unknown firmware. Remove old entries which would
489 match any new Samsung model reusing old firmware version number.
491 [CF] Windows: Add a workaround for missing multi-sector support
492 for ATA READ LOG EXT command.
494 [CF] Fix Extended Comprehensive Error Log index base.
495 Add workaround for Samsung disks using reserved byte as index.
497 [CF] knowndrives.cpp updates: Update bug warnings for
498 Seagate 7200.11, ES.2 and DiamondMax 22. Add new entries
499 for fixed firmware versions.
501 [CF] Add smartctl option '-l xerror[,NUM]' to print
502 ATA SMART Extended Comprehensive Error Log (GP Log 0x03).
504 [MS] knowndrives.cpp update:
505 Added remaining WD Scorpio Blue SATA II drives
507 [CF] Minor fix to remove ID 0 from 'smartctl -l sataphy ...' output.
509 [CF] knowndrives.cpp updates: Add warnings about possible firmware
510 bugs to Seagate 7200.11, ES.2 and DiamondMax 22 entries.
512 [CF] knowndrives.cpp updates: Add Samsung SpinPoint F1 series.
514 [CF] Windows: Fix return value of scsi_pass_through(). Regression
515 was introduced during migration to new interface. SAT over USB
516 now works on XP (both '-d sat,12' and '-d sat,16').
518 [MS] knowndrives.cpp updates:
519 - Added Western Digital RE2-GP family
520 - Added Hitachi Travelstar E5K160 family
521 - Allow uppercase variants of Hitachi 5K160 drives
523 [CF] Fix smartctl crash on '-l directory,[gs]'. Allow to override
524 missing GPL feature bit or missing log dir entry with
525 '-T permissive' option.
527 [SZ] os_freebsd.cpp, os_freebsd.h updates:
528 Support HighPoint RocketRAID controller under FreeBSD
530 [MS] knowndrives.cpp updates:
531 - Added Western Digital RE3 32MB cache variants
532 - Added WD Caviar Green 32MB cache variant (WD10EADS)
533 - Added WD Scorpio Black family
535 [DG] Accept half healthy (and half unhealthy) indication from the
536 SMART RETURN STATUS. This makes allowance for SAT implementations
537 (e.g. via USB) that truncate the SCSI sense buffer to 18 bytes.
538 This truncation causes the SMART RETURN STATUS indication to be
539 half health or unhealthy. If the half indication is used, then
540 warn if '-r ioctl' is given.
542 [MS] knowndrives.cpp updates:
544 - Added Seagate U8 family
547 Added support for CHECK_POWER_MODE and WRITE_LOG commands
549 [MS] knowndrives.cpp update:
550 There seem to exist WD Raptors with SATA II interface, add them.
552 [MS] knowndrives.cpp updates:
553 - Added remaining Seagate Barracuda 7200.11 drives
554 - Added HP 1TB SATA disk
556 [MS] knowndrives.cpp updates:
557 - Added Maxtor 92040U6 (DiamondMax Plus 6800)
558 - Added Seagate Maxtor DiamondMax 21 500GB version
559 - Added QUANTUM FIREBALLlct15 22
560 - Added QUANTUM FIREBALL CR6.4A
561 - Added QUANTUM FIREBALLP LM20.4
562 - Added SUN branded Toshiba MK4019GAX
563 - Added TOSHIBA MK1016GAP and relatives: MK1[05]1[67]GAP
564 - Added Western Digital WD800AB and WD2500AB
565 - Some Hitachi 7K160 drives have garbage at end of name: permit it
567 [CF] Add smartd '-n powermode,N' directive parameter to limit the
568 number of skipped checks. Thanks to Michal Hlavinka for the patch.
570 [MS] knowndrives.cpp updates:
571 - Added Hitachi Endurastar J4K30/N4K30
572 - Added Hitachi Travelstar 4K120 series
573 - Some Hitachi 7K80 drives have garbage at end of name: permit it
574 - IBM Travelstar 6GN series
576 [MS] knowndrives.cpp updates:
577 - Added Quantum Fireball ST4300A
578 - Added Asus-Phison SSD (solid state disk)
579 - Added Seagate DB35.3 Series
580 - Added remaining disks of the Seagate SV35.2 Series
582 [MS] Fix trivial compile error with "-pedantic"
584 [MS] Workaround for huge raw values of Reallocated_Sector_Ct and
585 Reallocated_Event_Ct for newer Fujitsu disks (only the lower
586 16 bits seem to be meaningful). Clip the display to 16 bits
587 and show the remaining part, if existent, in parens. Patch by [CF].
589 [CF] smartd DEVICESCAN: Fix autodetection of SAT devices.
590 Thanks to Stanislav Brabec for bug report and testing.
592 [MS] knowndrives.cpp update:
593 Convert file to full string regex: remove "^$" from pattern
595 [MS] knowndrives.cpp updates:
596 - Added Seagate Momentus 5400 PSD series (hybrid drives)
597 - Added Seagate Momentus 7200.3 series
598 - Added Hitachi Deskstar 7K250 (SUN branded)
599 - There are Hitachi Travelstar 5K250 drives with capital "HITACHI"
600 - Correct regex for Maxtor VL 30 drives
602 [CF] Add configure options '--enable-savestates' and
603 '--with-savestates=PREFIX' to enable smartd persistence
604 ('-s' option) by default.
606 [CF] smartd: Add '-s ([cnr]/../.././..)' directive to run scheduled
607 selective self-tests. Useful to perform full tests of large disks
610 [CF] Allow to read local drive database entries from optional file
611 '${sysconfdir}/smart_drivedb.h'.
612 Add configure options '--enable-drivedb' and '--with-drivedbdir=DIR'.
613 If specified, drive database is read from '${drivedbdir}/drivedb.h'.
614 (default '${prefix}/share/smartmontools/drivedb.h'). This file
615 is build from knowndrives.cpp.
617 [MS] knowndrives.cpp updates:
618 - Added 640GB variants of Western Digital AAKS and AACS drives
619 - Added Western Digital AV ATA family
620 - Added 160GB variant of Hitachi P7K500
621 - Added 500GB variant of Hitachi 7K1000
622 - Some cleanup for Quantum disks
623 - Added Seagate Maxtor DiamondMax 22 family
625 [CF] Use full string match for regexp in drive database.
627 [CF] Add option '-d sat+TYPE' to use SAT with controllers which
628 require option '-d TYPE'. Should work with '-d sat+megaraid,N'.
629 As a side effect, '-d usbcypress+TYPE' is also supported.
631 [CF] Add parser to read drive database from a file. Add '-B' option
632 to smartctl and smartd to specify database file name. File syntax
633 is identical to the C/C++ syntax used to inialize the internal
636 [CF] New syntax for drive database: Specify presets by strings
637 with '-v' and '-F' options. Use empty strings instead of NULL.
639 [JPH] Added Linux support for viewing disks behind MegaRAID
642 [CF] smartd: Improve min/max temperature recording in conjunction
645 [CF] Add a wrapper class for FILE *.
647 [CF] smartd: Add experimental support for state persistence (ATA only).
648 Add option '-s' to specify path prefix for state files.
649 Rework scheduled self-test detection to support persistence.
650 If any test schedules are within downtime, the highest priority
651 test is run after next startup.
653 [CF] Remove casts from 'format_ata_string()' calls.
655 [CF] Minor changes to fix errors and warnings from Cygwin gcc 4.3.0.
657 [CF] smartd: Remove SCSITIMEOUT code. According to smartd.h 1.54 CVS log
658 from 2003-10-27, it did never work.
660 [CF] Remove dependencies ataprint.cpp and scsiprint.cpp from smartd.
661 Move common ATA functions from ataprint.cpp to atacmds.cpp.
662 Module scsiprint.cpp was apparently never used in smartd.
664 [CF] Move smartd local declarations from smartd.h and utility.h to
665 smartd.cpp. Remove smartd.h.
667 [CF] Fixed extra '\n' in "Offline data collection status" output.
668 Thanks to Alexander Shaduri for the patch.
670 [CF] smartd: Separate device configuration data from device state data.
671 Use references instead of pointers for configuration and state data.
673 [CF] Add const-correctness and static to ATA support functions.
675 [CF] Add a wrapper class for regex.
677 [CF] Simplify 'create_vendor_attribute_arg_list()'.
679 [CF] smartd: Rework of main data structures. Remove explicit memory
680 allocations, use STL containers and structs with value semantics
681 instead. Remove old malloc/free based memory management helper
682 functions unless old interface is still in use.
684 [CF] Linux: Cleanup device scan, remove name list, create objects directly.
686 [CF] Linux: Cleanup smart_device::open(), type strings are no longer used.
688 [CF] Remove CONTROLLER_* defines and variables unless old interface
691 [CF] Linux: Migrate 3ware interface to 'ata_pass_through()'.
692 Multi-sector support is not complete yet. 48-bit commands
694 WARNING: Not tested, please review code before first test!
696 [CF] Linux: Migrate os_linux.cpp to new interface.
698 [CF] Add direct access to 16-bit registers in 'ata_in/out_regs_48bit'.
700 [CF] Add 'ata_cmd_is_ok()' parameter check,
701 remove 'ata_pass_through_28/48bit()' functions.
703 [CF] Add CVS date/time from cvsversion.h to man pages also.
705 [CF] Add configure option '--with-os-deps='os_module.o ...' to specify
706 alternate OS interface modules. Useful for testing during migration.
708 [CF] Remove declarations of 'optarg', 'optind', ..., include <unistd.h>
709 instead. This fixes 'auto-importing' linker warnings on Cygwin.
711 [CF] Add '-l sataphy[,reset]' to print SATA Phy Event Counters.
713 [CF] Add '-l gplog,ADDR[,FIRST[-LAST|+SIZE]]' and '-l smartlog,...'
714 to dump any log page accessible via GP or SMART read log commands.
716 [CF] Enhance '-l directory' to print both GP and SMART Log directories.
717 Add '-l directory[,gs]' modifiers to select GP or SMART log.
718 Enhance 'ata_cmd_in' parameter struct for 48-bit commands.
720 [CF] Windows: Add full ATA pass through support including 48-bit commands.
722 [CF] Windows: Migrate os_win32.cpp to new interface.
724 [CF] SAT: Add full ATA pass through support including 48-bit commands.
726 [MS] knowndrives.cpp update
727 - Added FUJITSU MHZ2250BS G2 and family
729 [MS] knowndrives.cpp updates
730 - Added Maxtor DiamondMax 60 94098H6
731 - Added Maxtor DiamondMax 1280 84000A6 and family
732 - Added Maxtor DiamondMax VL 30 31536H2 (ATA100) and family
733 - Some Seagate Barracuda 7200.9 have garbage at end of name: permit it
734 - Added Seagate Barracuda ATA ST320430A and family
735 - Regression from previous checkin: add WD RE2 WD...0ABYS again
736 - Added WD RE3 WD5002ABYS and family
737 - Added Quantum Fireball CR13.0A
738 - Added Hitachi Travelstar 5K250 HTS542525K9SA00 and family
739 - Added WD AC420400D and add whole range of AC.... which
740 have 5400rpm or higher (i.e. PIO-only drives omitted)
742 [MS] knowndrives.cpp updates
743 - WD: Separated entries for EIDE and SATA
744 - WD: Separated entries for Caviar SE, SE16, RE, RE2
745 - WD Named: WD Caviar AC series
746 - WD Renamed: WD Caviar RE/RE2 -> WD RE/RE2
747 - WD Renamed: WD Caviar SE/SE16 WD....AA[A-Z][A-Z] -> WD Caviar Blue
748 - WD Renamed: WD Scorpio WD....BEV[A-Z] -> WD Scorpio Blue
749 - Added WD Scorpio Blue WD3200BEVT
750 - Added WD RE2 WD5001ABYS and family
751 - Added WD Caviar Green WD5000AACS and family
752 - Added WD VelociRaptor WD3000GLFS and family
753 - Added Seagate Barracuda ES.2 ST31000340NS and family
754 - Added Samsung SP80A4H
755 - Added Maxtor DiamondMax 21 STM3160215AS and STM3320620AS
756 - Added Seagate Barracuda 7200.7 ST380819AS
757 - Added Maxtor DiamondMax 10 6B100P0
758 - Added Seagate SV35.2 Series
759 - Added Fujitsu MHY2120BH and family
760 - Added Fujitsu MHW2080BH PL (PL variant)
761 - Added Toshiba MK3252GSX and family
763 [BA] Fix smartctl bug: when running in silent mode '-q errorsonly'
764 do not print the Selective Self-test log. Any errors will
765 ALREADY appear in the SMART Self-test log.
767 [CF] Add missing 'const' and other minor fixes to prevent gcc warnings.
769 [OB] Added information message about supported Areca firmware versions.
770 It's displayed in case the ATA device identification fails.
772 [CF] Add configuration file for Doxygen.
774 [CF] Add new object oriented interface to access ATA and SCSI devices.
775 smartctl and smartd are modified to use the new classes in
776 'dev_interface.{h,cpp}'. The template class in 'dev_tunnelled.h'
777 is used in 'scsiata.cpp'. The code in 'dev_ata_cmd_set.{h,cpp}'
778 supports migration from old function 'ata_command_interface()'.
779 All existing 'os_*.cpp' modules should still work without any changes.
780 The required adapter classes from 'dev_legacy.cpp' are automatically
781 added by configure if necessary.
783 [BA] Updated smartd and smartctl and smartd.conf man-page documentation
784 to reflect support for Areca SATA RAID controller cards.
786 [OB] Added support for Areca controllers to smartd. Extensive tests
787 as well as documentation are still pending however.
789 [OB] Implemented device locking for Areca controllers in smartctl
791 [BA] Fixed selective self-test code. Data structure revision number
792 may be != 1 if no selective self-test has ever been run. Host
793 MUST set this value (at least at the first selective self-test
794 instance). Thanks to Curtis Stevens of WDC for clarification.
796 [MC] usbcypress autodetection
798 [BA] Starting to commit Areca code. For now just smartctl.
799 More changes and documentation coming soon.
800 Need Areca firmware version 1.45 dated 10 June 2008 or later.
801 May need changes in opening /dev/sg and file locking.
802 Many thanks to Hank Wu!
804 [CF] smartd: Fix too small name buffer for 3ware with >100 devices.
806 [JH] now C++ Support for QNX Target
807 already tested for QNX 6.3.2 on x86 and armle target
809 [CF] Allow to set BUILD_INFO from make command line.
811 [CF] Windows: Add MSVC8 support, remove MSVC6 project files.
813 [MC] Add usbcypress device support for smartd.
815 [CF] Add output of latest CVS date/time stamp to version info.
816 New file cvsversion.h is generated by Makefile.
817 Move formatting of version info to utility.cpp.
819 [AR] Fix bug in 3ware node creation where nodes would be created
820 then deleted, then recreated.
822 [BA] Add missing CCISS cvs version tags to '-V' printouts.
824 [TS] Linux: Ensure the 3ware device nodes are created with a correct
825 SELinux security context.
827 [AR] Add support for up to 128 devices on 3ware controllers.
829 [CF] C++: Added new main() with exception handlers, replaced
830 exit(x) with throw(x), removed global variable 'exitstatus'.
831 Necessary for future changes, because exit() does not call
834 [SS] FreeBSD: plug file descriptor leak in smartd (only happens with
835 CISS devices). Reported by Vadim Ostranitsyn.
837 [SS] FreeBSD: allow smartctl to interact with SCSI /dev/pass devices,
838 thus enabling it to work with RAID controllers that expose disks
839 via these devices. From scottl@ via FreeBSD ports.
841 [MC] Add usbcypress device support for smartctl.
843 [KS] INSTALL on Solaris: updated description to use C++ compiler.
845 [KS] configure.in on Solaris: added options for Sun's compiler to
846 suppress trivial warnings.
848 [KS] configure.in on Solaris: added direction to search suitable
849 libraries for getaddrinfo().
851 [TS] smartd on Linux: remove forgotten return from deviceopen();
852 SCSI device descriptors had the FD_CLOEXEC flag unset.
854 [CF] Added 'const' to avoid warning on depreciated string constant
855 to 'char *' conversion.
857 [CF] autogen.sh: automake 1.10.1 is OK. Updated message texts.
859 [BA] removed smartmontools.spec file (now in CVS Attic). This
860 was not being used by RH or FC anyhow, and was out of
861 date and not maintained.
863 [BA] smartd on Linux: sets FD_CLOEXEC on the opened device file
864 descriptor. The descriptor is otherwise leaked to other
865 applications (mail sender) which may be considered a security
866 risk and may result in AVC messages on SELinux-enabled systems.
867 Thanks to: Tomá Smetana" <tsmetana@redhat.com>.
869 [BA] smartd: when sending email, to gather information about the
870 host for the body of the email, eliminate gethostbyname()
871 in favor of the IPv6-friendly function getaddrinfo() if the
872 latter is available. Info may be found here
873 http://udrepper.livejournal.com/16116.html
875 http://people.redhat.com/drepper/userapi-ipv6.html
876 Thanks to: Tomá Smetana" <tsmetana@redhat.com>.
878 Smartmontools developers: please check that smartd still LINKS
879 properly on your systems.
881 [BA] Fix ugly syntax bug in os_freebsd.cpp. How did this go
882 undetected for so long??
884 SMARTMONTOOLS STABLE RELEASE 5.38 2008/03/10
886 [KS] Solaris/x86: modified configure.in for Sun's compiler.
888 [BA] smartd.initd.in addition from Erwan Velu <erwan@seanodes.com>
892 - On Linux, DEVICESCAN now automatically recognizes SATA devices
893 behind libata, and SATA devices behind the Marvell driver, and
894 treats them correctly.
896 - On Linux, a '-d sat' or '-d marvell' is automatically added
897 if libata or the marvell driver are recognized behind a SCSI
900 [SS] (Maybe) fix attribute autosave in FreeBSD.
902 [SS] Major NetBSD-specific bugfixes:
903 - handle actual SCSI and ATA errors and not only ioctl() errors;
904 - set up I/O request properly for AUTO_OFFLINE and AUTOSAVE commands (inspired by
905 similar change in os_freebsd.cpp);
906 - handle AUTO_OFFLINE and AUTOSAVE like STATUS_CHECK (like os_linux.cpp does).
908 [GG] add kfreebsd gnu support to configure.in
910 [BA] Fix auto-offline support in FreeBSD. Thanks to
911 Cyrus Rahman <crahman@gmail.com> for the patch, and
912 Eduard Martinescu for blessing it.
914 [DG] smartd re-opens "SCSI" devices as ATA devices if a SAT layer is
915 detected (smartd bug IMO). In Linux this upsets scsi generic
916 device nodes (e.g. /dev/sg0). Detect the re-open in os_linux.cpp
917 and set the O_RDWR flag (ATA uses the O_RDONLY flag).
919 [CF] Drive database: Added Fujitsu MHW2 BH, Maxtor DiamondMax 17, 20, 21,
920 Hitachi Travelstar 4K40, 5K120, 7K200, Deskstar 7K160, T7K500,
921 T7K1000, Toshiba 1.8", Seagate Momentus 5400.3, 5400.3 ED, 7200.2,
922 Barracuda 7200.11 and ES.
923 Updated Toshiba 2.5", Seagate Barracuda 7200.9 and 7200.10.
924 Added missing "(Hitachi )?" to Travelstar entries.
926 [CF] Drive database: Added several Western Digital Caviar and Scorpio
927 drives, added Caviar RE EIDE family.
929 [CF] Drive database: Added Samsung P80 series with *-25 firmware.
931 [CF] Replaced 'head [-n] -1' by 'sed 1...' in autogen.sh to avoid
934 [BA] Fixed autogen.sh script so that it uses 'grep -n 1' if 'grep -1'
935 fails. Needed for Mac OS X 10.4. Uck.
937 [CF] Windows: Added IOCTL_STORAGE_PREDICT_FAILURE. This allows access
938 to ATA SMART status and data if other calls do not work.
939 Thanks to Jaroslaw Kowalski for pointing this out.
940 Added support to use this function without admin rights.
942 [CF] Added ATA-8 revision 4c message text.
944 [CF] Added compiler.h to cciss_ioctl.h header check to prevent
947 [SS] DragonFly support added (using os_freebsd code; untested).
949 [CF] smartctl: Fixed ATA identify byte swapping issue on big-endian
950 platforms. This regression was introduced by the change for
951 '-F swapid'. Thanks to Matthew Butch for bug report and testing.
953 [DG] SAT/SCSI: Improve SAT error processing code. Aborted commands from
954 ATA devices (typically because SMART was disabled) were not being
957 [GG] smartd: wait for the pid file to show up, return an error if it doesn't
959 [JH] fix bad return code (get STATUS) for QNX Part
961 [JH] initial porting to QNX Neutrino 6.3.2
962 need at this time a prerelease devb-eide driver and libcam.so.2
963 only tested for X86 Target, but devb-eide and lobcam.so.2 available for X86/ARM
964 the officional driver coming soon with the next QNX release
965 create two new source files os_qnxnto.[c..h]
967 [CF] smartd: Added option '-n, --no-fork' so that smartd works
968 better with modern init methods. Thanks to Enrico Scholz
969 for the patch from 2005-12-24.
971 [CF] Windows: Improved ATA/SCSI device type detection and
972 DEVICESCAN. This also fixes a regression in 3ware DEVICESCAN.
974 [CF] smartd: Don't start self tests in first pass to avoid
975 performance problems during boot.
976 https://bugzilla.novell.com/show_bug.cgi?id=192591
978 [CF] Fixed regression in SMART STATUS command on Win9x/ME.
980 [BA] Fixed 3ware issue with new controllers. Documentation said
981 that one could address up to 24 disks on a single controller,
982 but in fact one was limited to 16 disks. This is now fixed:
983 up to 32 disks can be addressed. Thanks to Adam Radford.
985 NOTE1: I have patched the Linux and FreeBSD code but not
986 modified the Win32 code (it already supports up to 32 disks).
988 NOTE2: NOT TESTED ON LINUX. Do not use this on a production box!
989 I will remove this NOTE2 as soon as some positive test
990 reports are recieved.
992 NOTE3: NOT TESTED ON FREEBSD. Do not use this on a production box!
993 I will remove this NOTE3 as soon as some positive test
994 reports are recieved.
996 [CF] Windows installer: Added explorer drive menu, CMD window,
997 UBCD4Win plugin, smartd service update and other minor
1000 [CF] Windows: Modified drive letter handling for explorer drive
1001 context menu: try SCSI if type is unknown, allow 'X:\.' syntax.
1003 [CF] Windows: Added automatic ATA/SCSI device type detection and
1004 SCSI device scanning. The device names '/dev/sdX' and
1005 '/dev/pd<n>' now work for both ATA and SCSI disks.
1007 [CF] smartctl: Added ability to parse '-r ataioctl,2' output from
1008 stdin ('-') and simulate the ATA commands for testing purposes.
1010 [BA] SMART Attributes: added 187, 189, more accurate name for 190.
1012 [CF] Windows: Added drive letters 'X:' as alternate disk device names.
1014 [CF] smartctl: Added '-F swapid' to fix ATA identify string byte
1015 ordering. Added '-q noserial' to suppress serial number output.
1017 [CF] Windows: Added '/dev/n?st<n>' as alternate device names for SCSI
1018 tapes. These names are also used by Cygwin's /dev emulation layer.
1019 Thanks to Corinna Vinschen (Cygwin project lead) for pointing this
1022 [CF] Windows: Added IOCTL_SCSI_MINIPORT_*SMART* for commands not handled
1023 properly by SMART_IOCTL in disk class driver. This allows to use
1024 READ_LOG, WRITE_LOG and ABORT_SELFTEST even if the driver does not
1025 support ATA_PASS_THROUGH.
1027 [CF] Added ATA-8 revision 4, fixed WRITE LOG '-r ioctl' output.
1029 [BA] Updated smartctl and smartd so that they can be used with the latest
1030 3ware controllers which have 24 ports. Also updated docs.
1031 Thanks to Tim Bell at CERN.
1033 [GG] bit 4 in smartctl's return code might be set even when the dist check
1034 didn't return "DISK OK"
1036 [CF] Drive database: added '-F samsung3' for Samsung P80 firmware
1039 [SS] Applied patch from Dean Bennett to fix scheduled tests on
1040 Highpoint RAID controllers.
1042 [BA] Added patch from Tejun Heo http://thread.gmane.org/gmane.linux.ide/13222/focus=13235
1043 to fix broken auto-offline and auto-save via libata. Very clean fix: does it
1044 "the right way". Thanks Tejun!
1046 [CF] Added message text for ATA-7 self-test execution status 8
1047 ("... handling damage").
1049 [GG] cciss: support more than 16 disks (patch taken from
1050 http://cciss.sourceforge.net/smartmontools_cciss_more_than_16_drives.patch
1051 and adjusted for smartd)
1053 [DG] Solaris: [SCSI] add USCSI_RQENABLE flag to uscsi pass-through so
1054 sense buffer is made available. Expand reporting at this level.
1056 [GK] Darwin: Improve handling of powered-down drives.
1058 [SS] CCISS physical drive enumeration method changed (incompatibly).
1060 [CF] Fixed smartd crash on missing '-s' directive argument.
1062 [SS] Support CCISS on FreeBSD (kernel source is required until FreeBSD PR 109813
1065 [DG] SCSI/TAPE: some IBM tape drives don't react properly to a LOG
1066 SENSE with an allocation length of 4; work around for that case.
1068 [CF] Applied Guido's patch to fix CCISS LUN array bounds check
1069 (openSUSE bug #239956) and remove trailing spaces in
1072 [CF] Fixed 64-bit compilation issue in SCT status struct.
1074 [DG] SAT/SCSI: make real SCSI disks visible to DEVICESCAN in
1077 [CF] Fixed check of SCT temperature table size.
1079 [CF] Added ATA-8 draft revisions, added SCT status format 3.
1081 [CF] Drive database: added Samsung T166 series.
1083 [CF] ATA: Added ',p' option for '-t scttempint,N' to make
1086 [CF] ATA: Added '-t scttempint,N' option to set SCT temperature
1089 [CF] ATA: Added '-l scttemp[sts,hist]' options to print disk
1090 temperature information and history table provided by
1091 SMART Command Transport (SCT) Feature Set.
1093 [CF] ATA: Added '-t selective,{redo,next,cont}' commands to
1094 perform tests based on the last ranges still stored on
1095 disk. Added 'N+SIZE' and 'N-max' format for LBA range
1098 [CF] Added Min/Max Temperature format used in attribute 190 of
1099 recent Maxtor disks (DiamondMax 20).
1101 [CF] Linux: Added check for <linux/cciss_ioctl.h> to allow build
1102 (without CCISS support) also when this file is missing.
1104 [CF] Added -F samsung3 option to correct firmware bug reporting
1105 completed self-tests as still in progress. Thanks to Manfred
1106 Schwarb for the patch.
1108 [CF] Added missing const specifiers (undetected by gcc 3.4 and 4.X)
1109 to fix compilation with gcc 2.X.
1111 [CF] Linux: compile fix for SuSE, config.h must be included first.
1113 smartmontools 5.37 Experimental Release
1115 [CF] Windows: Added alternate method for (limited) monitoring of
1116 3ware controllers by parsing the output of CLI or 3DM.
1117 Either "tw_cli" can be run internally ("/dev/tw_cli/cx/py"),
1118 or data can be read from standard input ("/dev/tw_cli/stdin")
1119 or clipboard ("/dev/tw_cli/clip").
1121 [DG] Remove linux specific libata detect code; rely on general SAT
1122 code. smartd should now generate a sensible log message for
1123 ATA devices behind a SAT layer on all architectures.
1125 [BA] Increased max line length MAXLINELEN for /etc/smartd.conf from
1126 128 to 256 characters to handle long strings in
1127 /dev/disk/by-id. Thanks to Martin Krafft.
1129 [PW] Drive database: added missing drives from Seagate Momentus 5400.2
1132 [BA] Finished Christian's fix (next item below) by removing
1133 LINUX_86_64 hack from configure.in.
1135 [CF] Fixed inclusion of PRI?64 macros from inttypes.h.
1137 [CF] Windows: Added WRITE LOG to support selective self tests.
1139 [CF] Fix selective self test log revision number if '-T permissive'
1140 is specified (Tested with Samsung HD401LJ).
1142 [CF] Windows: Fixed int64 printf format for MinGW runtime.
1144 [PW] Drive database: added Seagate Barracuda 7200.10 family, Seagate
1145 Momentus 42 family, Maxtor DiamondMax 60 ATA 66 family, Maxtor
1146 DiamondMax 60 ATA 100 family, and Western Digital Caviar Serial
1149 [PW] Drive database: added missing drives from Seagate Barracuda
1150 7200.9 family, Seagate Barracuda 7200.7 family, Seagate Momentus
1151 7200.1 family, Toshiba 2.5" HDD family (80 GB and above), Western
1152 Digital Caviar RE Serial ATA family, Hitachi Deskstar 7K80 family,
1153 and Maxtor DiamondMax 4320 Ultra ATA family
1155 [BA] Linux: compile fix for SuSE. Check for existence
1156 of linux/compiler.h and include in os_linux.h if
1157 present. Thanks to SB.
1159 [BA] smartd: DEVICESCAN will now pick up SATA/SAT devices
1160 attached to a SCSI device tree via SAT translation.
1161 Note: this is a bit of a hack. I will document it once
1162 I know if this needs to be Linux only or can have more
1163 general application.
1165 [BA] Added a couple SATA commands to the tables -- thanks DG!
1166 Phil -- how about going through and systematically adding
1167 these new commands to atacmdnames.cpp?
1169 [BA] Linux s86_64: get rid of some compiler warnings on
1170 x86_64 Linux systems.
1172 [CF] Windows: Added missing support for READ_LOG, ABORT_SELFTEST
1173 and CHECK_POWER_STATE for 3ware 9000 controllers. Thanks to
1174 Greg de Valois for implementing this new ioctl in the driver.
1176 [PW] Drive database: added Seagate NL35 SATA family. Thanks to Kai
1177 Harrekilde-Petersen for providing a patch.
1179 [DG] [SCSI, Windows] add SPT interface for NT and later. New device
1180 names are "pd<n>", "sd<l>" and "tape<n>".
1182 [PW] Drive database: added Western Digital Scorpio family, Fujitsu MHV
1183 family, Maxtor MaXLine Pro 500 family, and Maxtor DiamondMax 11
1186 [PW] Drive database: added missing drives from Toshiba 2.5" HDD
1187 (30-60 GB) family, Maxtor DiamondMax 10 family, Seagate Barracuda
1188 7200.8 family, Fujitsu MHT family, and Maxtor DiamondMax Plus 8
1191 [SB] Added examplescripts/Example4 using powersave-notify.
1193 [SB] More temperature monitoring examples in smartd.conf with DEVICESCAN.
1195 [SB] Minor improvements of SuSE part of init script.
1197 [CF] Drive database: added Samsung P80 series, P120 series, SP8004H
1200 [GG] Add CCISS (Compaq Smart Array Controller) support with contributions
1201 from Praveen Chidambaram, Douglas Gilbert, Guido Guenther and Frédéric
1204 [PW] Drive database: added Hitachi Deskstar T7K250 and Hitachi
1205 Deskstar 7K500 series. Thanks to L. J. Wu for providing a
1208 [PW] Drive database: added Maxtor MaXLine III family, Seagate U7
1209 family, Seagate ST34321A, FUJITSU MHM2060AT, FUJITSU MHT2040AS,
1210 Western Digital Caviar SE16 family, IBM Travelstar 4GT family,
1211 QUANTUM FIREBALLP KA9.1, QUANTUM FIREBALL SE4.3A, TOSHIBA
1212 MK1032GAX, TOSHIBA MK4026GAX
1214 [PW] Drive database: added missing drives from Western Digital Caviar
1215 SE (Serial ATA) and WD Raptor families
1217 [CF] Windows: Added support for 3ware 9000 controllers using extended
1218 SMART functionality in new 3ware driver. This includes DEVICESCAN
1219 support for at most 2 controllers. Thanks to Greg de Valois from
1220 AMCC/3ware for new driver features, development support and
1221 hardware for testing.
1223 [SZ] smartd: Support HighPoint RocketRAID controller under GNU/linux
1225 [DG] [SCSI] First cut for '-l background' to show background scan
1228 [SZ] smartctl: Support HighPoint RocketRAID controller under GNU/linux
1230 [KS] C++ compile fixes for Solaris with a few cleanups.
1232 [BA] C++ compile fixes for Darwin (thanks to CF)
1234 [CF] Removed old *.c files (now in CVS Attic).
1236 [CF] Added changes for C++ to platform independent and Windows
1239 [BA] Tagged last .c Version with PRE_MOVE_TO_CPP. Copied *.c,v
1240 to *.cpp,v in CVS repository to preserve history of source
1241 files. Removed sm5_Darwin repository.
1243 [CF] smartctl: Added -n option to skip checks when disk is in
1246 [CF] Windows: Added alternate system call for power state check
1247 because the PASS THROUGH calls may spin up the disk.
1249 [CF] smartd: Modified power state logging to report state changes
1250 instead of standby condition.
1252 [CF] smartd: Ignore -n directive on scheduled self tests.
1254 [DG] [SCSI] Make start stop cycle counter log page decoding
1257 [DG] Modify smartctl (but not smartd) to detect probable ATA
1258 devices behind a SAT layer. In the absence of an explicit
1259 device type, change to device type 'sat'.
1261 [DG] Add indication that controller (device) type has been
1262 explicitly set. Preparation for automatic detection of
1263 'sat' device type unless user specifies a device type.
1265 [SS] NetBSD: Deliver strings from ata_identify_device properly
1266 on little- and big-endian platforms.
1268 [BA] Added published ANSI ATA-7 spec to list of recognized ATA
1271 [BA] Code janitor: added missing header strings for '-V' option.
1273 [DG] [SATA] Extend 'sat' device type to allow either 12 or 16 byte
1274 variant of the SAT ATA PASS THROUGH SCSI command. Syntax is
1275 '-d sat,<n>' where <n> can be 0, 12 or 16 . The ',<n>' part
1276 is optional. Currently defaults to 16 byte variant but that
1277 could be made platform or even device dependent.
1279 [DG] [SATA] Add new 'sat' device type for SATA disks behind a
1280 SCSI to ATA Translation (SAT) Layer (SATL). Uses the ATA
1281 PASS THROUGH (16) SCSI command thence the generic SCSI
1282 passthrough for each platform.
1284 [CF] Windows: Added script and make targets to create installer
1285 with NSIS (http://nsis.sourceforge.net/)
1287 [CF] Updated hostname and links for new SourceForge CVS service.
1289 [CF] smartd: Added '-W' directive to track temperature changes
1290 and warn if temperature limits are reached.
1292 [CF] Windows: Added IOCTL_ATA_PASS_THROUGH (Win2003, XP SP2)
1293 for commands unsupported by SMART_IOCTL. Added device
1294 specific options to select subset and ordering of the ATA
1295 IOCTLs actually used. These options are specified as
1296 modifiers of the device name (/dev/hd[a-j]:[saic]+)
1298 [CF] Windows: Added support for drives 4-7 (/dev/hd[e-h]) via
1299 SMARTVSE.VXD on Win9x/ME. Thanks to Dariusz Rzonca for
1302 [DG] [SCSI/SATA linux] from lk 2.6.17 SATA disk identification in
1303 libata will change. Expand LibAta detection to see old
1304 identifier and new variant (VPD page 0x83).
1306 [BA] Identified Attribute 190 for Western Digital disks. This
1307 stores temperature in Celsius, just like Attribute 194.
1308 But it has a failure threshold set to correspond to the
1309 maximum design operating temperature of the disk, which
1310 is 55 Celsius on the WD800JD drives that I studied.
1311 So if this Attribute has 'failed
1312 in the past' this means that the maximum disk operating
1313 temperature has been exceeded.
1315 [GK] Darwin: Add support for AHCI drivers found in Intel-based Macs.
1317 smartmontools 5.36 Stable Release
1319 [BA] Linux: smartd/smartctl issue syntax hints to user if 3ware
1320 disk controller present with EITHER 3ware OR AMCC vendor
1321 name, and user syntax incorrect.
1323 [BA] Update copyright dates to 2006.
1325 [DG] [SCSI] Loosen sanity check on Seagate/Hitachi factory information
1326 log page so it is not skipped on recent Seagate SCSI disks.
1328 [CF] Added command 'smartd -q showtests' to list test schedules.
1330 [CF] Added command 'smartctl -P showall MODEL [FIRMWARE]' to list
1331 database entries for specific drives and firmware.
1333 [PW] Automatically set -v 9,minutes and -v 194,unknown for Maxtor
1334 DiamondMax D540X-4G drives.
1336 [DG] [SCSI] suppress various outputs when data fails sanity checks.
1337 Correct 'last n error events' log page indexing.
1339 [DG] [SCSI] changed smartctl exit status to reflect any problems in
1340 the most recent 20 self test logs [Leandro Santi]
1342 [DG] [SCSI] Fix process return value when scsiGetSmartData() fails
1343 in smartctl [Leandro Santi]
1345 [BA] Updated docs and error message to reflect Linux libata
1346 support for smartmontools starting with the 2.6.15 kernel
1347 series. Also init script support for the 'tinysofa' release.
1349 [DG] [SCSI] Mask dpofua bit when changing mode pages. Fix failure
1350 of 'smartctl -l error'.
1352 [EM] Fixed a problem with FreeBSD and 3Ware 'twe' devices
1354 [CF] Fixed a regexp in knowndrives table, added regexp syntax check
1355 via 'smartctl -P showall'.
1357 [CF] Cygwin & Windows: Fixed memory leak in function calling
1358 IOCTL_IDE_PASS_THROUGH. Thanks to Fred Schmidt for the problem
1361 [CF] Cygwin: added cygrunsrv support and commands "install", "remove"
1362 and "status" to smartd.initd.
1364 [SS] Fix runtime problems on big-engian NetBSD platforms (patch provided
1367 [CF] Cygwin smartd: Open smartd.conf in textmode to allow use of
1370 [CF] Cygwin smartd: Added option '--service' to allow smartd running
1371 as windows service via cygrunsrv. Useful in conjunction with new
1372 syslogd support added in Cygwin 1.5.15.
1374 [CF] Windows: Added patch to avoid output of non-ascii timezone names.
1376 [EM] Incorporate various patches to provide TWE support and support for
1377 multiple 3Ware cards, Power Check Support, and FreeBSD 6.x support.
1378 Thanks to Rudolf Cejka, Frank Behrens, and Jung-uk Kim.
1380 [DG] Silence gcc 4.0.1 compile warning concerning the difference in
1381 "signedness" in pointer assignments. Changes to SCSI code
1384 [PW] Additions to knowndrives table: added missing drive from Quantum
1385 Fireball Plus LM series, added QUANTUM BIGFOOT TS10.0A, added
1386 ExcelStor J680 and J880, added Western Digital Caviar RE Serial ATA
1387 series, added missing drives from Western Digital Caviar SE series,
1388 added Seagate Momentus 4200.2 series, added missing drives from
1389 Maxtor DiamondMax 10 series, added Fujitsu MHG and MHH series, and
1390 added Hitachi Travelstar 5K100 series.
1392 [PW] Additions to knowndrives table: added Fujitsu MHU2100AT, added
1393 Fujitsu M1623TAU, added missing drives from Seagate Barracuda
1394 7200.8 series, added Seagate Momentus 5400.2 series, and added
1395 QUANTUM FIREBALL CR8.4A.
1397 [PW] Additions to knowndrives table: added missing drive from Maxtor
1398 MaxLine II series, added Maxtor DiamondMax 2880 Ultra ATA series,
1399 added Maxtor DiamondMax 17 VL series, added Hitachi Deskstar 7K80
1400 series, and added Hitachi Deskstar 7K400 series.
1402 [CF] Windows: Fixed unsupported 'smartctl -X' on Win2000/XP by using
1403 IOCTL_IDE_PASS_THROUGH instead.
1405 smartmontools 5.34 Stable Release [NOTE: never officially released]
1407 [CF] Cygwin & Windows smartd: Increased SCSI DEVICESCAN range
1408 from ASPI adapter 0-3 to 0-9. Added diagnostic messages.
1410 [CF] Windows smartd: Added ability to run .bat files via '-M exec'
1413 [CF] Cygwin smartd: Added FreeConsole() after fork() to avoid hang
1414 of terminated shell console window.
1416 [DG] [SCSI] Add code so 'smartctl -A' outputs the number of elements
1417 in the grown defect list. When this number is increasing a
1418 disk has problems. N.B. Similar logic should be added to smartd.
1420 [CF] Windows smartd: Fixed event handling to allow start of another
1421 smartd process when service is already running. Useful for testing
1422 service configuration changes in debug mode.
1424 [PW] Added following drives to knowndrives table: Western Digital Raptor
1425 family, Seagate Barracuda 7200.8 family, Maxtor DiamondMax 2160
1426 Ultra ATA and DiamondMax 10 families, Hitachi Travelstar E7K60
1427 family, Seagate Medalist 17240, 13030, 10231, 8420, and 4310,
1428 TOSHIBA MK4018GAP and MK6022GAX, ExcelStor Technology J360, and
1429 Western Digital Caviar AC14300.
1431 [PW] Added missing Fujitsu MHTxxxxAT and Seagate Barracuda 7200.7 drives
1432 to knowndrives table.
1434 [PW] Added QUANTUM FIREBALLP LM10.2 to knowndrives table. Thanks to
1435 Mike Fleetwood for submitting the patch.
1437 [KS] Solaris/SPARC: fixed not to disable automatic offline test and
1438 automatic save attributes incorrectly. Thanks to Roy Badami.
1440 [BA] Linux: smartd init script now recognizes 'trustix' distro.
1442 [DG] [SCSI] Medium and hardware errors were slipping through
1443 unreported. Fix linux SCSI sense reporting via SG_IO ioctl.
1445 [DG] [SCSI] Change lba of first failure in selftest output to
1446 decimal (was hex) to conform with ATA output.
1448 [GK] smartd: Detect most self-test failures even if the hour counter
1451 [BA] smartctl: list 'marvell' as option if user give invalid
1454 [CF] Windows: fixed SCSI timeout handling to allow long timeouts
1457 [CF] Fixed buffer overflow issues in printone() and safe_vsnprintf()
1458 which results in crash on -V option (at least on Windows).
1460 [DG] [SCSI] Add explicit timeouts to INQUIRY and REQUEST SENSE (that
1461 were missed in an earlier patch). Could have impacted freebsd.
1463 [DG] When linux detects a sata_via_libata disk suggest that user try
1464 '-d ata' (rather then '-d libata). Anticipate kernel change.
1466 [YD] Added OS/2 and eComStation platform support.
1468 [PW] Added Seagate U4 family, Fujitsu MHJ and MHK families, Seagate
1469 Barracuda 5400.1, QUANTUM FIREBALLP KX27.3, QUANTUM FIREBALLP KA10.1,
1470 and ExcelStor J340 to knowndrives table.
1472 [DG] [SCSI] After report of Hitachi IC35L073UCDY10 disks locking up
1473 on log page 0x7 (last n error events), check log page (and some
1474 others) is supported (via log page 0x0) before probing.
1476 [CF] Added safe_v?snprintf() for platforms using v?snprintf()
1477 with non standard behaviour on overflow (Windows, old Linux)
1479 [CF] smartd: Added message if check power mode spins up disk.
1481 [CF] Windows: Added support for READ_LOG on WinNT4 using undocumented
1482 pseudo SCSI command via IOCTL_SCSI_PASS_THROUGH.
1484 [CF] smartd: Added ',q' option for '-n' directive to suppress 'skipping
1485 checks' log message. This prevents a laptop disk from spinning up
1486 due to this message. Thanks to Rob MacLachlan and Manfred Schwarb
1487 for pointing out problem & solution.
1489 [CF] Windows: Added function get_os_version_str() to show OS flavor in
1492 [CF] Windows: Added function ata_identify_is_cached() to check for outdated
1493 SMART enabled bit in identify data.
1495 [CF] Windows: Added fix to prevent linkage of smartd specific win32 modules
1498 [PW] Added Fujitsu MPG3153AH, Hitachi Endurastar J4K20/N4K20 (formerly
1499 DK23FA-20J), Seagate Momentus family, and Maxtor Fireball 3 family
1500 to knowndrives table.
1502 [PW] Added missing Maxtor DiamondMax 16, Seagate Barracuda ATA IV, and
1503 Western Digital Caviar WDxxxAA/WDxxxBA drives to knowndrives table.
1505 [CF] Windows: Added ATA check power mode for smartd -n directive.
1507 [CF] Windows: Fixed use of new service status flag which causes hang
1508 of smartd service on WinNT4.
1510 [CF] Windows: Fixed error checking of IOCTL_IDE_PASS_THROUGH (used
1511 for READ_LOG on 2000/XP). Added some diagnostic messages on
1512 -r ataioctl[,2]. Thanks to Manfred Schwarb for bug report and testing.
1514 [BA] Fixed code bug that made it impossible to enable SMART on
1515 disks with failing health status. This would happen if the
1516 os_*.c author made STATUS and STATUS_CHECK work the same way.
1517 I have corrected this at a higher level; we now handle the
1518 case where STATUS and STATUS_CHECK are identical without
1521 [LW] Make os_linux.c/marvell_command_interface() always return 0 on STATUS.
1522 Needed for a disk having bad SMART status.
1524 [CF] smartctl: Added drive family printing.
1526 [CF] autogen.sh: Allow automake 1.9, added message if automake
1529 [BA] smartctl: use locale-specific separators for printing disk
1530 capacity. Also use AC_CHECK_HEADERS not AC_CHECK_HEADER in
1533 [BA] clean-up of #include structure so that -V options to smartd
1534 and smartctl work correctly. Please, don't #include header
1535 files into other header files.
1537 smartmontools 5.33 Experimental Release
1539 [BA] smartctl: ATA disks, if SMART ATTRIBUTE THRESHOLDS page has ID
1540 errors with some Attributes having NULL IDs, print Attribute
1541 info anyway (but issuing a warning to the user).
1543 [DG] [SCSI] Decode Last n error events log page; decode track following
1544 and positioning errors [Hitachi]
1546 [EM] FreeBSD: another tweak, __packed__ introduced in Version 5.0040
1548 [EM] Cleaner tweak of fixes for FreeBSD 4.x.
1550 [EM] Fix compilation errors under FreeBSD 4.x, as it is still using
1553 [EM] Remove 3ware/FreeBSD specific files and just include pieces we need
1555 [DG] Add logic in smartd to detect 3ware, Marvell controllers and SATA
1556 disks behind an ATA-SCSI simulator (in Linux). If specific device
1557 types are not given and they are picked in a general SCSI device
1558 scan then warn and skip.
1560 [GG] insert correct path to smartd into smartd's init script
1562 [BA] Changed all default paths in documentation to reflect /usr/local as
1563 default path prefix. This affects on-line man pages, primarily.
1565 [DS] Added support for OpenBSD
1567 [BA] Added another environment variable SMART_FULLMESSAGE set by
1568 the smartd mailing feature, and modified examplescripts/Example1
1571 [BA] Fixed potentially misleading messages of the form:
1574 [DG] emit warning if SATA disk detected using libata in Linux; then exit
1576 [PW] Added Seagate U10 family, Hitachi Travelstar 7K60, Fujitsu MHR2020AT,
1577 and QUANTUM FIREBALLP AS20.5 to knowndrives table.
1579 [DG] Detect 3ware and Marvell controllers from SCSI INQUIRY vendor string
1580 and suggest usage of appropriate '-d' argument in smartctl.
1582 [LW] Tested the RELEASE_5_33_WITH_MARVELL_SUPPORT branch on
1583 actual Marvell 88SX5041 hardware, with success.
1586 [BA] Fixed nasty DEVICESCAN bug
1588 [BA] Checked in RELEASE_5_33_WITH_MARVELL_SUPPORT branch with
1589 some Marvell support.
1591 [BA] Additional modifications of Ed's controller scheme. Fixed
1592 broken 3ware support under linux, problems with scanning
1593 devices in smartd, and other small problems.
1595 [CF] Added make targets to build formatted man pages (htmlman, txtman),
1596 Windows distribution (dist-win32) and MSVC6 config.h (config-vc6).
1598 [EM] Minor change to FreeBSD inclusion of 'twe' include files. Add
1599 code to check if they exising in /usr/include/sys to use those
1600 in preference to ones added here
1602 [EM] Very preliminary support attempt for 3Ware controllers under
1603 FreeBSD. Also, switched 'escalade_type/escalade_port' to
1604 'controler_type/controller_port' and moved away from
1605 'tryata/tryscsi' to using new 'controller*' variables to
1606 determine which controller type (ATA/SCSI/3Ware) to use.
1608 [GK] Added initscript support for Darwin.
1610 [CF] Windows smartd: Added ability to run smartd as a windows service,
1611 including new commands "smartd install ..." and "smartd remove"
1612 to install and remove the service registry entry.
1614 [BA] smartd: warn user if -s regexp regular expression contains
1615 characters other than 0123456789.*()|+?[-]{}:=SLCO since such
1616 characters are 'suspicous' and may indicate a poorly formed
1617 regexp. Extended regular expression gurus: can this list be
1620 [CF] Fixed bug in Windows smartd: Missing close of config file when
1621 configuration is reloaded by smartd daemon.
1623 [CF] Windows smartd: Added mail warning feature using the "Blat"
1624 (http://blat.sourceforge.net/) mailer as a default.
1626 [PW] Added Maxtor DiamondMax Plus 5120 Ultra ATA 33 series and TOSHIBA
1627 MK3017GAP to knowndrives table.
1629 [CF] Added fixes to build smartmontools on old Linux systems
1630 (libc < 6, Kernel 2.0.x).
1632 [BA] Added ATA minor version identity strings for latest ATA specification
1633 updates: ATA/ATAPI-7 T13 1532D revision 4a and ATA/ATAPI-6 published,
1634 ANSI INCITS 361-2002
1636 [PW] Added Hitachi Travelstar 5K80 family and Fujitsu MHTxxxxAH family to
1639 [EM] Fix up compilation under FreeBSD < 5.x
1641 [PW] Added QUANTUM FIREBALL EX3.2A and missing Western Digital Caviar SE
1642 drives to knowndrives table.
1644 [BA] Modified Hitachi Travelstar 80GN family regexp in drive database.
1645 Thanks to [GK/CF] for problem & solution.
1647 [GK] Added os_darwin.[ch]
1649 [PW] Added the following drives to the knowndrives table: IBM Travelstar
1650 48GH, 30GN, and 15GN family; IBM Deskstar 37GP and 34GXP family;
1651 Western Digital WDC WD272AA; Maxtor DiamondMax D540X-4D family;
1652 TOSHIBA MK2016GAP, MK2018GAP, MK2018GAS, MK2023GAS; and
1653 QUANTUM FIREBALL ST3.2A
1655 [BA] smartd/smarctl now print build HOST/OS information as part
1656 of startup slogan. This should make it slightly easier to
1657 read bug reports from users.
1659 [RZ] Fixed the DEVICESCAN to do what it was supposed to do - give
1660 error message unless scanning is in progress.
1662 [BA] Update documentation to describe 3ware character devices. Better
1663 error detection for missing/malfunctioning devices behind 3ware
1664 controllers. Now pack 3ware ioctl structures explicitly.
1666 [BA] For ATA devices that support LBA mode, print capacity as part
1669 [RZ] Made DEVICESCAN quiet about non-existing devices unless debug
1672 [DG] treat "unit attention" SCSI warning as try again in some contexts
1673 (test unit ready and mode sense)
1675 [BA] on drives that store max/min rather than min/max, get order
1676 correct in printing temp.
1678 [BA] fixed typo in 'smartctl -h' output. Thanks to Gabor Z. Papp.
1680 [BA] linux: clean-up to 3ware/AMCC support; dynamically create
1681 or fix /dev/tw[ae][0-15] device node entries if they don't
1682 exist or are incorrect. One can now use the character devices
1683 /dev/twe[0-15] OR /dev/sd? for 3ware 6000/7000/8000 series
1684 cards. One must use /dev/twa[0-15] for 3ware 9000 series cards.
1685 Note that selective self-tests now work via /dev/tw[ae] devices.
1686 Next step: documentation.
1688 [BA] linux: experimental "support" for 3ware/AMCC 9000 series
1689 controllers that use the 3w-9xxx driver. This will be in a
1690 state of flux for a few days. Note that this requires the
1691 character interface /dev/twa[0-15].
1693 [DG] linux: extend general SCSI OS interface to use the SG_IO ioctl. If
1694 not available, use the older SCSI_IOCTL_SEND_COMMAND ioctl.
1696 [KS] Solaris/x86: fixed system identification problem in configure
1697 script. Thanks to Stuart Swales.
1701 [BA] Update link to revised/updated IBM Deskstar Firmware
1703 [CF] Cygwin & Windows: Added missing ASPI manager initialization
1704 with GetASPI32SupportInfo(). Thanks to Nikolai SAOUKH for pointing
1705 this out and providing a patch.
1707 [BA] modified smartd init script to work on whitebox (thanks to
1710 [BA] removed (reverted) additional Attribute definitions from
1711 http://smart.friko.pl/attributes.php. All (or most?) of these
1712 appear to be return code values for the WD Digital Life Guard Utility.
1714 [PW] Added Seagate Medalist 17242, 13032, 10232, 8422, and 4312 to
1715 knowndrives table. Added missing Seagate U Series 5 drives.
1717 [PW] Added the following QUANTUM models to knowndrives table:
1718 FIREBALL EX6.4A, FIREBALLP AS10.2, FIREBALLP AS40.0, FIREBALL CR4.3A,
1719 FIREBALLP LM15, FIREBALLP LM30, and FIREBALLlct20 30
1721 [PW] Added missing Western Digital Protege drives to knowndrives table.
1723 [PW] Added Maxtor DiamondMax 40 ATA 66 series and DiamondMax 40 VL Ultra
1724 ATA 100 series to knowndrives table.
1726 [PW] Added the following Hitachi/IBM drives to knowndrives table:
1727 HITACHI_DK14FA-20B, Travelstar 40GNX series, Travelstar 4LP series,
1728 and Travelstar DK23XXB series. Added the missing Travelstar 80GN
1731 [PW] Added Fujitsu MPB series and MPG series to knowndrives table. Added
1732 the missing Fujitsu MHSxxxxAT drives.
1734 [KS] Solaris: added workaround for dynamic change of time-zone.
1736 [KS] Solaris: fixed problem that autogen.sh cannot detect absence of
1739 [BA] smartd: added time-zone bug information to man page.
1740 Reverted CF code for _WIN32 case.
1742 [CF] Cygwin & Windows: Added better error messages on IDE/ATA device
1745 [BA] added additional Attribute definitions from
1746 http://smart.friko.pl/attributes.php
1748 [BA] smartd: reworked TimeZone bug workaround so it is only invoked
1749 for glibc. Note: this might not be right -- a similar bug may
1750 exist in other platform's libcs.
1752 [DG] SCSI smartmontools documentation updated [2004/5/6]. See:
1753 http://smartmontools.sourceforge.net/smartmontools_scsi.html
1755 [CF] Windows: Fixed reset of TZ=GMT in glibc timezone bug workaround.
1759 [DG] move SCSI device temperature and start-stop log page output
1760 (smartctl) into --attributes section (was in --info section).
1762 [GG] change default installation location to /usr/local
1764 [CF] Cygwin smartd: Fixed crash on access of SCSI devices after fork().
1766 [PW] Added TOSHIBA MK4018GAS and the following Maxtor drive families
1767 to knowndrives table: DiamondMax D540X-4G, Fireball 541DX,
1768 DiamondMax 3400 Ultra ATA, DiamondMax Plus 6800 Ultra ATA 66.
1770 [PW] Added missing Maxtor DiamondMax 16, DiamondMax D540X-4K, and
1771 DiamondMax Plus 45 Ulta ATA 100 drives to knowndrives table.
1773 [PW] Added ExcelStor J240, Hitachi Travelstar 80GN family, Fujitsu
1774 MHTxxxxAT family, and IBM Deskstar 25GP and 22GXP families to
1777 [CF] Cygwin smartd: Added workaround for missing SIGQUIT via keyboard:
1778 To exit smartd in debug mode, type CONTROL-C twice.
1780 [BA] smartctl: printing of the selective self-test log is now
1781 controlled by a new option: -l selective
1783 [BA] Added entries for Samsung firmware versions -25 to -39 based
1784 on latest info about firmware bug fixes.
1786 [PW] Added Seagate U Series X family, Seagate U8 family, and Seagate
1787 Medalist 8641 family to knowndrives table.
1789 [CF] smartd: Added exit values 5/6 for missing/unreadable config file.
1791 [BA] smartd: now monitor the Current Pending Sector count (Attribute 197)
1792 and the Offline Pending Sector Count (Attribute 198). Log a
1793 warning (and send an email, if so configured) if the raw count
1794 is nonzero. These are controlled by new Directives: -C and -U.
1795 Currently they are enabled by default.
1797 [CF] Added option -c FILE, --configfile=FILE to smartd to specify
1798 an alternate configuration FILE or '-' for standard input.
1800 [KS] configure.in now searches for -lnsl and -lsocket for Solaris.
1802 [CF] Win32/native smartd: Added thread to combine several syslog output
1803 lines into one single event log entry.
1805 [CF] Win32 smartd: Added DEVICESCAN for SCSI/ASPI devices.
1807 [GG] Use gethostbyname() the get the DNS domain since getdomainname()
1808 returns the NIS domain when sending mails from smartd.
1810 [GG] smartd.init.in: pass smartd_opts to smartd on startup, read distribution
1811 specific configuration files if found
1813 [SS] smartctl: added NetBSD support for Selective Self-tests.
1815 [BA] smartd.conf example configuration file now has all examples
1816 commented out except for 'DEVICESCAN'.
1818 [CF] Win32/native smartd: Added ability to display warning "emails"
1819 as message box by "-m msgbox" directive. With "-m sysmsgbox",
1820 a system modal (always on top) message box is shown.
1822 [BA] smartctl: printing of self-test log for disks that support
1823 Selective self-testing now shows the status of the (optional)
1824 read-scan after the selective self test. Also, changed format
1825 in printing self-test log to print failing LBA in base 10 not
1826 base 16 (more compatible with kernel error messages). Also,
1827 in printing SMART error log, print timestamps in format
1828 days+hours+minutes+seconds.
1830 [CF] Win32 smartd: Added ability to log to stdout/stderr
1831 (-l local1/2). Toggling debug console still works
1832 if stdout is redirected.
1834 [BA] smartctl: selective self-test log, print current status
1835 in a more detailed way. Allow writing of selective self-test
1836 log provided that no other self-test is underway.
1838 [BA] Linux: eliminated dependency on kernel tree hdreg.h.
1840 [BA] smartctl: -l selftest option now prints Selective self-test
1841 log in addition to the normal self-test log.
1842 Added additional options (-t pending, -t afterselect) to
1843 control remaining Selective Self-test capabilities. Tested
1844 with several Maxtor disks. Modified error message printing
1845 so that munged option messages print at the end not the
1848 [CF] Added daemon support to Win32 native version of smartd.
1849 The daemon can be controlled by commands similar to initd
1850 scripts: "smartd status|stop|reload|restart|sigusr1|sigusr2".
1852 [CF] Added minor support for option "-l local[0-7]" to Win32 native
1853 (not Cygwin) version of smartd. If specified, the log output
1854 is written to file "./smartd[1-7]?.log" instead of event log.
1856 [BA] Added Selective Self-test to smartctl (-t selective,M-N).
1857 Currently only supported under Linux; Solaris, NetBSD, FreeBSD
1858 and Windows developers must add WRITE LOG functionality to
1861 [BA] Added workaround for an annoying glibc bug: if you change
1862 timezones, (eg, flying with a laptop from USA to Europe)
1863 localtime() does not notice this in a running
1864 executable, so time that appears in the system log (syslog!)
1865 will be incorrect. See
1866 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48184
1867 for additional examples of this bug.
1869 [DG] Set explicit timeouts for SCSI commands (most default to 6 seconds).
1870 Previously a 0 second timeout was meant to be interpreted as a
1871 default timeout but the FreeBSD port had a problem in this area.
1873 [CF] Fixed un-thread-safe exit signal handler for Win32
1875 [BA] Fixed un-thread-safe exit signal handler pointed out
1878 [BA] Changed configure script to eliminate warnings under
1879 Solaris from sys/int_type.h conflicts with int64.h
1880 Added header files for umask to smartd.c.
1882 [BA] Man page format change from Werner LEMBERG. " " changed to \&
1884 [CF] Added os_win32/syslogevt.* event message file tool for Win32
1885 smartd (native+cygwin). May also be useful for other cygwin
1886 programs writing to syslog().
1888 [CF] Added Win32 version of smartd
1890 [CF] Merged RELEASE_5_26_WIN32_BRANCH
1892 [BA] Made some changes to man page markup suggested by
1893 Richard Verhoeven to work around bugs in man2html.
1894 Tested not to break anything under Linux and Solaris.
1896 [CF] Moved PrintOut() from utility.c to smart{ctl,d}.c to avoid
1897 syslog() output of smartctl.
1899 [BA] Grew worried that some time-zone names could be very long (eg,
1900 Mitteleuropaische Zeit) and put date string lengths into a
1901 single macro in utility.c
1903 [EM] Updated os_freebsd.c to handle older versions of FreeBSD in a
1904 more appropriate/obvious fashion.
1906 [EM] Modified autogen.sh as FreeBSD installs automake 1.7 as
1907 'automake17' and NOT 'automake-1.7'
1911 [PW] Added QUANTUM FIREBALLlct15 30, QUANTUM FIREBALLlct20 40, and
1912 Maxtor 6Y060P0 (DiamondMax Plus 9 60GB) to knowndrives table.
1914 [PW] Added Maxtor MaXLine II family to knowndrives table (thanks to
1915 Brett Russ for submitting the patch).
1917 [BA] Added remaining read/write commands to detailed list of
1918 error log commands that have text descriptions of problem
1919 printed. For commands that support it, print number of failed
1920 sectors at problem LBA.
1922 [BA] Made SuSE section of smartd init script more SuSE 9 compatible.
1923 Thanks to Hans-Peter Jansen.
1925 [CF] Windows smartd: Added IDE/ATA device scan
1926 Added windows device names to smartctl.8.in, smartd.8.in
1928 [BA] smartctl/smartd: user-provided '-F samsung' and '-F samsung2'
1929 command line options/Directives did NOT over-ride preset values
1930 unless user specified '-P ignore'. Now they will always over-ride
1931 preset values from the database.
1933 [BA] Added error decoding for a few more READ and WRITE commands.
1935 [PW] Added Maxtor MaXLine Plus II, Western Digital Caviar SE (Serial ATA)
1936 series, Hitachi Deskstar 7K250 series, and Ultra ATA 66 models of
1937 the Maxtor DiamondMax Plus 40 series to knowndrives table.
1939 [BA] Added Maxtor Diamondmax 250 GB drives to database. Note that
1940 these model numbers are not listed in Maxtor documentation, but
1943 [BA] Removed the 'contact developers' phrase from the Samsung disk
1946 [PW] Added TOSHIBA MK2017GAP, IBM Deskstar 14GXP and 16GP series,
1947 Fujitsu MPC series, Seagate Barracuda ATA III family, and missing
1948 Seagate Barracuda U Series drives to knowndrives table
1950 [BA] smartd: wrong loglevel for message: Configuration file
1951 /etc/smartd.conf parsed. Changed to LOG_INFO from LOG_CRIT.
1952 Thanks to Emmanuel CHANTREAU for the report.
1954 [CF] Checked in development version of windows code base.
1956 smartmontools 5.29 (note: there was NO 5.28 release)
1958 [BA] smartd: configure script did not set correct directory to search for
1959 smartd.conf based on --prefix argument to ./configure. Thanks to
1960 GG for identifying the problem and fix.
1962 [BA] make clean now removes man pages (generated from *.in) files as well
1965 [EM] Correct copying of sense data in FreeBSD SCSI implementation. Thanks
1966 to Sergey Svishchev for noticing the bug.
1968 [BA] On solaris, wrong warning message if no ATA support. Warning message
1969 concerns 3ware controller, not ATA.
1971 [SS] Added SCSI support for NetBSD.
1973 [BA] on big-endian linux machines, fixed interpretation of HDIO_GET_IDENTITY
1974 to correctly identify ATAPI bit (was byte swapped). This should
1975 eliminate some SYSLOG noise if user queries a packet device (eg, CD
1978 [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives with
1979 A5AA/A6AA firmware. Thanks to Gerald Schnabel.
1981 [PW] Added Toshiba TOS MK3019GAXB SUN30G to knowndrives table
1983 [PW] Added Western Digital Caviar AC12500, AC24300, AC25100, AC36400,
1984 and AC38400 to knowndrives table
1986 [BA] When printing ATA error log, print the LBA at which READ
1987 or WRITE commands failed.
1989 [BA] Changed syntax of error message in smartctl
1991 [BA] Added versioning info (-V options to smartd/smartctl) for
1996 [KS] Added ATA/IDE support for Solaris/SPARC (ATA/IDE not yet for
1999 [BA] 3ware controllers: documented that one can monitor any of the
2000 physical disks from any of the 3ware /dev/sd? logical devices.
2001 Better warnings if querying a disk that does not exist.
2003 [PW] Added Hitachi Travelstar DK23DA series, Maxtor DiamondMax Plus 40
2004 series, Western Digital Caviar WDxxxAA, WDxxxBA, and WDxxxAB series
2005 to knowndrives table
2007 [BA] missing 'pragma pack' on ATA IDENTIFY DEVICE structure may have
2008 caused odd or incorrect results on 64-bit machines.
2010 [BA] smartctl/smartd allow inspection of self-test and error logs even
2011 if disk firmware claims that these don't exist. This is needed
2012 for some Maxtor disks whose firmware does not indicate log support
2013 even though the disk DOES support it.
2015 [BA] Improved porting instructions and documentation in os_generic.c
2017 [PW] Add Western Digital Caviar WD136AA and SAMSUNG SP40A2H (RR100-07
2018 firmware) to knowndrives table.
2020 [EM] FreeBSD: remove extra definition of FreeNonZero
2022 [BA] smartctl: the -q silent option was printing output for some
2023 error conditions. Fixed. Will rename relevant variables to help
2024 avoid these errors in the future.
2026 [SS] NetBSD port added.
2028 [BA] more sensible error messages for devfs and devfs-like systems.
2029 Instead of saying that the DIRECTORY does not exist, say that
2030 the DEVICE does not exist.
2032 [BA] smartd: added -n Directive, to prevent disk spin-up depending
2033 upon the power mode (SLEEP, STANDBY, or IDLE).
2035 [PW] Added Maxtor DiamondMax 20 VL series, Fujitsu MPF series,
2036 Maxtor DiamondMax 36 series, Maxtor DiamondMax 4320 series, and
2037 Maxtor DiamondMax 536DX series to knowndrives table.
2039 [BA] many warning messages now give the file name AND VERSION
2041 [BA] smartd: when the user provides multiple address recipients
2042 to the '-m' Directive in a comma-delineated list, the commas
2043 are stripped out before passing the list of addresses to the
2044 mailer program. (Thanks to Calin A. Culianu for pointing this out
2045 and providing a patch.)
2047 [BA] smartd: when the '-M exec path' Directive is used, any stdout OR
2048 stderr output from the executable "path" is assumed to indicate a
2049 problem, and is echoed to SYSLOG.
2051 [BA] Added all missing IBM/Hitachi Deskstar 180GXP models to knowndrives
2054 [PW] Added some missing IBM/Hitachi Deskstar 120GXP models to knowndrives
2057 [PW] Added IBM Travelstar 14GS to knowndrives table.
2059 [PW] Modified knowndrives table to match entire Hitachi Travelstar
2060 DK23BA and DK23EA series of drives (thanks to Norikatsu Shigemura
2061 for submitting the patch).
2063 [PW] Added some missing Fujitsu MPE series drives to knowndrives table.
2065 [PW] Added TOSHIBA MK4019GAX, TOSHIBA MK6409MAV, and QUANTUM
2066 FIREBALLlct15 20 to knowndrives table.
2068 [EM] Fixup example command output for FreeBSD
2070 [PW] Added Maxtor DiamondMax 80 family to knowndrives table.
2072 [EM] Catch up FreeBSD code to switch PROJECTHOME to PACKAGE_HOMEPAGE
2075 [BA] smartd: now watches stdout/stderr when trying to run mail, mailx
2076 or mail warning script, and reports any output to SYSLOG. This
2077 gives a clearer error message if something is wrong.
2079 [BA] smartd: Solaris init script modified to accomodate grep that
2080 lacks '-q' quiet option. Also check for running process to kill
2083 [PW] Added some missing Seagate Barracuda 7200.7 and 7200.7 Plus drives
2084 to knowndrives table.
2086 [PW] Added Maxtor DiamondMax Plus 60 family and Seagate U Series 5 20413
2087 to knowndrives table.
2089 [BA] smartd: under Solaris, made default mailer be 'mailx' not
2090 'mail', since Solaris 'mail' does not accept a '-s' argument.
2091 A workaround for Solaris users of earlier versions is to
2092 have '-M exec /bin/mailx' in their smartd.conf config file.
2094 [DG] some SCSI controllers don't like odd length transfers so make
2095 sure LOG SENSE transfers are rounded up to an even number when
2096 and odd length is reported (i.e. there is a double fetch, the
2097 first to find the length, the second gets the data)
2099 [BA] smartd man pages: under Solaris, correct section numbers in the
2102 [KS/BA] smartd man page: describe how to set Solaris syslog.conf
2103 file to catch all messages. Give correct Solaris SYSLOG default
2104 path /var/adm/messages in man pages.
2106 [BA] smartd: incorporated Debian startup script submitted by user.
2108 [BA] smartctl: modified printing of self-test log entry number. Seagate
2109 firmware can leave 'holes' in the self-test log while a test is
2110 actually running. We now print entry numbers consistently in this
2111 case, not assuming that entries are contiguous.
2113 [PW] Added QUANTUM FIREBALL CX10.2A and Western Digital Caviar AC23200L
2114 to knowndrives table.
2116 [PW] Added QUANTUM FIREBALLlct20 20 to knowndrives table.
2118 [PW] Added Maxtor DiamondMax Plus D740X family to knowndrives table.
2120 [PW] Added IBM Travelstar 32GH, 30GT, and 20GN family to knowndrives
2123 [BA] Slackware init script modified to search for /etc/slackware-version
2124 rather than /etc/slackware-release.
2126 [PW] Added Seagate Barracuda ATA II family and TOSHIBA MK4019GAXB to
2129 [GG] explain howto use autoreconf in autogen.sh
2131 [KS] Makefile.am/configure.in: changed manual page sections for
2134 [BA] smartd: reduced number of scheduled self-test messages if
2135 test already run in current hour.
2137 [PW] Added Maxtor DiamondMax Plus 8 family to knowndrives table.
2139 [BA] linux: check for linux/hdreg.h. If it's there, use it. If
2140 not, provide the necessary definitions ourselves.
2142 [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives
2143 with TXAOA5AA firmware
2145 [PW] Added IBM Travelstar 25GS, 18GT, and 12GN family to knowndrives
2148 [PW] Added IBM/Hitachi Travelstar 60GH & 40GN family to knowndrives
2151 [BA] smartd: made '-s' Directive more efficient. Now store
2152 compiled regex, and re-use. If device lacks certain self-test
2153 capabilities, track it and don't try again.
2155 [BA] smartd: made memory allocation for device lists completely
2156 dynamic (eliminating compile-time maximum length constants).
2158 [PW] Removed warning for SAMSUNG SP0802N with TK100-23 firmware
2160 [PW] Added Seagate Barracuda ATA IV family to knowndrives table.
2162 [BA] smartd: reduce per-device memory footprint by making
2163 mail-warning info dynamically allocated. Also remove
2164 potential memory leak if use has -m Directive twice and
2165 keeps reloading the config file (highly unlikely this would
2168 [DG] smartd: added SCSI scheduled self-tests (Background
2171 [BA] smartd: can now run scheduled offline immediate and
2172 self-tests. See man page and -s Directive for details.
2174 [GG] don't include manpages in make-dist-tarball.
2176 [BA] smartctl: on-line examples given with -h are now correct
2177 for solaris and linux, but wrong for freebsd. Ed?
2179 [BA] smartd: man page now explains device scanning for solaris as
2180 well as linux and freebsd.
2182 [BA] smartd/smartctl: man pages now report correct CVS tag release
2183 date, and executables '-V' options reports more build info.
2187 [BA] Improved user messages that appear from 'make install'
2189 [PW] Removed warning for SAMSUNG SP1213N with firmware TL100-23
2191 [BA] incorporated SuSE init script from user.
2193 [DG] if SCSI device is read only, then open it read only.
2195 [BA] when compiled on non-supported system (NOT linux, freebsd or solaris) then
2196 the run-time error messages now clearly say 'your system is not supported'
2197 and give clear directions.
2199 [BA] ./configure script now works correctly on SuSE linux boxes
2201 [BA] minor improvements to man pages
2203 [BA] simplified detection of packet (ATAPI, CD) devices.
2205 [BA] init script (redhat, mandrake, yellowdog) now uses correct
2206 strings for translation and is slightly more standard.
2208 [DG] smartctl: output scsi Seagate vendor pages for disks (not tapes)
2212 Note: there was no '5.24' release. From this point on, even numbered
2213 releases will be 'stable' ones and odd numbered releases will be
2214 unstable/testing/development ones.
2216 [DG] smartd/smartctl: changed scsiClearControlGLTSD() to
2217 scsiSetControlGLTSD() with an 'enabled' argument so '-S on'
2218 and '-S off' work for SCSI devices (if changing GLTSD supported).
2220 [BA] smartd/smartctl: wired in scsiClearControlGLTSD(). Could still
2221 use a corresponding Set function. Left stubs for this purpose.
2223 [DG] scsicmds: added scsiClearControlGLTSD() [still to be wired in]
2225 [BA] smartctl: make SCSI -T options behave the same way as the
2228 [DG] smartctl: output scsi transport protocol if available
2230 [DG] scsi: stop device scan in smartd and smartctl if badly formed
2231 mode response [heuristic to filter out USB devices before we
2232 (potentially) lock them up].
2234 [BA] smartd: deviceclose()->CloseDevice(). Got rid of SCSIDEVELOPMENT
2235 macro-enabled code. Added -W to list of gcc specific options to
2236 always enable. Made code clean for -W warnings.
2238 [PW] Added Maxtor DiamondMax VL 30 family to knowndrives table.
2240 [DG] scsi: add warning (when '-l error' active) if Control mode page
2241 GLTSD bit is set (global disable of saving log counters)
2243 [DG] scsi: remember mode sense cmd length. Output trip temperature
2244 from IE lpage (IBM extension) when unavailable from temp lpage.
2246 [BA] smartd: for both SCSI and ATA now warns user if either
2247 the number of self-test errors OR timestamp of most
2248 recent self-test error have increased.
2250 [DG] smartctl: output Seagate scsi Cache and Factory log pages (if
2251 available) when vendor attributes chosen
2253 [DG] smartd: add scsiCountFailedSelfTests() function.
2255 [DG] Do more sanity checking of scsi log page responses.
2257 [BA] smartd: now warns user if number of self-test errors has
2258 increased for SCSI devices.
2260 [BA] smartd: warn user if number of ATA self-test errors increases
2261 (as before) OR if hour time stamp of most recent self-test
2264 [DG] More checks for well formed mode page responses. This has the side
2265 effect of stopping scans on bad SCSI implementations (e.g. some
2266 USB disks) prior to sending commands (typically log sense) that
2269 [PW] Added Western Digital Caviar family and Caviar SE family to
2272 [BA] smartd: added -l daemon (which is the default value if -l
2275 [PW] Added Seagate Barracuda ATA V family to knowndrives table.
2277 [BA] smartd: added additional command line argument -l FACILITY
2278 or --logfacility FACILITY. This can be used to redirect
2279 messages from smartd to a different file than the one used
2280 by other system daemons.
2282 [PW] Added Seagate Barracuda 7200.7, Western Digital Protege WD400EB,
2283 and Western Digital Caviar AC38400 to knowndrives table.
2285 [BA] smartd: scanning should now also work correctly for
2286 devfs WITHOUT traditional links /dev/hd[a-t] or /dev/sd[a-z].
2288 [PW] Added Maxtor 4W040H3, Seagate Barracuda 7200.7 Plus,
2289 IBM Deskstar 120GXP (40GB), Seagate U Series 20410,
2290 Fujitsu MHM2100AT, MHL2300AT, MHM2150AT, and IBM-DARA-212000
2291 to knowndrives table.
2293 [PW] Added remaining Maxtor DiamondMax Plus 9 models to knowndrives
2296 [EM] smartd: If no matches found, then return 0, rather than an error
2297 indication, as it just means no devices of the given type exist.
2298 Adjust FreeBSD scan code to mirror Linux version.
2300 [BA] smartd: made device scan code simpler and more robust. If
2301 too many devices detected, warn user but scan as many
2302 as possible. If error in scanning, warn user but don't
2305 [EM] smartd: To keep as consistent as possible, migrate FreeBSD
2306 devicescan code to also use glob(3). Also verified clean
2307 compile on a 4.7 FreeBSD system.
2309 [BA] smartd: Modified device scan code to use glob(3). Previously
2310 it appeared to have trouble when scanning devices on an XFS
2311 file system, and used non-public interface to directory
2312 entries. Problems were also reported when /dev/ was on an
2313 ext2/3 file system, but there was a JFS partition on the same
2316 [BA] Clearer error messages when device scanning finds no suitable
2319 [EM] FreeBSD: Fixup code to allow for proper compilation under
2324 [BA] smartd: didn't close file descriptors of ATA packet devices
2325 that are scanned. Fixed.
2327 [BA] Added reload/report targets to the smartmontools init script.
2328 reload: reloads config file
2329 report: send SIGUSR1 to check devices now
2333 [EM] Fix compile issues for FreeBSD < 5-CURRENT.
2335 [PW] Added Fujitsu MHM2200AT to knowndrives table.
2337 [BA] To help catch bugs, clear ATA error structures before all
2338 ioctl calls. Disable code that attempted to time-out on SCSI
2339 devices when they hung (doesn't work).
2341 [BA] Documented STATUS/ERROR flags added by [PW] below.
2343 [BA] Improved algorithm to recognize ATA packet devices. Should
2344 no longer generate SYSLOG kernel noise when user tries either
2345 smartd or smartctl on packet device (CD-ROM or DVD). Clearer
2346 warning messages from smartd when scanning ATA packet device.
2348 [PW] Added TOSHIBA MK4025GAS to knowndrives table.
2350 [PW] Added a textual interpretation of the status and error registers
2351 in the SMART error log (ATA). The interpretation is
2352 command-dependent and currently only eight commands are supported
2353 (those which produced errors in the error logs that I happen to
2356 [BA] added memory allocation tracking to solaris code.
2357 Fixed solaris signal handling (reset handler to default
2358 after first call to handler) by using sigset. Added
2359 HAVE_SIGSET to configure.in
2361 [CD] solaris port: added SCSI functionality to solaris
2364 [BA] smartd: attempt to address bug report about smartd
2365 hanging on USB devices when scanning:
2366 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=107615
2367 Set a timeout of SCSITIMEOUT (nominally 7 seconds) before
2370 [EM] smartd: DEVICESCAN will follow links in a devfs filesystem and
2371 make sure the end point is a disc. Update documentation, added
2372 note about FreeBSD scanning
2374 [BA] smartd: DEVICESCAN also looks for block devices in
2375 /dev. Updated documentation. Now scans for up to
2376 20 ATA devices /dev/hda-t rather than previous 12
2379 [EM] smartd: mirror the FreeBSD DEVICESCAN logic for Linux,
2380 so that smartd now scans only devices found in /dev/. Also,
2381 make utility memory functions take a line number and file so
2382 that we report errors with the correct location.
2384 [GG] add a note about Debian bug #208964 to WARNINGS.
2386 [BA] smartctl: -T verypermissive option broken. Use
2387 -T verpermissive until the next release, please.
2389 [BA] Syntax mods so that code also compiles on Solaris using
2390 Sun Workshop compiler. Need -xmemalign 1i -xCC flags
2395 [DK] Changed configure.in so -Wall is only included if gcc
2396 is used (this is a gcc specific flag) and -fsignedchar
2397 is not used at all (this is a gcc specific compiler
2400 [BA] Modifications so that code now compiles under solaris. Now
2401 all that's needed (:-) is to fill in os_solaris.[hc]. Added
2402 os_generic.[hc] as guide to future ports. Fixed -D option
2403 of smartd (no file name). Modified -h opt of smartd/smartctl
2404 to work properly with solaris getopt().
2406 [EM] Update MAN pages with notes that 3ware drives are NOT supported
2407 under FreeBSD. Cleanup FreeBSD warning message handling.
2409 [EM] FreeBSD only: Fix first user found bug....I guess I was making
2410 the wrong assumption on how to convert ATA devnames to
2411 channel/unit numbers.
2413 [EM] Allow for option --enable-sample to append '.sample' to installed
2414 smartd.conf and rc script files. Also, let rc script shell setting
2415 be determined by configure
2417 [EM] Minor autoconf update to include -lcam for FreeBSD
2419 [EM] Add conditional logic to allow FreeBSD to compile pre-ATAng.
2421 Add some documentation to INSTALL for FreeBSD.
2423 [EM] Implement SCSI CAM support for FreeBSD. NOTE: I am not an expert
2424 in the use of CAM. It seems to work for me, but I may be doing
2425 something horribly wrong, so please exercise caution.
2427 [EM] Switch over to using 'atexit' rather than 'on_exit' routine. This also
2428 meant we needed to save the exit status elsewhere so our 'Goodbye'
2429 routine could examine it.
2431 [EM] Move the DEVICESCAN code to os specific files. Also moved some of the
2432 smartd Memory functions to utility.c to make available to smartctl.
2434 [EM] Code janitor work on os_freebsd.c.
2436 [EM] Added os_freebsd.[hc] code. Additional code janitor
2439 [BA] Code janitor working, moving OS dependent code into
2442 [GG] conditionally compile os_{freebsd,linux}.o depending on
2445 [PW] Print estimated completion time for tests
2447 [BA] Added -F samsung2 flag to correct firmware byte swap.
2448 All samsung drives with *-23 firmware revision string.
2452 [GG] Fixed broken Makefile.am (zero length smartd.conf.5
2453 was being created), fix broken uninstall/distcheck targets
2455 [FM] Improved Slackware init script added to /etc/smartd.initd
2457 smartmontools 5.19 [NOTE CHANGE OF RELEASE NUMBERING]
2459 [BA] smartctl: added '-T verypermissive' option which is
2460 equivalent to giving '-T permissive' many times.
2462 [BA] Try harder to identify from IDENTIFY DEVICE structure
2463 if SMART supported/enabled. smartd now does a more
2464 thorough job of trying to assess this before sending
2465 a SMART status command to find out for sure.
2467 [BA] smartctl: it's now possible to override the program's
2468 guess of the device type (ATA or SCSI) with -d option.
2470 [BA] try hard to avoid sending IDENTIFY DEVICE to packet
2471 devices (CDROMS). They can't do SMART, and this generates
2472 annoying syslog messages. At the same time, identify type
2475 [BA] smartctl: Can now use permissive option more
2476 than once, to control how far to go before giving up.
2478 [BA] smartd: if user asked to monitor either error or self-test
2479 logs (-l error or -l selftest) WITHOUT monitoring any of the
2480 Attribute values, code will SEGV. For 5.1-18 and earlier,
2481 a good workaround is to enable Auto offline (-o on).
2483 [BA] smartctl: If enable auto offline command given, update auto
2484 offline status before printing capabilities.
2486 [GG] Make autotools build the default, remove autotools.diff
2488 [GG] Add auto{conf,make} support, not enabled by default.
2490 [BA] Eliminated #include <linux/hdreg.h> from code. This
2491 should simplify porting to solaris, FreeBSD, etc. The
2492 only linux-specific code is now isolated to three routines,
2493 one for SCSI, one for Escalade, one for ATA.
2495 smartmontools 5.1-18
2497 [BA] smartd: fixed serious bug - Attributes not monitored unless
2498 user told smartd to ignore at least one of them!
2500 smartmontools 5.1-17
2502 [BA] Default runlevels for smartd changed from 3 and 5 to
2505 [BA] Removed as much dynamic memory allocation as possible from
2506 configuration file parsing. Reloading config file, even in
2507 presence of syntax errors etc. should not cause memory leaks.
2509 [PW] It is no longer permissible for the integer part (if any) of
2510 arguments to --report and --device to be followed by non-digits.
2511 For example, the "foo" in --report=ioctl,2foo was previously
2512 ignored, but now causes an error.
2514 [BA] smartd: added -q/--quit command line option to specify
2515 under what circumstances smartd should exit. The old
2516 -c/--checkonce option is now obsoleted by this more
2517 general-purpose option.
2519 [BA] smartd now responds to a HUP signal by re-reading its
2520 configuration file /etc/smartd.conf. If there are
2521 errors in this file, then the configuration file is
2522 ignored and smartd continues to monitor the devices that
2523 it was monitoring prior to receiving the HUP signal.
2525 [BA] Now correctly get SMART status from disks behind 3ware
2526 controllers, thanks to Adam Radford. Need 3w-xxxx driver
2527 version 1.02.00.037 or later. Previously the smartmontools
2528 SMART status always returned "OK" for 3ware controllers.
2530 [BA] Additional work on dynamic memory allocation/deallocation.
2531 This should have no effect on smartctl, but clears that way
2532 for smartd to dynamically add and remove entries. It should
2533 also now be easier to modify smartd to re-read its config
2534 file on HUP (which is easy) without leaking memory (which is
2535 harder). The philosophy is that memory for data structures in
2536 smartd is now allocated only on demand, the first time it
2539 [BA] smartd: finished cleanup. Now use create/rm functions for
2540 cfgentries and dynamic memory allocation almost everywhere.
2541 Philosophy: aggresively try and provoke SEGV to help find
2544 [BA] Added SAMSUNG SV0412H to knowndrives table.
2546 [BA] smartd: if DEVICESCAN used then knowndrives table might not set
2547 the -v attributes correctly -- may have been the same for all
2548 the drives. Cleaned up some data structures and memory
2549 allocation to try and ensure segvs if such problems are
2552 [BA] Now allow -S on and -o on for the 3ware device type. For these
2553 commands to be passed through, the stock 3ware 3w-xxxx driver
2554 must be patched (8 lines). I'll post a patch on the smartmontools
2555 home page after it's been tested by a few other people and 3ware
2556 have had a chance to look it over.
2558 smartmontools-5.1-16
2560 [BA] smartd - can now monitor ATA drives behind 3ware controllers.
2562 [BA] smartd - changed some FATAL out of memory error messages from
2563 syslog level LOG_INFO to LOG_CRIT.
2565 [BA] smartctl - added code to look at ATA drives behind 3ware RAID
2566 controllers using the 3w-xxxx driver. Note that for technical
2567 reasons related to the 3w-xxxx driver, the "Enable Autosave",
2568 "Enable Automatic Offline" commands are not implemented.
2569 I will add this to smartd shortly.
2571 [BA] smartd - modified sleep loop, so that smartd no longer comes
2572 on the run queue every second. Instead, unless interrupted,
2573 it sleeps until the next polling time, when it wakes up. Now
2574 smartd also tries to wake up at exactly the right
2575 intervals (nominally 30 min) even if the user has been sending
2578 [GG] add Fujitsu MHN2300AT to vendoropts_9_seconds.
2580 [EB] Fujitsu change in knowndrives ... match the whole MPD and
2581 MPE series for vendoropts_9_seconds.
2583 [BA] smartd bug, might cause segv if a device can not be opened. Was
2584 due to missing comma in char* list. Consequence is that email
2585 failure messages might have had the wrong Subject: heading for
2586 errorcount, FAILEDhealthcheck, FAILEDreadsmartdata, FAILEDreadsmarterrorlog,
2587 FAILEDreadsmartsefltestlog, FAILEDopendevice were all displaced by
2588 one. And FAILEDopendevice might have caused a segv if -m was being
2589 used as a smartd Directive.
2591 smartmontools-5.1-15
2593 [BA] Cleaned up smartmontools.spec so that upgrading, removing
2594 and other such operations correctly preserve running behavior
2595 and booting behavior of smartd.
2597 [BA] Improved formatting of ATA Error Log printout, and added
2598 listing of names of commands that caused the error. Added
2599 obsolete ATA-4 SMART feature commands to table, along with
2600 obsolete SFF-8035i SMART feature command.
2602 [PW] Added atacmdnames.[hc], which turn command register &
2603 feature register pairs into ATA command names.
2605 [BA] Added conveyance self-test. Some code added for selective
2606 self-tests, but #ifdefed out.
2608 [BA] Modified smartd exit status and log levels. If smartd is
2609 "cleanly" terminated, for example with SIGTERM, then its
2610 exit messages are now logged at LOG_INFO not LOG_CRIT
2612 [BA] Added Attribute IDs (Fujitsu) 0xCA - 0xCE. This is decimal
2613 202-206. Added -v switches for interpretation of Attributes
2616 [BA] Made smartmontools work with any endian order machine for:
2617 - SMART selftest log
2618 - SMART ATA error log
2619 - SMART Attributes values
2620 - SMART Attributes thesholds
2621 - IDENTIFY DEVICE information
2623 Smartmontools is now free of endian bias and works correctly
2624 on both little- and big-endian hardware. This has been tested by
2625 three independent PPC users on a variety of ATA and SCSI hardware.
2627 [DG] Check that certain SCSI command responses are well formed. If
2628 IEC mode page response is not well formed exit smartctl. This
2629 is to protect aacraid. smartd should ignore a aacraid device.
2631 smartmontools-5.1-14
2633 [BA] smartctl: added column to -A output to show if Attributes are
2634 updated only during off-line testing or also during normal
2637 smartmontools-5.1-13
2639 [BA] smartd: attempt to enable/disable automatic offline testing even
2640 if the disk appears not to support it. Now the same logic
2643 [BA] Added definition of Attribute 201, soft read error rate.
2645 [BA] Added IBM/Hitachi IC35L120AVV207-1 (GXP-180) and corresponding
2646 8MB Cache GXP-120 to drive database.
2648 [BA] smartd: if DEVICESCAN Directive used in smartd.conf, and
2649 -I, -R or -r Directives used in conjunction with this, got
2650 segv errors. Fixed by correcting memory allocation calls.
2652 [BA] smartd: enable automatic offline testing was broken due
2653 to cut-and-paste error that disabled it instead of
2654 enabling it. Thanks to Maciej W. Rozycki for pointing
2655 out the problem and solution.
2657 [BA] Fixed "spelling" of some Attribute names to replace spaces
2658 in names by underscores. (Fixed field width easier for awk
2661 [BA,GF] Added mods submitted by [GF] to support Attribute 193 being
2662 load/unload cycles. Add -v 193,loadunload option, useful for
2663 Hitachi drive DK23EA-30, and add this drive to knowndrive.c
2664 Add meaning of attribute 250 : Read error retry rate
2666 smartmontools-5.1-12
2668 [BA] Added another entry for Samsung drives to knowndrive table.
2670 [DG] Refine SCSI log sense command to do a double fetch in most cases
2671 (but not for the TapeAlert log page). Fix TapeAlert and Self Test
2672 log page response truncation.
2674 [PW] Added 'removable' argument to -d Directive for smartd. This indicates
2675 that smartd should continue (rather than exit) if the device does not
2676 appear to be present.
2678 [BA] Modified smartmontools.spec [Man pages location] and
2679 smartd.initd [Extra space kills chkconfig!] for Redhat 6.x
2680 compatibility (thanks to Gerald Schnabel).
2682 smartmontools-5.1-11
2684 [EB] Add another Fujitsu disk to knowndrives.c
2686 [GG] match for scsi/ and ide/ in case of devfs to exclude false postives
2688 [BA] If SCSI device listed in /etc/smartd.conf fails to open or do
2689 SMART stuff correctly, or not enough space
2690 to list all SCSI devices, fail with error unless
2691 -DSCSIDEVELOPMENT set during compile-time.
2693 [BA] Added automatic recognition of /dev/i* (example: /dev/ide/...)
2696 [DG] Add "Device type: [disk | tape | medium changer | ...] line to
2697 smartctl -i output for SCSI devices.
2699 [PW] Fixed bug in smartd where test email would be sent regularly (for
2700 example, daily if the user had specified -M daily) instead of just
2703 [KM] More TapeAlert work. Added translations for media changer
2704 alerts. TapeAlert support reported according to the log page
2705 presence. ModeSense not attempted for non-ready tapes (all
2706 drives do not support this after all). Get peripheral type from
2707 Inquiry even if drive info is not printed. Add QUIETON()
2708 QUIETOFF() to TapeAlert log check.
2710 [BA] Stupid bug in atacmds.c minor_str[] affected ataVersionInfo().
2711 Two missing commas meant that minor_str[] had two few elements,
2712 leading to output like this:
2713 Device Model: Maxtor 6Y120L0
2714 Serial Number: Y40BF74E
2715 Firmware Version: YAR41VW0
2716 Device is: Not in smartctl database [for details use: -P showall]
2718 ATA Standard is: 9,minutes
2720 Missing commas inserted.
2722 [BA] Fixed smartd bug. On device registration, if ATA device did
2723 not support SMART error or self-test logs but user had asked to
2724 monitor them, an attempt would be made to read them anyway,
2725 possibly generating "Drive Seek" errors. We now check that
2726 the self-test and error logs are supported before trying to
2727 access them the first time.
2729 [GG/BA] Fixed bug where if SMART ATA error log not supported,
2730 command was tried anyway. Changed some error printing to use
2733 [GG] Makefile modifications to ease packaging
2735 [DG] Did work for TapeAlerts (SCSI). Now can detect /dev/nst0 as a
2736 SCSI device. Also open SCSI devices O_NONBLOCK so they don't
2737 hang on open awaiting media. The ATA side should worry about
2738 this also: during a DEVICESCAN a cd/dvd device without media
2739 will hang. Added some TapeAlert code suggested by Kai Makisara.
2741 smartmontools-5.1-10
2743 [PW] Extended the -F option/Directive to potentially fix other firmware
2744 bugs in addition to the Samsung byte-order bug. Long option name is
2745 now --firmwarebug and the option/Directive accepts an argument
2746 indicating the type of firmware bug to fix.
2748 [BA] Fixed a bug that prevented the enable automatic off-line
2749 test feature from enabling. It also prevented the enable Attribute
2750 autosave from working. See CVS entry for additional details.
2752 [PW] Modified the -r/--report option (smartctl and smartd) to allow the
2753 user to specify the debug level as a positive integer.
2755 [BA] Added --log directory option to smartctl. If the disk
2756 supports the general-purpose logging feature set (ATA-6/7)
2757 then this option enables the Log Directory to be printed.
2758 This Log Directory shows which device logs are available, and
2759 their lengths in sectors.
2761 [PW] Added -P/--presets option to smartctl and -P Directive to smartd.
2763 [GG] Introduce different exit codes indicating the type of problem
2764 encountered for smartd.
2766 [DG] Add non-medium error count to '-l error' and extended self test
2767 duration to '-l selftest'. Get scsi IEs and temperature changes
2768 working in smartd. Step over various scsi disk problems rather
2769 than abort smartd startup.
2771 [DG] Support -l error for SCSI disks (and tapes). Output error counter
2774 [BA] Added -F/--fixbyteorder option to smartctl. This allows us to read
2775 SMART data from some disks that have byte-reversed two- and four-
2776 byte quantities in their SMART data structures.
2778 [BA] Fixed serious bug: the -v options in smartd.conf were all put
2779 together and used together, not drive-by-drive.
2781 [PW] Added knowndrives.h and knowndrives.c. The knowndrives array
2782 supersedes the drivewarnings array.
2784 [GG] add {-p,--pidfile} option to smartd to write a PID file on
2785 startup. Update the manpage accordingly.
2787 [DG] Fix scsi smartd problem detecting SMART support. More cleaning
2788 and fix (and rename) scsiTestUnitReady(). More scsi renaming.
2790 [BA] Fixed smartd so that if a disk that is explictily listed is not
2791 found, then smartd will exit with nonzero status BEFORE forking.
2792 If a disk can't be registered, this will also be detected before
2793 forking, so that init scripts can react correctly.
2795 [BA] Replaced all linux-specific ioctl() calls in atacmds.c with
2796 a generic handler smartcommandhandler(). Now the only routine
2797 that needs to be implemented for a given OS is os_specific_handler().
2798 Also implemented the --report ataioctl. This provides
2799 two levels of reporting. Using the option once gives a summary
2800 report of device IOCTL transactions. Using the option twice give
2801 additional info (a printout of ALL device raw 512 byte SMART
2802 data structures). This is useful for debugging.
2804 [DG] more scsi cleanup. Output scsi device serial number (VPD page
2805 0x80) if available as part of '-i'. Implement '-t offline' as
2806 default self test (only self test older disks support).
2808 [BA] Changed crit to info in loglevel of smartd complaint to syslog
2809 if DEVICESCAN enabled and device not found.
2811 [BA] Added -v 194,10xCelsius option/Directive. Raw Attribute number
2812 194 is ten times the disk temperature in Celsius.
2814 [DG] scsicmds.[hc] + scsiprint.c: clean up indentation, remove tabs.
2815 Introduce new intermediate interface based on "struct scsi_cmnd_io"
2816 to isolate SCSI generic commands + responses from Linux details;
2817 should help port to FreeBSD of SCSI part of smartmontools.
2818 Make SCSI command builders more parametric.
2822 [BA] smartctl: if HDIO_DRIVE_TASK ioctl() is not implemented (no
2823 kernel support, then try to assess drive health by examining
2824 Attribute values/thresholds directly.
2826 [BA] smartd/smartctl: added -v 200,writeerrorcount option/Directive
2829 [BA] smartd: Now send email if any of the SMART commands fails,
2830 or if open()ing the device fails. This is often noted
2831 as a common disk failure mode.
2833 [BA] smartd/smartctl: Added -v N,raw8 -v N,raw16 and -v N,raw48
2834 Directives/Options for printing Raw Attributes in different
2837 [BA] smartd: Added -r ID and -R ID for reporting/tracking Raw
2838 values of Attributes.
2840 [BA] smartd/smartctl: Changed printing of spin-up-time attribute
2841 raw value to reflect current/average as per IBM standard.
2843 [BA] smartd/smartctl: Added -v 9,seconds option for disks which
2844 use Attribute 9 for power-on lifetime in seconds.
2846 [BA] smartctl: Added a warning message so that users of some IBM
2847 disks are warned to update their firmware. Note: we may want
2848 to add a command-line flag to disable the warning messages.
2849 I have done this in a general way, using regexp, so that we
2850 can add warnings about any type of disk that we wish...
2854 [BA] smartd: Created a subdirectory examplescripts/ of source
2855 directory that contains executable scripts for the -M exec PATH
2856 Directive of smartd.
2860 [BA] smartd: DEVICESCAN in /etc/smartd.conf
2861 can now be followed by all the same Directives as a regular
2862 device name like /dev/hda takes. This allows one to use
2864 DEVICESCAN -m root@example.com
2865 in the /etc/smartd.conf file.
2867 [BA] smartd: Added -c (--checkonce) command-line option. This checks
2868 all devices once, then exits. The exit status can be
2869 used to learn if devices were detected, and if smartd is
2870 functioning correctly. This is primarily for Distribution
2873 [BA] smartd: Implemented -M exec Directive for
2874 smartd.conf. This makes it possible to run an
2875 arbitrary script or mailing program with the
2878 [PW] smartd: Modified -M Directive so that it can be given
2879 multiple times. Added -M exec Directive.
2883 [BA] Fixed bug in smartctl pointed out by Pierre Gentile.
2884 -d scsi didn't work because tryata and tryscsi were
2885 reversed -- now works on /devfs SCSI devices.
2887 [BA] Fixed bug in smartctl pointed out by Gregory Goddard
2888 <ggoddard@ufl.edu>. Manual says that bit 6 of return
2889 value turned on if errors found in smart error log. But
2890 this wasn't implemented.
2894 [BA] Modified printing format for 9,minutes to read
2895 Xh+Ym not X h + Y m, so that fields are fixed width.
2897 [BA] Added Attribute 240 "head flying hours"
2901 [BA] As requested, local time/date now printed by smartctl -i
2903 [PW] Added "help" argument to -v for smartctl
2905 [PW] Added -D, --showdirectives option to smartd
2907 [DG] add '-l selftest' capability for SCSI devices (update smartctl.8)
2909 [BA] smartd,smartctl: added additional Attribute modification option
2910 -v 220,temp and -v 9,temp.
2912 [PW] Renamed smartd option -X to -d
2914 START OF SMARTMONTOOLS 5.1 series
2916 smartmontools-5.0.50
2918 [PW] Changed smartd.conf Directives -- see man page
2920 [BA/DG] Fixed uncommented comment in smartd.conf
2922 [DG] Correct 'Recommended start stop count' for SCSI devices
2924 [PW] Replaced smartd.conf directive -C with smartd option -i
2926 [PW] Changed options for smartctl -- see man page.
2928 [BA] Use strerror() to generate system call error messages.
2930 [BA] smartd: fflush() all open streams before fork().
2932 [BA] smartctl, smartd simplified internal handling of checksums
2933 for simpler porting and less code.
2935 smartmontools-5.0.49
2937 [PW] smartd --debugmode changed to --debug
2939 [BA] smartd/smartctl added attribute 230 Head Amplitude from
2942 [PW] Added list of proposed new options for smartctl to README.
2944 [PW] smartd: ParseOpts() now uses getopt_long() if HAVE_GETOPT_LONG is
2945 defined and uses getopt() otherwise. This is controlled by CPPFLAGS in
2948 [BA] smartd: Fixed a couple of error messages done with perror()
2949 to redirect them as needed.
2951 smartmontools-5.0.48
2953 [BA] smartctl: The -O option to enable an Immediate off-line test
2954 did not print out the correct time that the test would take to
2955 complete. This is because the test timer is volatile and not
2956 fixed. This has been fixed, and the smartctl.8 man page has been
2957 updated to explain how to track the Immediate offline test as it
2958 progresses, and to further emphasize the differences between the
2959 off-line immediate test and the self-tests.
2961 [BA] smartd/smartctl: Added new attribute (200) Multi_Zone_Error_Rate
2963 [BA] smartctl: modified so that arguments could have either a single -
2964 as in -ea or multiple ones as in -e -a. Improved warning message for
2965 device not opened, and fixed error in redirection of error output of
2966 HD identity command.
2968 [PW] smartd: added support for long options. All short options are still
2969 supported; see manpage for available long options.
2971 [BA] smartctl. When raw Attribute value was 2^31 or larger, did
2972 not print correctly.
2974 smartmontools-5.0.46
2976 [BA] smartd: added smartd.conf Directives -T and -s. The -T Directive
2977 enables/disables Automatic Offline Testing. The -s Directive
2978 enables/disables Attribute Autosave. Documentation and
2979 example configuration file updated to agree.
2981 [BA] smartd: user can make smartd check the disks at any time
2982 (ie, interrupt sleep) by sending signal SIGUSR1 to smartd. This
2983 can be done for example with:
2985 where <pid> is the process ID number of smartd.
2987 [EB] scsi: don't trust the data we receive from the drive too
2988 much. It very well might have errors (like zero response length).
2989 Seen on Megaraid logical drive, and verified in the driver source.
2991 [BA] smartd: added Directive -m for sending test email and
2992 for modifying email reminder behavior. Updated manual, and sample
2993 configuration file to illustrate & explain this.
2995 [BA] smartd: increased size of a continued smartd.conf line to
2998 [BA] Simplified Directive parsers and improved warning/error
3001 smartmontools-5.0.45
3003 [EB] Fixed bug in smartd where testunitready logic inverted
3004 prevented functioning on scsi devices.
3005 The bug in question only affects smartd users with scsi devices.
3006 To see if your version of smartd has the testunitready() bug, do
3008 If the version of the module smartd.c in a line like:
3009 Module: smartd.c revision: 1.66 date: 2002/11/17
3010 has a revision greater than or equal to 1.30, and less than or equal to
3011 1.64, then your version of the code has this problem.
3012 This problem affected releases starting with RELEASE_5_0_16 up to and
3013 including RELEASE_5_0_43.
3015 [BA] Added testunitnotready to smartctl for symmetry with smartd.
3017 [SB] added Czech descriptions to .spec file
3018 [SB] corrected comment in smartd.conf example
3020 [BA] Changed way that entries in the ATA error log are printed,
3021 to make it clearer which is the most recent error and
3022 which is the oldest one.
3024 NOTE: All changes made prior to this point were done by Bruce Allen
3025 [BA] although several of them had been suggested by earlier postings
3026 by Stanislav Brabec [SB].
3028 smartmontools-5.0.43
3030 Changed Temperature_Centigrade to Temperature_Celsius.
3031 The term "Centigrade" ceased to exist in 1948. (c.f
3032 http://www.bartleby.com/64/C004/016.html).
3034 smartmontools-5.0.42
3036 Modified SCSI device check to also send warning emails if
3037 requested in directives file.
3039 Added a new smartd configuration file Directive: -M ADDRESS.
3040 This sends a single warning email to ADDRESS for failures or
3041 errors detected with the -c, -L, -l, or -f Directives.
3043 smartmontools-5.0.38
3045 Modified perror() statements in atacmds.c so that printout for SMART
3046 commands errors is properly suppressed or queued depending upon users
3047 choices for error reporting modes.
3049 Added Italian descriptions to smartmontools.spec file.
3051 Started impementing send-mail-on-error for smartd; not yet enabled.
3053 Added -P (Permissive) Directive to smartd.conf file to allow SMART
3054 monitoring of pre-ATA-3 Rev 4 disks that have SMART but do not have
3055 a SMART capability bit.
3057 Removed charset encodings from smartmontools.spec file for non-English
3060 smartmontools-5.0.32
3062 Added manual page smartd.conf.5 for configuration file.
3064 smartctl: Missing ANSI prototype in failuretest(); fixed.
3066 smartctl: Checksum warnings now printed on stdout, or are silent,
3067 depending upon -q and -Q settings.
3069 smartmontools-5.0.31
3071 Changed Makefile so that the -V option does not reflect file state
3074 smartctl: added new options -W, -U, and -P to control if and how the
3075 smartctl exits if an error is detected in either a SMART data
3076 structure checksum, or a SMART command returns an error.
3078 modified manual page to break options into slightly more logical
3081 reformatted 'usage' message order to agree with man page ordering
3083 modified .spec file so that locale information now contains
3084 character set definition. Changed pt_BR to pt since we do not use any
3085 aspect other than language. See man setlocale.
3087 smartmontools-5.0.30
3088 smartctl: added new options -n and -N to force device to be ATA or SCSI
3089 smartctl: no longer dies silently if device path does not start/dev/X
3090 smartctl: now handles arbitrary device paths
3092 smartmontools-5.0.29
3093 Modified .spec file and Makefile to make them more compliant with
3094 the "right" way of doing things.
3096 smartmontools-5.0.26
3097 Fixed typesetting error in man page smartd.8
3099 Removed redundant variable (harmless) from smartd.c
3101 smartmontools-5.0.25
3103 Added a new directive for the configuration file. If the word
3104 DEVICESCAN appears before any non-commented material in the
3105 configuration file, then the confi file will be ignored and the
3106 devices wil be scanned.
3108 smartmontools-5.0.24
3110 Note: it has now been confirmed that the code modifications between
3111 5.0.23 and 5.0.24 have eliminated the GCC 3.2 problems. Note that
3112 there is a GCC bug howerver, see #8404 at
3113 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&cmd=query
3114 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8404
3116 Added new Directive for Configuration file:
3117 -C <N> This sets the time in between disk checks to be <N>
3118 seconds apart. Note that although you can give
3119 this Directive multiple times on different lines of
3120 the configuration file, only the final value that
3121 is given has an effect, and applies to all the
3122 disks. The default value of <N> is 1800 sec, and
3123 the minimum allowed value is ten seconds.
3125 Problem wasn't the print format. F.L.W. Meunier <0@pervalidus.net>
3126 sent me a gcc 3.2 build and I ran it under a debugger. The
3127 problem seems to be with passing the very large (2x512+4) byte
3128 data structures as arguments. I never liked this anyway; it was
3129 inherited from smartsuite. So I've changed all the heavyweight
3130 functions (ATA ones, anyone) to just passing pointers, not hideous
3131 kB size structures on the stack. Hopefully this will now build OK
3132 under gcc 3.2 with any sensible compilation options.
3134 smartmontools-5.0.23
3136 Because of reported problems with GCC 3.2 compile, I have gone
3137 thorough the code and explicitly changed all print format
3138 parameters to correspond EXACTLY to int unless they have to be
3139 promoted to long longs. To quote from the glibc bible: [From
3140 GLIBC Manual: Since the prototype doesn't specify types for
3141 optional arguments, in a call to a variadic function the default
3142 argument promotions are performed on the optional argument
3143 values. This means the objects of type char or short int (whether
3144 signed or not) are promoted to either int or unsigned int, as
3147 smartmontools-5.0.22
3149 smartd, smartctl now warn if they find an attribute whose ID
3150 number does not match between Data and Threshold structures.
3152 Fixed nasty bug which led to wrong number of arguments for a
3153 varargs statement, with attendent stack corruption. Sheesh!
3154 Have added script to CVS attic to help find such nasties in the
3157 smartmontools-5.0.21
3159 Eliminated some global variables out of header files and other
3160 minor cleanup of smartd.
3162 smartmontools-5.0.20
3164 Did some revision of the man page for smartd and made the usage
3165 messages for Directives 100% consistent.
3167 smartmontools-5.0-19
3169 smartd: prints warning message when it gets SIGHUP, saying that it
3170 is NOT re-reading the config file.
3172 smartctl: updated man page to say self-test commands -O,x,X,s,S,A
3173 appear to be supported in the code. [I can't test these, can anyone
3176 smartmontools-5.0-18
3178 smartctl: smartctl would previously print the LBA of a self-test
3179 if it completed, and the LBA was not 0 or 0xff...f However
3180 according to the specs this is not correct. According to the
3181 specs, if the self-test completed without error then LBA is
3182 undefined. This version fixes that. LBA value only printed if
3183 self-test encountered an error.
3185 smartmontools-5.0-17
3187 smartd has changed significantly. This is the first CVS checkin of
3188 code that extends the options available for smartd. The following
3189 options can be placed into the /etc/smartd.conf file, and control the
3191 Configuration file Directives (following device name):
3192 -A Device is an ATA device
3193 -S Device is a SCSI device
3194 -c Monitor SMART Health Status
3195 -l Monitor SMART Error Log for changes
3196 -L Monitor SMART Self-Test Log for new errors
3197 -f Monitor for failure of any 'Usage' Attributes
3198 -p Report changes in 'Prefailure' Attributes
3199 -u Report changes in 'Usage' Attributes
3200 -t Equivalent to -p and -u Directives
3201 -a Equivalent to -c -l -L -f -t Directives
3202 -i ID Ignore Attribute ID for -f Directive
3203 -I ID Ignore Attribute ID for -p, -u or -t Directive
3204 # Comment: text after a hash sign is ignored
3205 \ Line continuation character
3207 cleaned up functions used for printing CVS IDs. Now use string
3208 library, as it should be.
3210 modified length of device name string in smartd internal structure
3211 to accomodate max length device name strings
3213 removed un-implemented (-e = Email notification) option from
3214 command line arg list. We'll put it back on when implemeneted.
3216 smartd now logs serious (fatal) conditions in its operation at
3217 loglevel LOG_CRIT rather than LOG_INFO before exiting with error.
3219 smartd used to open a file descriptor for each SMART enabled
3220 device, and then keep it open the entire time smartd was running.
3221 This meant that some commands, like IOREADBLKPART did not work,
3222 since the fd to the device was open. smartd now opens the device
3223 when it needs to read values, then closes it. Also, if one time
3224 around it can't open the device, it simply prints a warning
3225 message but does not give up. Have eliminated the .fd field from
3226 data structures -- no longer gets used.
3228 smartd now opens SCSI devices as well using O_RDONLY rather than
3229 O_RDWR. If someone can no longer monitor a SCSI device that used
3230 to be readable, this may well be the reason why.
3232 smartd never checked if the number of ata or scsi devices detected
3233 was greater than the max number it could monitor. Now it does.
3235 smartmontools-5.0-16
3237 smartd on startup now looks in the configuration file /etc/smartd.conf for
3238 a list of devices which to include in its monitoring list. See man page
3239 (man smartd) for syntax.
3241 smartd: close file descriptors of SCSI device if not SMART capable
3242 Closes ALL file descriptors after forking to daemon.
3244 added new temperature attribute (231, temperature)
3246 smartd: now open ATA disks using O_RDONLY
3248 smartmontools-5.0-11
3250 smartd now prints the name of a failed or changed attribute
3251 into logfile, not just ID number
3253 Changed name of -p (print version) option to -V
3255 Minor change in philosophy: if a SMART command fails or the device
3256 appears incapable of a SMART command that the user has asked for,
3257 complain by printing an error message, but go ahead and try
3258 anyway. Since unimplemented SMART commands should just return an
3259 error but not cause disk problems, this should't cause any
3262 Added two new flags: q and Q. q is quiet mode - only print: For
3263 the -l option, errors recorded in the SMART error log; For the -L
3264 option, errors recorded in the device self-test log; For the -c
3265 SMART "disk failing" status or device attributes (pre-failure or
3266 usage) which failed either now or in the past; For the -v option
3267 device attributes (pre-failure or usage) which failed either now
3268 or in the past. Q is Very Quiet mode: Print no ouput. The only
3269 way to learn about what was found is to use the exit status of
3272 smartctl now returns sensible values (bitmask). See smartctl.h
3273 for the values, and the man page for documentation.
3275 The SMART status check now uses the correct ATA call. If failure
3276 is detected we search through attributes to list the failed ones.
3277 If the SMART status check shows GOOD, we then look to see if their
3278 are any usage attributes or prefail attributes have failed at any
3279 time. If so we print them.
3281 Modified function that prints vendor attributes to say if the
3282 attribute has currently failed or has ever failed.
3284 -p option now prints out license info and CVS strings for all
3285 modules in the code, nicely formatted.
3287 Previous versions of this code (and Smartsuite) only generate
3288 SMART failure errors if the value of an attribute is below the
3289 threshold and the prefailure bit is set. However the ATA Spec
3290 (ATA4 <=Rev 4) says that it is a SMART failure if the value of an
3291 attribute is LESS THAN OR EQUAL to the threshold and the
3292 prefailure bit is set. This is now fixed in both smartctl and
3293 smartd. Note that this is a troubled subject -- the original
3294 SFF 8035i specification defining SMART was inconsistent about
3295 this. One section says that Attribute==Threshold is pass,
3296 and another section says it is fail. However the ATA specs are
3297 consistent and say Attribute==Threshold is a fail.
3299 smartd did not print the correct value of any failing SMART attribute. It
3300 printed the index in the attribute table, not the attribute
3303 when starting self-tests in captive mode ioctl returns EIO because
3304 the drive has been busied out. Detect this and don't return an eror
3305 in this case. Check this this is correct (or how to fix it?)
3307 fixed possible error in how to determine ATA standard support
3308 for devices with no ATA minor revision number.
3310 device opened only in read-only not read-write mode. Don't need R/W
3311 access to get smart data. Check this with Andre.
3313 smartctl now handles all possible choices of "multiple options"
3314 gracefully. It goes through the following phases of operation,
3315 in order: INFORMATION, ENABLE/DISABLE, DISPLAY DATA, RUN/ABORT TESTS.
3316 Documentation has bee updated to explain the different phases of
3317 operation. Control flow through ataPrintMain()
3320 If reading device identity information fails, try seeing if the info
3321 can be accessed using a "DEVICE PACKET" command. This way we can
3322 at least get device info.
3324 Modified Makefile to automatically tag CVS archive on issuance of
3327 Modified drive detection so minor device ID code showing ATA-3 rev
3328 0 (no SMART) is known to not be SMART capable.
3330 Now verify the checksum of the device ID data structure, and of the
3331 attributes threshold structure. Before neither of these
3332 structures had their checksums verified.
3334 New behavior vis-a-vis checksums. If they are wrong, we log
3335 warning messages to stdout, stderr, and syslog, but carry on
3336 anyway. All functions now call a checksumwarning routine if the
3337 checksum doesn't vanish as it should.
3339 Changed Read Hard Disk Identity function to get fresh info from
3340 the disk on each call rather than to use the values that were read
3341 upon boot-up into the BIOS. This is the biggest change in this
3342 release. The ioctl(device, HDIO_GET_IDENTITY, buf ) call should
3343 be avoided in such code. Note that if people get garbled strings
3344 for the model, serial no and firmware versions of their drives,
3345 then blame goes here (the BIOS does the byte swapping for you,
3348 Function ataSmartSupport now looks at correct bits in drive
3349 identity structure to verify first that these bits are valid,
3352 Function ataIsSmartEnabled() written which uses the Drive ID state
3353 information to tell if SMART is enabled or not. We'll carry this
3354 along for the moment without using it.
3356 Function ataDoesSmartWork() guaranteed to work if the device
3359 Replace some numbers by #define MACROS
3361 Wrote Function TestTime to return test time associated with each
3362 different type of test.
3364 Thinking of the future, have added a new function called
3365 ataSmartStatus2(). Eventually when I understand how to use the
3366 TASKFILE API and am sure that this works correctly, it will
3367 replace ataSmartStatus(). This queries the drive directly to
3368 see if the SMART status is OK, rather than comparing thresholds to
3369 attribute values ourselves. But I need to get some drives that fail
3370 their SMART status to check it.
3373 smartmontools-5.0-10
3374 Removed extraneous space before printing in some error messages
3375 Fixed additional typos in documentation
3376 Fixed some character buffers that were too short for their contents.
3380 Put project home path into all source files near the top
3381 Corrected typos in the documentation
3382 Modified Makefile so that Mandrake Cooker won't increment version number
3383 (unless they happen to be working on my machine, which I doubt!)
3385 smartmontools-5.0-8:
3387 For IBM disks whose raw temp data includes three temps. print all
3390 print timestamps for error log to msec precision
3392 added -m option for Hitachi disks that store power on life in
3395 added -L option for printing self-test error logs
3397 in -l option, now print power on lifetime, so that one can see
3398 when the error took place
3400 updated SMART structure definitions to ATA-5 spec
3404 added -f and -F options to enable/disable autosave threshold
3407 changed argv parsing to use getops -- elminate buffer overflow
3410 expanded and corrected documentation
3412 fixed problem with smartd. It did not actually call
3413 ataSmartEnable()! Since the argument was left out, the test
3414 always suceeded because it evaluated to a pointer to the function.
3416 smartd: closed open file descriptors if device does not support
3417 smart. Note: this still needs to be fixed for SCSI devices
3420 smartmontools-5.0-0 STARTED with smartsuite-2.1-2