]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - smartmontools.spec
Imported Upstream version 5.38
[mirror_smartmontools-debian.git] / smartmontools.spec
1 Release: 1
2 Summary: smartmontools - for monitoring S.M.A.R.T. disks and devices
3 Summary(cs): smartmontools - pro monitorování S.M.A.R.T. diskù a zaøízení
4 Summary(de): smartmontools - zur Überwachung von S.M.A.R.T.-Platten und-Geräten
5 Summary(es): smartmontools - para el seguimiento de discos y dispositivos S.M.A.R.T.
6 Summary(fr): smartmontools - pour le suivi des disques et instruments S.M.A.R.T.
7 Summary(pt): smartmontools - para monitorar discos e dispositivos S.M.A.R.T.
8 Summary(it): smartmontools - per monitare dischi e dispositivi S.M.A.R.T.
9 Summary(pl): Monitorowanie i kontrola dysków u¿ywaj±æ S.M.A.R.T.
10 Name: smartmontools
11 Version: 5.38
12 License: GPL
13 Group: Applications/System
14 Group(de): Applikationen/System
15 Group(es): Aplicaciones/Sistema
16 Group(fr): Applications/Système
17 Group(pt): Aplicativos/Sistema
18 Group(it): Applicazioni/Sistemi
19 Source0: %{name}-%{version}.tar.gz
20 URL: http://smartmontools.sourceforge.net/
21 Prereq: /sbin/chkconfig
22 BuildRoot: %{_tmppath}/%{name}-%{version}-root
23 Obsoletes: smartctl
24 Obsoletes: smartd
25 Obsoletes: ucsc-smartsuite
26 Obsoletes: smartsuite
27 Packager: Bruce Allen <smartmontools-support@lists.sourceforge.net>
28
29 %define mandrake %(test ! -f /etc/mandrake-release ; echo $?)
30 %define suse %(test ! -f /etc/SuSE-release ; echo $?)
31 %define redhat %(test ! -f /etc/redhat-release ; echo $?)
32 %define fedora %(test ! -f /etc/fedora-release ; echo $?)
33 %if %{fedora}
34 %define redhat 1
35 %endif
36
37 # Source code can be found at:
38 # http://ftp1.sourceforge.net/smartmontools/smartmontools-%{version}-%{release}.tar.gz
39
40 # CVS ID of this file is:
41 # $Id: smartmontools.spec,v 1.172 2008/03/04 22:09:47 ballen4705 Exp $
42
43 # Copyright (C) 2002-8 Bruce Allen <smartmontools-support@lists.sourceforge.net>
44 # Home page: http://smartmontools.sourceforge.net/
45 #
46 # This program is free software; you can redistribute it and/or modify it
47 # under the terms of the GNU General Public License as published by the Free
48 # Software Foundation; either version 2, or (at your option) any later
49 # version.
50 #
51 # You should have received a copy of the GNU General Public License (for
52 # example COPYING); if not, write to the Free Software Foundation, Inc., 675
53 # Mass Ave, Cambridge, MA 02139, USA.
54 #
55 # This code was originally developed as a Senior Thesis by Michael Cornwell
56 # at the Concurrent Systems Laboratory (now part of the Storage Systems
57 # Research Center), Jack Baskin School of Engineering, University of
58 # California, Santa Cruz. http://ssrc.soe.ucsc.edu/
59
60
61 %description
62 smartmontools controls and monitors storage devices using the
63 Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.)
64 built into ATA and SCSI Hard Drives. This is used to check the
65 reliability of the hard drive and to predict drive failures. The suite
66 is derived from the smartsuite package, and contains two utilities. The
67 first, smartctl, is a command line utility designed to perform simple
68 S.M.A.R.T. tasks. The second, smartd, is a daemon that periodically
69 monitors smart status and reports errors to syslog. The package is
70 compatible with the ATA/ATAPI-5 specification. Future releases will be
71 compatible with the ATA/ATAPI-6 andATA/ATAPI-7 specifications. The
72 package is intended to incorporate as much "vendor specific" and
73 "reserved" information as possible about disk drives. man smartctl and
74 man smartd will provide more information. This RPM file is compatible
75 with all RedHat releases back to at least 6.2 and should work OK on any
76 modern linux distribution. The most recent versions of this package and
77 additional information can be found at the URL:
78 http://smartmontools.sourceforge.net/
79
80 %description -l cs
81 smartmontools øídí a monitorují zaøízení pro ukládání dat za pou¾ití
82 technologie automatického monitorování, analýzy a hlá¹ení
83 (Self-Monitoring, Analysis and Reporting Technology System -
84 S.M.A.R.T.) vestavìného do pevných diskù ATA a SCSI. Pou¾ívá se ke
85 kontrole pou¾itelnosti pevného disku a pøedvídání havárií diskù.
86 Nástroje jsou odvozeny od balíèku smartsuite a obsahují dva programy.
87 První, smartctl, je nástroj pro provádìní jednoduchých S.M.A.R.T. úloh
88 na pøíkazové øádce. Druhý, smartd, je démon, který periodicky
89 monitoruje stav a hlásí chyby do systémového protokolu. Balíèek je
90 kompatibilní se specifikací ATA/ATAPI-5. Dal¹í verze budou
91 kompatibilní se specifikacemi ATA/ATAPI-6 a ATA/ATAPI-7. Balíèek je
92 navr¾en tak, aby pokryl co nejvíce polo¾ek s informacemi "závislé na
93 výrobci" a "rezervováno". Více informací získáte pomocí man smartctl a
94 man smartd. Tento RPM balíèek je kompatibilní se v¹emi verzemi RedHatu
95 a mìl by fungovat na v¹ech moderních distribucích Linuxu. Aktuální
96 verzi najdete na URL http://smartmontools.sourceforge.net/
97
98 %description -l de
99 Die smartmontools steuern und überwachen Speichergeräte mittels des
100 S.M.A.R.T.-Systems (Self-Monitoring, Analysis and Reporting Technology,
101 Technologie zur Selbst-Überwachung, Analyse und Berichterstellung), das
102 in ATA- und SCSI-Festplatten eingesetzt wird. Sie werden benutzt, um
103 die Zuverlässigkeit der Festplatte zu prüfen und Plattenfehler
104 vorherzusagen. Die Suite wurde vom smartsuite-Paket abgeleitet und
105 enthält zwei Dienstprogramme. Das erste, smartctl, ist ein
106 Kommandozeilentool, das einfache S.M.A.R.T. Aufgaben ausführt. Das
107 zweite, smartd, ist ein Daemon, der periodisch den S.M.A.R.T.-Status
108 überwacht und Fehler ins Syslog protokolliert. Das Paket ist zur
109 ATA/ATAPI-5 Spezifikation kompatibel. Zukünftige Versionen werden auch
110 die ATA/ATAPI-6 und ATA/ATAPI-7 Spezifikationen umsetzen. Das Paket
111 versucht, so viele "herstellerspezifische" und "reservierte" Information
112 über Plattenlaufwerke wie möglich bereitzustellen. man smartctl und man
113 smartd liefern mehr Informationen über den Einsatz. Dieses RPM ist zu
114 allen RedHat-Versionen ab spätestens 6.2 kompatibel und sollte unter
115 jedem modernen Linux arbeiten. Die aktuellsten Versionen dieses Pakets
116 und zusätzliche Informationen sind zu finden unter der URL:
117 http://smartmontools.sourceforge.net/
118
119 %description -l es
120 smartmontools controla y hace el seguimiento de dispositivos de
121 almacenamiento usando el Self-Monitoring, Analysis and Reporting
122 Technology System (S.M.A.R.T.) incorporado en discos duros ATA y SCSI.
123 Es usado para asegurar la fiabilidad de discos duros y predecir averias.
124 El conjunto de programas proviene del conjunto smartsuite y contiene dos
125 utilidades. La primera, smartctl, es una utilidad command-line hecha
126 para hacer operaciones S.M.A.R.T. sencillas. La segunda, smartd, es un
127 programa que periodicamente chequea el estatus smart e informa de
128 errores a syslog. Estos programas son compatibles con el sistema
129 ATA/ATAPI-5. Futuras versiones seran compatibles con los sistemas
130 ATA/ATAPI-6 y ATA/ATAPI-7. Este conjunto de programas tiene el
131 proposito de incorporar la mayor cantidad posible de informacion
132 reservada y especifica de discos duros. Los comandos 'man smartctl' y
133 'man smartd' contienen mas informacion. Este fichero RPM es compatible
134 con todas las versiones de RedHat a partir de la 6.2 y posiblemente
135 funcionaran sin problemas en cualquier distribucion moderna de linux.
136 La version mas reciente de estos programas ademas de informacion
137 adicional pueden encontrarse en: http://smartmontools.sourceforge.net/
138
139 %description -l fr
140 smartmontools contrôle et fait le suivi de périphériques de stockage
141 utilisant le système Self-Monitoring, Analysis and Reporting
142 Technology (S.M.A.R.T) intégré dans les disques durs ATA et SCSI. Ce
143 système est utilisé pour vérifier la fiabilité du disque dur et prédire
144 les défaillances du lecteur. La suite logicielle dérive du paquet
145 smartsuite et contient deux utilitaires. Le premier, smartctl,
146 fonctionne en ligne de commande et permet de réaliser des tâches
147 S.M.A.R.T. simples. Le second, smartd, est un démon qui fait
148 périodiquement le suivi du statut smart et transmet les erreurs au
149 syslog. Ce paquet est compatible avec la spécification ATA/ATAPI-5.
150 Les prochaines versions seront compatibles avec les spécifications
151 ATA/ATAPI-6 et ATA/ATAPI-7. Ce paquet tente d'incorporer le plus
152 d'informations possible sur les disques durs qu'elles soient spécifiques
153 au constructeur ("vendor specific") ou réservées ("reserved"). man
154 smartctl et man smartd donnent plus de renseignements. Ce fichier RPM
155 est compatible avec toutes les versions de RedHat v6.2 et ultérieures,
156 et devrait fonctionner sur toutes les distributions récentes de Linux.
157 Les dernières versions de ce paquet et des informations supplémentaires
158 peuvent être trouvées à l'adresse URL:
159 http://smartmontools.sourceforge.net/
160
161 %description -l pt
162 smartmontools controla e monitora dispositivos de armazenamento
163 utilizando o recurso Self-Monitoring, Analysis and Reporting Technology
164 System (S.M.A.R.T.) integrado nos discos rígidos ATA e SCSI, cuja
165 finalidade é verificar a confiabilidade do disco rígido e prever falhas
166 da unidade. A suite é derivada do pacote smartsuite, e contém dois
167 utilitários. O primeiro, smartctl, é um utilitário de linha de comando
168 projetado para executar tarefas simples de S.M.A.R.T. O segundo,
169 smartd, é um daemon que monitora periodicamente estados do smart e
170 reporta erros para o syslog. O pacote é compatível com a especificação
171 ATA/ATAPI-5. Futuras versões serão compatíveis com as especificações
172 ATA/ATAPI-6 e ATA/ATAPI-7. O pacote pretende incorporar o maior número
173 possível de informações "específicas do fabricante" e "reservadas" sobre
174 unidades de disco. man smartctl e man smartd contém mais informações.
175 Este arquivo RPM é compatível com todas as versões do RedHat a partir da
176 6.2 e deverá funcionar perfeitamente em qualquer distribuição moderna do
177 Linux. As mais recentes versões deste pacote e informações adicionais
178 podem ser encontradas em http://smartmontools.sourceforge.net/
179
180 %description -l it
181 smartmontools controlla e monitora dischi che usano il "Self-Monitoring,
182 Analysis and Reporting Technology System" (S.M.A.R.T.), in hard drive
183 ATA e SCSI. Esso è usato per controllare l'affidabilità dei drive e
184 predire i guasti. La suite è derivata dal package smartsuite e contiene
185 due utility. La prima, smartctl, è una utility a linea di comando
186 progettata per eseguire semplici task S.M.A.R.T.. La seconda, smartd, è
187 un daemon che periodicamente monitora lo stato di smart e riporta errori
188 al syslog. Il package è compatibile con le specifiche ATA/ATAPI-6 e
189 ATA/ATAPI-7. Il package vuole incorporare tutte le possibili
190 informazioni riservate e "vendor specific" sui dischi. man smartctl e
191 man smartd danno più informazioni. Questo file RPM è compatibile con
192 tutte le release di RedHat, almeno dalla 6.2 e dovrebbe funzionare bene
193 su ogni moderna distribuzione di linux. Le versioni più recenti di
194 questo package e informazioni addizionali possono essere trovate al sito
195 http://smartmontools.sourceforge.net/
196
197 %description -l pl
198 Pakiet zawiera dwa programy (smartctl oraz smartd) do kontroli i
199 monitorowania systemów przechowywania danych za pomoc± S.M.A.R.T -
200 systemu wbudowanego w wiêkszo¶æ nowych dysków ATA oraz SCSI. Pakiet
201 pochodzi od oprogramowania smartsuite i wspiera dyski ATA/ATAPI-5.
202
203 # The following sections are executed by the SRPM file
204 %prep
205
206 %setup -q
207
208 %build
209 %configure
210 make
211
212 %install
213 rm -rf $RPM_BUILD_ROOT
214 rm -rf %{_buildroot}
215 %makeinstall
216 rm -f examplescripts/Makefile*
217 %if %{suse}
218 mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}
219 mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
220 ln -s ../../etc/rc.d/init.d/smartd $RPM_BUILD_ROOT%{_sbindir}/rcsmartd
221 %endif
222
223 %files
224 %defattr(-,root,root)
225 %attr(755,root,root) %{_sbindir}/smartd
226 %attr(755,root,root) %{_sbindir}/smartctl
227 %if %{suse}
228 %attr(755,root,root) %{_sbindir}/rcsmartd
229 %endif
230 %attr(755,root,root) /etc/rc.d/init.d/smartd
231 %attr(644,root,root) %{_mandir}/man8/smartctl.8*
232 %attr(644,root,root) %{_mandir}/man8/smartd.8*
233 %attr(644,root,root) %{_mandir}/man5/smartd.conf.5*
234 %doc AUTHORS CHANGELOG COPYING INSTALL NEWS README TODO WARNINGS smartd.conf examplescripts
235 %config(noreplace) %{_sysconfdir}/smartd.conf
236
237 %clean
238 rm -rf $RPM_BUILD_ROOT
239 rm -rf %{_buildroot}
240 rm -rf %{_builddir}/%{name}-%{version}
241
242 # The following are executed only by the binary RPM at install/uninstall
243
244 # since this installs the gzipped documentation files, remove
245 # non-gzipped ones of the same name.
246
247 # run before installation. Passed "1" the first time package installed, else a larger number
248 %pre
249 if [ -f /usr/share/man/man8/smartctl.8 ] ; then
250 echo "You MUST delete (by hand) the outdated file /usr/share/man/man8/smartctl.8 to read the new manual page for smartctl."
251 fi
252 if [ -f /usr/share/man/man8/smartd.8 ] ; then
253 echo "You MUST delete (by hand) the outdated file /usr/share/man/man8/smartd.8 to read the new manual page for smartd."
254 fi
255 if [ -f /usr/share/man/man5/smartd.conf.5 ] ; then
256 echo "You MUST delete (by hand) the outdated file /usr/share/man/man5/smartd.conf.5 to read the new manual page for smartd.conf"
257 fi
258
259 if [ ! -f /etc/smartd.conf ]; then
260 echo "Note that you can use a configuration file /etc/smartd.conf to control the"
261 echo "startup behavior of the smartd daemon. See man 8 smartd for details."
262 fi
263
264 # run after installation. Passed "1" the first time package installed, else a larger number
265 %post
266 # if smartd is already running, restart it with the new daemon
267 if [ -f /var/lock/subsys/smartd ]; then
268 /etc/rc.d/init.d/smartd restart 1>&2
269 echo "Restarted smartd services"
270 else
271 # else tell the user how to start it
272 echo "Run \"/etc/rc.d/init.d/smartd start\" to start smartd service now."
273 fi
274
275 # Now see if we should tell user to set service to start on boot
276 /sbin/chkconfig --list smartd > /dev/null 2> /dev/null
277 printmessage=$?
278
279 if [ $printmessage -ne 0 ] ; then
280 echo "Run \"/sbin/chkconfig --add smartd\", to start smartd service on system boot"
281 else
282 echo "smartd will continue to start up on system boot"
283 fi
284
285
286 # run before uninstallation. Passed zero when the last version uninstalled, else larger
287 %preun
288
289 # if uninstalling the final copy, stop and remove any links
290 if [ "$1" = "0" ]; then
291 if [ -f /var/lock/subsys/smartd ]; then
292 /etc/rc.d/init.d/smartd stop 1>&2
293 echo "Stopping smartd services"
294 fi
295
296 # see if any links remain, and kill them if they do
297 /sbin/chkconfig --list smartd > /dev/null 2> /dev/null
298 notlinked=$?
299
300 if [ $notlinked -eq 0 ]; then
301 /sbin/chkconfig --del smartd
302 echo "Removing chkconfig links to smartd boot-time startup scripts"
303 fi
304 fi
305
306 # run after uninstallation. Passed zero when the last version uninstalled, else larger
307 # %postun
308
309 %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
310
311 # Maintainers / Developers Key:
312 # [BA] Bruce Allen
313 # [EB] Erik Inge Bolsø
314 # [SB] Stanislav Brabec
315 # [PC] Peter Cassidy
316 # [YD] Yuri Dario
317 # [CD] Capser Dik
318 # [CF] Christian Franke
319 # [GF] Guilhem Frézou
320 # [DG] Douglas Gilbert
321 # [GG] Guido Guenther
322 # [GK] Geoff Keating
323 # [DK] David Kirkby
324 # [KM] Kai Mäkisarai
325 # [EM] Eduard Martinescu
326 # [FM] Frédéric L. W. Meunier
327 # [KS] Keiji Sawada
328 # [DS] David Snyder
329 # [SS] Sergey Svishchev
330 # [PW] Phil Williams
331 # [LW] Leon Woestenberg
332 # [RZ] Richard Zybert
333 # [SZ] Sf Zhou
334
335
336 %changelog
337 * Wed Dec 20 2006 Bruce Allen <smartmontools-support@lists.sourceforge.net>
338 [CF] Windows: Added alternate method for (limited) monitoring of
339 3ware controllers by parsing the output of CLI or 3DM.
340 Either "tw_cli" can be run internally ("/dev/tw_cli/cx/py"),
341 or data can be read from standard input ("/dev/tw_cli/stdin")
342 or clipboard ("/dev/tw_cli/clip").
343 [DG] Remove linux specific libata detect code; rely on general SAT
344 code. smartd should now generate a sensible log message for
345 ATA devices behind a SAT layer on all architectures.
346 [BA] Increased max line length MAXLINELEN for /etc/smartd.conf from
347 128 to 256 characters to handle long strings in
348 /dev/disk/by-id. Thanks to Martin Krafft.
349 [PW] Drive database: added missing drives from Seagate Momentus 5400.2
350 family
351 [BA] Finished Christian's fix (next item below) by removing
352 LINUX_86_64 hack from configure.in.
353 [CF] Fixed inclusion of PRI?64 macros from inttypes.h.
354 [CF] Windows: Added WRITE LOG to support selective self tests.
355 [CF] Fix selective self test log revision number if '-T permissive'
356 is specified (Tested with Samsung HD401LJ).
357 [CF] Windows: Fixed int64 printf format for MinGW runtime.
358 [PW] Drive database: added Seagate Barracuda 7200.10 family, Seagate
359 Momentus 42 family, Maxtor DiamondMax 60 ATA 66 family, Maxtor
360 DiamondMax 60 ATA 100 family, and Western Digital Caviar Serial
361 ATA family
362 [PW] Drive database: added missing drives from Seagate Barracuda
363 7200.9 family, Seagate Barracuda 7200.7 family, Seagate Momentus
364 7200.1 family, Toshiba 2.5" HDD family (80 GB and above), Western
365 Digital Caviar RE Serial ATA family, Hitachi Deskstar 7K80 family,
366 and Maxtor DiamondMax 4320 Ultra ATA family
367 [BA] Linux: compile fix for SuSE. Check for existence
368 of linux/compiler.h and include in os_linux.h if
369 present. Thanks to SB.
370 [BA] smartd: DEVICESCAN will now pick up SATA/SAT devices
371 attached to a SCSI device tree via SAT translation.
372 Note: this is a bit of a hack. I will document it once
373 I know if this needs to be Linux only or can have more
374 general application.
375 [BA] Added a couple SATA commands to the tables -- thanks DG!
376 Phil -- how about going through and systematically adding
377 these new commands to atacmdnames.cpp?
378 [BA] Linux s86_64: get rid of some compiler warnings on
379 x86_64 Linux systems.
380 [CF] Windows: Added missing support for READ_LOG, ABORT_SELFTEST
381 and CHECK_POWER_STATE for 3ware 9000 controllers. Thanks to
382 Greg de Valois for implementing this new ioctl in the driver.
383 [PW] Drive database: added Seagate NL35 SATA family. Thanks to Kai
384 Harrekilde-Petersen for providing a patch.
385 [DG] [SCSI, Windows] add SPT interface for NT and later. New device
386 names are "pd<n>", "sd<l>" and "tape<n>".
387 [PW] Drive database: added Western Digital Scorpio family, Fujitsu MHV
388 family, Maxtor MaXLine Pro 500 family, and Maxtor DiamondMax 11
389 family
390 [PW] Drive database: added missing drives from Toshiba 2.5" HDD
391 (30-60 GB) family, Maxtor DiamondMax 10 family, Seagate Barracuda
392 7200.8 family, Fujitsu MHT family, and Maxtor DiamondMax Plus 8
393 family
394 [SB] Added examplescripts/Example4 using powersave-notify.
395 [SB] More temperature monitoring examples in smartd.conf with DEVICESCAN.
396 [SB] Minor improvements of SuSE part of init script.
397 [CF] Drive database: added Samsung P80 series, P120 series, SP8004H
398 and T series.
399 [GG] Add CCISS (Compaq Smart Array Controller) support with contributions
400 from Praveen Chidambaram, Douglas Gilbert, Guido Guenther and Frédéric
401 BOITEUX
402 [PW] Drive database: added Hitachi Deskstar T7K250 and Hitachi
403 Deskstar 7K500 series. Thanks to L. J. Wu for providing a
404 patch
405 [PW] Drive database: added Maxtor MaXLine III family, Seagate U7
406 family, Seagate ST34321A, FUJITSU MHM2060AT, FUJITSU MHT2040AS,
407 Western Digital Caviar SE16 family, IBM Travelstar 4GT family,
408 QUANTUM FIREBALLP KA9.1, QUANTUM FIREBALL SE4.3A, TOSHIBA
409 MK1032GAX, TOSHIBA MK4026GAX
410 [PW] Drive database: added missing drives from Western Digital Caviar
411 SE (Serial ATA) and WD Raptor families
412 [CF] Windows: Added support for 3ware 9000 controllers using extended
413 SMART functionality in new 3ware driver. This includes DEVICESCAN
414 support for at most 2 controllers. Thanks to Greg de Valois from
415 AMCC/3ware for new driver features, development support and
416 hardware for testing.
417 [SZ] smartd: Support HighPoint RocketRAID controller under GNU/linux
418 [DG] [SCSI] First cut for '-l background' to show background scan
419 results log
420 [SZ] smartctl: Support HighPoint RocketRAID controller under GNU/linux
421 [KS] C++ compile fixes for Solaris with a few cleanups.
422 [BA] C++ compile fixes for Darwin (thanks to CF)
423 [CF] Removed old *.c files (now in CVS Attic).
424 [CF] Added changes for C++ to platform independent and Windows
425 related files.
426 [BA] Tagged last .c Version with PRE_MOVE_TO_CPP. Copied *.c,v
427 to *.cpp,v in CVS repository to preserve history of source
428 files. Removed sm5_Darwin repository.
429 [CF] smartctl: Added -n option to skip checks when disk is in
430 low-power mode.
431 [CF] Windows: Added alternate system call for power state check
432 because the PASS THROUGH calls may spin up the disk.
433 [CF] smartd: Modified power state logging to report state changes
434 instead of standby condition.
435 [CF] smartd: Ignore -n directive on scheduled self tests.
436 [DG] [SCSI] Make start stop cycle counter log page decoding
437 more robust
438 [DG] Modify smartctl (but not smartd) to detect probable ATA
439 devices behind a SAT layer. In the absence of an explicit
440 device type, change to device type 'sat'.
441 [DG] Add indication that controller (device) type has been
442 explicitly set. Preparation for automatic detection of
443 'sat' device type unless user specifies a device type.
444 [SS] NetBSD: Deliver strings from ata_identify_device properly
445 on little- and big-endian platforms.
446 [BA] Added published ANSI ATA-7 spec to list of recognized ATA
447 versions.
448 [BA] Code janitor: added missing header strings for '-V' option.
449 [DG] [SATA] Extend 'sat' device type to allow either 12 or 16 byte
450 variant of the SAT ATA PASS THROUGH SCSI command. Syntax is
451 '-d sat,<n>' where <n> can be 0, 12 or 16 . The ',<n>' part
452 is optional. Currently defaults to 16 byte variant but that
453 could be made platform or even device dependent.
454 [DG] [SATA] Add new 'sat' device type for SATA disks behind a
455 SCSI to ATA Translation (SAT) Layer (SATL). Uses the ATA
456 PASS THROUGH (16) SCSI command thence the generic SCSI
457 passthrough for each platform.
458 [CF] Windows: Added script and make targets to create installer
459 with NSIS (http://nsis.sourceforge.net/)
460 [CF] Updated hostname and links for new SourceForge CVS service.
461 [CF] smartd: Added '-W' directive to track temperature changes
462 and warn if temperature limits are reached.
463 [CF] Windows: Added IOCTL_ATA_PASS_THROUGH (Win2003, XP SP2)
464 for commands unsupported by SMART_IOCTL. Added device
465 specific options to select subset and ordering of the ATA
466 IOCTLs actually used. These options are specified as
467 modifiers of the device name (/dev/hd[a-j]:[saic]+)
468 [CF] Windows: Added support for drives 4-7 (/dev/hd[e-h]) via
469 SMARTVSE.VXD on Win9x/ME. Thanks to Dariusz Rzonca for
470 patch and testing.
471 [DG] [SCSI/SATA linux] from lk 2.6.17 SATA disk identification in
472 libata will change. Expand LibAta detection to see old
473 identifier and new variant (VPD page 0x83).
474 [BA] Identified Attribute 190 for Western Digital disks. This
475 stores temperature in Celsius, just like Attribute 194.
476 But it has a failure threshold set to correspond to the
477 maximum design operating temperature of the disk, which
478 is 55 Celsius on the WD800JD drives that I studied.
479 So if this Attribute has 'failed
480 in the past' this means that the maximum disk operating
481 temperature has been exceeded.
482 [GK] Darwin: Add support for AHCI drivers found in Intel-based Macs.
483
484 * Wed Apr 12 2006 Bruce Allen <smartmontools-support@lists.sourceforge.net>
485 [BA] Linux: smartd/smartctl issue syntax hints to user if 3ware
486 disk controller present with EITHER 3ware OR AMCC vendor
487 name, and user syntax incorrect.
488 [BA] Update copyright dates to 2006.
489 [DG] [SCSI] Loosen sanity check on Seagate/Hitachi factory information
490 log page so it is not skipped on recent Seagate SCSI disks.
491 [CF] Added command 'smartd -q showtests' to list test schedules.
492 [CF] Added command 'smartctl -P showall MODEL [FIRMWARE]' to list
493 database entries for specific drives and firmware.
494 [PW] Automatically set -v 9,minutes and -v 194,unknown for Maxtor
495 DiamondMax D540X-4G drives.
496 [DG] [SCSI] suppress various outputs when data fails sanity checks.
497 Correct 'last n error events' log page indexing.
498 [DG] [SCSI] changed smartctl exit status to reflect any problems in
499 the most recent 20 self test logs [Leandro Santi]
500 [DG] [SCSI] Fix process return value when scsiGetSmartData() fails
501 in smartctl [Leandro Santi]
502 [BA] Updated docs and error message to reflect Linux libata
503 support for smartmontools starting with the 2.6.15 kernel
504 series. Also init script support for the 'tinysofa' release.
505 [DG] [SCSI] Mask dpofua bit when changing mode pages. Fix failure
506 of 'smartctl -l error'.
507 [EM] Fixed a problem with FreeBSD and 3Ware 'twe' devices
508 [CF] Fixed a regexp in knowndrives table, added regexp syntax check
509 via 'smartctl -P showall'.
510 [CF] Cygwin & Windows: Fixed memory leak in function calling
511 IOCTL_IDE_PASS_THROUGH. Thanks to Fred Schmidt for the problem
512 report.
513 [CF] Cygwin: added cygrunsrv support and commands "install", "remove"
514 and "status" to smartd.initd.
515 [SS] Fix runtime problems on big-engian NetBSD platforms (patch provided
516 by Martin Husemann)
517 [CF] Cygwin smartd: Open smartd.conf in textmode to allow use of
518 Windows editors.
519 [CF] Cygwin smartd: Added option '--service' to allow smartd running
520 as windows service via cygrunsrv. Useful in conjunction with new
521 syslogd support added in Cygwin 1.5.15.
522 [CF] Windows: Added patch to avoid output of non-ascii timezone names.
523 [EM] Incorporate various patches to provide TWE support and support for
524 multiple 3Ware cards, Power Check Support, and FreeBSD 6.x support.
525 Thanks to Rudolf Cejka, Frank Behrens, and Jung-uk Kim.
526 [DG] Silence gcc 4.0.1 compile warning concerning the difference in
527 "signedness" in pointer assignments. Changes to SCSI code
528 and os_linux.c .
529 [PW] Additions to knowndrives table: added missing drive from Quantum
530 Fireball Plus LM series, added QUANTUM BIGFOOT TS10.0A, added
531 ExcelStor J680 and J880, added Western Digital Caviar RE Serial ATA
532 series, added missing drives from Western Digital Caviar SE series,
533 added Seagate Momentus 4200.2 series, added missing drives from
534 Maxtor DiamondMax 10 series, added Fujitsu MHG and MHH series, and
535 added Hitachi Travelstar 5K100 series.
536 [PW] Additions to knowndrives table: added Fujitsu MHU2100AT, added
537 Fujitsu M1623TAU, added missing drives from Seagate Barracuda
538 7200.8 series, added Seagate Momentus 5400.2 series, and added
539 QUANTUM FIREBALL CR8.4A.
540 [PW] Additions to knowndrives table: added missing drive from Maxtor
541 MaxLine II series, added Maxtor DiamondMax 2880 Ultra ATA series,
542 added Maxtor DiamondMax 17 VL series, added Hitachi Deskstar 7K80
543 series, and added Hitachi Deskstar 7K400 series.
544 [CF] Windows: Fixed unsupported 'smartctl -X' on Win2000/XP by using
545 IOCTL_IDE_PASS_THROUGH instead.
546
547 * Tue Apr 20 2005 Bruce Allen <smartmontools-support@lists.sourceforge.net>
548 [CF] Cygwin & Windows smartd: Increased SCSI DEVICESCAN range
549 from ASPI adapter 0-3 to 0-9. Added diagnostic messages.
550 [CF] Windows smartd: Added ability to run .bat files via '-M exec'
551 directive.
552 [CF] Cygwin smartd: Added FreeConsole() after fork() to avoid hang
553 of terminated shell console window.
554 [DG] [SCSI] Add code so 'smartctl -A' outputs the number of elements
555 in the grown defect list. When this number is increasing a
556 disk has problems. N.B. Similar logic should be added to smartd.
557 [CF] Windows smartd: Fixed event handling to allow start of another
558 smartd process when service is already running. Useful for testing
559 service configuration changes in debug mode.
560 [PW] Added following drives to knowndrives table: Western Digital Raptor
561 family, Seagate Barracuda 7200.8 family, Maxtor DiamondMax 2160
562 Ultra ATA and DiamondMax 10 families, Hitachi Travelstar E7K60
563 family, Seagate Medalist 17240, 13030, 10231, 8420, and 4310,
564 TOSHIBA MK4018GAP and MK6022GAX, ExcelStor Technology J360, and
565 Western Digital Caviar AC14300.
566 [PW] Added missing Fujitsu MHTxxxxAT and Seagate Barracuda 7200.7 drives
567 to knowndrives table.
568 [PW] Added QUANTUM FIREBALLP LM10.2 to knowndrives table. Thanks to
569 Mike Fleetwood for submitting the patch.
570 [KS] Solaris/SPARC: fixed not to disable automatic offline test and
571 automatic save attributes incorrectly. Thanks to Roy Badami.
572 [BA] Linux: smartd init script now recognizes 'trustix' distro.
573 [DG] [SCSI] Medium and hardware errors were slipping through
574 unreported. Fix linux SCSI sense reporting via SG_IO ioctl.
575 [DG] [SCSI] Change lba of first failure in selftest output to
576 decimal (was hex) to conform with ATA output.
577 [GK] smartd: Detect most self-test failures even if the hour counter
578 has wrapped.
579 [BA] smartctl: list 'marvell' as option if user give invalid
580 -d argument
581 [CF] Windows: fixed SCSI timeout handling to allow long timeouts
582 for selftests.
583 [CF] Fixed buffer overflow issues in printone() and safe_vsnprintf()
584 which results in crash on -V option (at least on Windows).
585 [DG] [SCSI] Add explicit timeouts to INQUIRY and REQUEST SENSE (that
586 were missed in an earlier patch). Could have impacted freebsd.
587 [DG] When linux detects a sata_via_libata disk suggest that user try
588 '-d ata' (rather then '-d libata). Anticipate kernel change.
589 [YD] Added OS/2 and eComStation platform support.
590 [PW] Added Seagate U4 family, Fujitsu MHJ and MHK families, Seagate
591 Barracuda 5400.1, QUANTUM FIREBALLP KX27.3, QUANTUM FIREBALLP KA10.1,
592 and ExcelStor J340 to knowndrives table.
593 [DG] [SCSI] After report of Hitachi IC35L073UCDY10 disks locking up
594 on log page 0x7 (last n error events), check log page (and some
595 others) is supported (via log page 0x0) before probing.
596 [CF] Added safe_v?snprintf() for platforms using v?snprintf()
597 with non standard behaviour on overflow (Windows, old Linux)
598 [CF] smartd: Added message if check power mode spins up disk.
599 [CF] Windows: Added support for READ_LOG on WinNT4 using undocumented
600 pseudo SCSI command via IOCTL_SCSI_PASS_THROUGH.
601 [CF] smartd: Added ',q' option for '-n' directive to suppress 'skipping
602 checks' log message. This prevents a laptop disk from spinning up
603 due to this message. Thanks to Rob MacLachlan and Manfred Schwarb
604 for pointing out problem & solution.
605 [CF] Windows: Added function get_os_version_str() to show OS flavor in
606 copyright message.
607 [CF] Windows: Added function ata_identify_is_cached() to check for outdated
608 SMART enabled bit in identify data.
609 [CF] Windows: Added fix to prevent linkage of smartd specific win32 modules
610 to smartctl.
611 [PW] Added Fujitsu MPG3153AH, Hitachi Endurastar J4K20/N4K20 (formerly
612 DK23FA-20J), Seagate Momentus family, and Maxtor Fireball 3 family
613 to knowndrives table.
614 [PW] Added missing Maxtor DiamondMax 16, Seagate Barracuda ATA IV, and
615 Western Digital Caviar WDxxxAA/WDxxxBA drives to knowndrives table.
616 [CF] Windows: Added ATA check power mode for smartd -n directive.
617 [CF] Windows: Fixed use of new service status flag which causes hang
618 of smartd service on WinNT4.
619 [CF] Windows: Fixed error checking of IOCTL_IDE_PASS_THROUGH (used
620 for READ_LOG on 2000/XP). Added some diagnostic messages on
621 -r ataioctl[,2]. Thanks to Manfred Schwarb for bug report and testing.
622 [BA] Fixed code bug that made it impossible to enable SMART on
623 disks with failing health status. This would happen if the
624 os_*.c author made STATUS and STATUS_CHECK work the same way.
625 I have corrected this at a higher level; we now handle the
626 case where STATUS and STATUS_CHECK are identical without
627 issues.
628 [LW] Make os_linux.c/marvell_command_interface() always return 0 on STATUS.
629 Needed for a disk having bad SMART status.
630 [CF] smartctl: Added drive family printing.
631 [CF] autogen.sh: Allow automake 1.9, added message if automake
632 version is unknown.
633 [BA] smartctl: use locale-specific separators for printing disk
634 capacity. Also use AC_CHECK_HEADERS not AC_CHECK_HEADER in
635 configure.in.
636 [BA] clean-up of #include structure so that -V options to smartd
637 and smartctl work correctly. Please, don't #include header
638 files into other header files.
639
640 * Fri Sep 10 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
641 [BA] smartctl: ATA disks, if SMART ATTRIBUTE THRESHOLDS page has ID
642 errors with some Attributes having NULL IDs, print Attribute
643 info anyway (but issuing a warning to the user).
644 [DG] [SCSI] Decode Last n error events log page; decode track following
645 and positioning errors [Hitachi]
646 [EM] FreeBSD: another tweak, __packed__ introduced in Version 5.0040
647 [EM] Cleaner tweak of fixes for FreeBSD 4.x.
648 [EM] Fix compilation errors under FreeBSD 4.x, as it is still using
649 and old GCC
650 [EM] Remove 3ware/FreeBSD specific files and just include pieces we need
651 [DG] Add logic in smartd to detect 3ware, Marvell controllers and SATA
652 disks behind an ATA-SCSI simulator (in Linux). If specific device
653 types are not given and they are picked in a general SCSI device
654 scan then warn and skip.
655 [GG] insert correct path to smartd into smartd's init script
656 [BA] Changed all default paths in documentation to reflect /usr/local as
657 default path prefix. This affects on-line man pages, primarily.
658 [DS] Added support for OpenBSD.
659 [BA] Added another environment variable SMART_FULLMESSAGE set by
660 the smartd mailing feature, and modified examplescripts/Example1
661 to illustrate it.
662 [BA] Fixed potentially misleading messages of the form:
663 XXX failed: success
664 [DG] emit warning if SATA disk detected using libata in Linux; then exit
665 [PW] Added Seagate U10 family, Hitachi Travelstar 7K60, Fujitsu MHR2020AT,
666 and QUANTUM FIREBALLP AS20.5 to knowndrives table.
667 [DG] Detect 3ware and Marvell controllers from SCSI INQUIRY vendor string
668 and suggest usage of appropriate '-d' argument in smartctl.
669 [LW] Tested the RELEASE_5_33_WITH_MARVELL_SUPPORT branch on
670 actual Marvell 88SX5041 hardware, with success.
671 Merged into HEAD.
672 [BA] Fixed nasty DEVICESCAN bug
673 [BA] Checked in RELEASE_5_33_WITH_MARVELL_SUPPORT branch with
674 some Marvell support.
675 [BA] Additional modifications of Ed's controller scheme. Fixed
676 broken 3ware support under linux, problems with scanning
677 devices in smartd, and other small problems.
678 [EM] Minor change to FreeBSD inclusion of 'twe' include files. Add
679 code to check if they exising in /usr/include/sys to use those
680 in preference to ones added here
681 [EM] Very preliminary support attempt for 3Ware controllers under
682 FreeBSD. Also, switched 'escalade_type/escalade_port' to
683 'controler_type/controller_port' and moved away from
684 'tryata/tryscsi' to using new 'controller*' variables to
685 determine which controller type (ATA/SCSI/3Ware) to use.
686 [GK] Added initscript support for Darwin.
687 [CF] Windows smartd: Added ability to run smartd as a windows service,
688 including new commands "smartd install ..." and "smartd remove"
689 to install and remove the service registry entry.
690 [BA] smartd: warn user if -s regexp regular expression contains
691 characters other than 0123456789.*()|+?[-]{}:=SLCO since such
692 characters are 'suspicous' and may indicate a poorly formed
693 regexp. Extended regular expression gurus: can this list be
694 reduced somewhat?
695 [CF] Fixed bug in Windows smartd: Missing close of config file when
696 configuration is reloaded by smartd daemon.
697 [CF] Windows smartd: Added mail warning feature using the "Blat"
698 (http://blat.sourceforge.net/) mailer as a default.
699 [PW] Added Maxtor DiamondMax Plus 5120 Ultra ATA 33 series and TOSHIBA
700 MK3017GAP to knowndrives table.
701 [CF] Added fixes to build smartmontools on old Linux systems
702 (libc < 6, Kernel 2.0.x).
703 [BA] Added ATA minor version identity strings for latest ATA specification
704 updates: ATA/ATAPI-7 T13 1532D revision 4a and ATA/ATAPI-6 published,
705 ANSI INCITS 361-2002
706 [PW] Added Hitachi Travelstar 5K80 family and Fujitsu MHTxxxxAH family to
707 knowndrives table.
708 [EM] Fix up compilation under FreeBSD < 5.x
709 [PW] Added QUANTUM FIREBALL EX3.2A and missing Western Digital Caviar SE
710 drives to knowndrives table.
711 [BA] Modified Hitachi Travelstar 80GN family regexp in drive database.
712 Thanks to [GK/CF] for problem & solution.
713 [GK] Added os_darwin.[ch]
714 [PW] Added the following drives to the knowndrives table: IBM Travelstar
715 48GH, 30GN, and 15GN family; IBM Deskstar 37GP and 34GXP family;
716 Western Digital WDC WD272AA; Maxtor DiamondMax D540X-4D family;
717 TOSHIBA MK2016GAP, MK2018GAP, MK2018GAS, MK2023GAS; and
718 QUANTUM FIREBALL ST3.2A
719 [BA] smartd/smarctl now print build HOST/OS information as part
720 of startup slogan. This should make it slightly easier to
721 read bug reports from users.
722 [RZ] Fixed the DEVICESCAN to do what it was supposed to do - give
723 error message unless scanning is in progress.
724 [BA] Update documentation to describe 3ware character devices. Better
725 error detection for missing/malfunctioning devices behind 3ware
726 controllers. Now pack 3ware ioctl structures explicitly.
727 [BA] For ATA devices that support LBA mode, print capacity as part
728 of smartctl --info
729 [RZ] Made DEVICESCAN quiet about non-existing devices unless debug
730 is on.
731 [DG] treat "unit attention" SCSI warning as try again in some contexts
732 (test unit ready and mode sense)
733 [BA] on drives that store max/min rather than min/max, get order
734 correct in printing temp.
735 [BA] fixed typo in 'smartctl -h' output. Thanks to Gabor Z. Papp.
736 [BA] linux: clean-up to 3ware/AMCC support; dynamically create
737 or fix /dev/tw[ae][0-15] device node entries if they don't
738 exist or are incorrect. One can now use the character devices
739 /dev/twe[0-15] OR /dev/sd? for 3ware 6000/7000/8000 series
740 cards. One must use /dev/twa[0-15] for 3ware 9000 series cards.
741 Note that selective self-tests now work via /dev/tw[ae] devices.
742 Next step: documentation.
743 [BA] linux: experimental "support" for 3ware/AMCC 9000 series
744 controllers that use the 3w-9xxx driver. This will be in a
745 state of flux for a few days. Note that this requires the
746 character interface /dev/twa[0-15].
747 [DG] linux: extend general SCSI OS interface to use the SG_IO ioctl. If
748 not available, use the older SCSI_IOCTL_SEND_COMMAND ioctl.
749 [KS] Solaris/x86: fixed system identification problem in configure
750 script. Thanks to Stuart Swales.
751
752 * Mon Jul 5 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
753 [BA] Update link to revised/updated IBM Deskstar Firmware
754 [CF] Cygwin & Windows: Added missing ASPI manager initialization
755 with GetASPI32SupportInfo(). Thanks to Nikolai SAOUKH for pointing
756 this out and providing a patch.
757 [BA] modified smartd init script to work on whitebox (thanks to
758 Michael Falzon)
759 [BA] removed (reverted) additional Attribute definitions from
760 http://smart.friko.pl/attributes.php. All (or most?) of these
761 appear to be return code values for the WD Digital Life Guard Utility.
762 [PW] Added Seagate Medalist 17242, 13032, 10232, 8422, and 4312 to
763 knowndrives table. Added missing Seagate U Series 5 drives.
764 [PW] Added the following QUANTUM models to knowndrives table:
765 FIREBALL EX6.4A, FIREBALLP AS10.2, FIREBALLP AS40.0, FIREBALL CR4.3A,
766 FIREBALLP LM15, FIREBALLP LM30, and FIREBALLlct20 30
767 [PW] Added missing Western Digital Protege drives to knowndrives table.
768 [PW] Added Maxtor DiamondMax 40 ATA 66 series and DiamondMax 40 VL Ultra
769 ATA 100 series to knowndrives table.
770 [PW] Added the following Hitachi/IBM drives to knowndrives table:
771 HITACHI_DK14FA-20B, Travelstar 40GNX series, Travelstar 4LP series,
772 and Travelstar DK23XXB series. Added the missing Travelstar 80GN
773 drives.
774 [PW] Added Fujitsu MPB series and MPG series to knowndrives table. Added
775 the missing Fujitsu MHSxxxxAT drives.
776 [KS] Solaris: added workaround for dynamic change of time-zone.
777 [KS] Solaris: fixed problem that autogen.sh cannot detect absence of
778 auto* tools.
779 [BA] smartd: added time-zone bug information to man page.
780 Reverted CF code for _WIN32 case.
781 [CF] Cygwin & Windows: Added better error messages on IDE/ATA device
782 open error.
783 [BA] added additional Attribute definitions from
784 http://smart.friko.pl/attributes.php
785 [BA] smartd: reworked TimeZone bug workaround so it is only invoked
786 for glibc. Note: this might not be right -- a similar bug may
787 exist in other platform's libcs.
788 [DG] SCSI smartmontools documentation updated [2004/5/6]. See:
789 http://smartmontools.sourceforge.net/smartmontools_scsi.html
790 [CF] Windows: Fixed reset of TZ=GMT in glibc timezone bug workaround.
791
792 * Tue May 4 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
793 [DG] move SCSI device temperature and start-stop log page output
794 (smartctl) into --attributes section (was in --info section).
795 [GG] change default installation location to /usr/local
796 [CF] Cygwin smartd: Fixed crash on access of SCSI devices after fork().
797 [PW] Added TOSHIBA MK4018GAS and the following Maxtor drive families
798 to knowndrives table: DiamondMax D540X-4G, Fireball 541DX,
799 DiamondMax 3400 Ultra ATA, DiamondMax Plus 6800 Ultra ATA 66.
800 [PW] Added missing Maxtor DiamondMax 16, DiamondMax D540X-4K, and
801 DiamondMax Plus 45 Ulta ATA 100 drives to knowndrives table.
802 [PW] Added ExcelStor J240, Hitachi Travelstar 80GN family, Fujitsu
803 MHTxxxxAT family, and IBM Deskstar 25GP and 22GXP families to
804 knowndrives table.
805 [CF] Cygwin smartd: Added workaround for missing SIGQUIT via keyboard:
806 To exit smartd in debug mode, type CONTROL-C twice.
807 [BA] smartctl: printing of the selective self-test log is now
808 controlled by a new option: -l selective
809 [BA] Added entries for Samsung firmware versions -25 to -39 based
810 on latest info about firmware bug fixes.
811 [PW] Added Seagate U Series X family, Seagate U8 family, and Seagate
812 Medalist 8641 family to knowndrives table.
813 [CF] smartd: Added exit values 5/6 for missing/unreadable config file.
814 [BA] smartd: now monitor the Current Pending Sector count (Attribute 197)
815 and the Offline Pending Sector Count (Attribute 198). Log a
816 warning (and send an email, if so configured) if the raw count
817 is nonzero. These are controlled by new Directives: -C and -U.
818 Currently they are enabled by default.
819 [CF] Added option -c FILE, --configfile=FILE to smartd to specify
820 an alternate configuration FILE or '-' for standard input.
821 [KS] configure.in now searches for -lnsl and -lsocket for Solaris.
822 [CF] Win32/native smartd: Added thread to combine several syslog output
823 lines into one single event log entry.
824 [CF] Win32 smartd: Added DEVICESCAN for SCSI/ASPI devices.
825 [GG] Use gethostbyname() the get the DNS domain since getdomainname()
826 returns the NIS domain when sending mails from smartd.
827 [GG] smartd.init.in: pass smartd_opts to smartd on startup, read distribution
828 specific configuration files if found
829 [SS] smartctl: added NetBSD support for Selective Self-tests.
830 [BA] smartd.conf example configuration file now has all examples
831 commented out except for 'DEVICESCAN'.
832 [CF] Win32/native smartd: Added ability to display warning "emails"
833 as message box by "-m msgbox" directive. With "-m sysmsgbox",
834 a system modal (always on top) message box is shown.
835 [BA] smartctl: printing of self-test log for disks that support
836 Selective self-testing now shows the status of the (optional)
837 read-scan after the selective self test. Also, changed format
838 in printing self-test log to print failing LBA in base 10 not
839 base 16 (more compatible with kernel error messages). Also,
840 in printing SMART error log, print timestamps in format
841 days+hours+minutes+seconds.
842 [CF] Win32 smartd: Added ability to log to stdout/stderr
843 (-l local1/2). Toggling debug console still works
844 if stdout is redirected.
845 [BA] smartctl: selective self-test log, print current status
846 in a more detailed way. Allow writing of selective self-test
847 log provided that no other self-test is underway.
848 [BA] Linux: eliminated dependency on kernel tree hdreg.h.
849 [BA] smartctl: -l selftest option now prints Selective self-test
850 log in addition to the normal self-test log.
851 Added additional options (-t pending, -t afterselect) to
852 control remaining Selective Self-test capabilities. Tested
853 with several Maxtor disks. Modified error message printing
854 so that munged option messages print at the end not the
855 start of output.
856 [CF] Added daemon support to Win32 native version of smartd.
857 The daemon can be controlled by commands similar to initd
858 scripts: "smartd status|stop|reload|restart|sigusr1|sigusr2".
859 [CF] Added minor support for option "-l local[0-7]" to Win32 native
860 (not Cygwin) version of smartd. If specified, the log output
861 is written to file "./smartd[1-7]?.log" instead of event log.
862 [BA] Added Selective Self-test to smartctl (-t selective,M-N).
863 Currently only supported under Linux; Solaris, NetBSD, FreeBSD
864 and Windows developers must add WRITE LOG functionality to
865 os_*.c
866 [BA] Added workaround for an annoying glibc bug: if you change
867 timezones, (eg, flying with a laptop from USA to Europe)
868 localtime() does not notice this in a running
869 executable, so time that appears in the system log (syslog!)
870 will be incorrect. See
871 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48184
872 for additional examples of this bug.
873 [DG] Set explicit timeouts for SCSI commands (most default to 6 seconds).
874 Previously a 0 second timeout was meant to be interpreted as a
875 default timeout but the FreeBSD port had a problem in this area.
876 [CF] Fixed un-thread-safe exit signal handler for Win32
877 [BA] Fixed un-thread-safe exit signal handler pointed out
878 by CF.
879 [BA] Changed configure script to eliminate warnings under
880 Solaris from sys/int_type.h conflicts with int64.h
881 Added header files for umask to smartd.c.
882 [BA] Man page format change from Werner LEMBERG. " " changed to \&
883 [CF] Added os_win32/syslogevt.* event message file tool for Win32
884 smartd (native+cygwin). May also be useful for other cygwin
885 programs writing to syslog().
886 [CF] Added Win32 version of smartd
887 [CF] Merged RELEASE_5_26_WIN32_BRANCH
888 [BA] Made some changes to man page markup suggested by
889 Richard Verhoeven to work around bugs in man2html.
890 Tested not to break anything under Linux and Solaris.
891 [CF] Moved PrintOut() from utility.c to smart{ctl,d}.c to avoid
892 syslog() output of smartctl.
893 [BA] Grew worried that some time-zone names could be very long (eg,
894 Mitteleuropaische Zeit) and put date string lengths into a
895 single macro in utility.c
896 [EM] Updated os_freebsd.c to handle older versions of FreeBSD in a
897 more appropriate/obvious fashion.
898 [EM] Modified autogen.sh as FreeBSD installs automake 1.7 as
899 'automake17' and NOT 'automake-1.7'
900
901 * Sat Mar 6 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
902 [PW] Added QUANTUM FIREBALLlct15 30, QUANTUM FIREBALLlct20 40, and
903 Maxtor 6Y060P0 (DiamondMax Plus 9 60GB) to knowndrives table.
904 [PW] Added Maxtor MaXLine II family to knowndrives table (thanks to
905 Brett Russ for submitting the patch).
906 [BA] Added remaining read/write commands to detailed list of
907 error log commands that have text descriptions of problem
908 printed. For commands that support it, print number of failed
909 sectors at problem LBA.
910 [BA] Made SuSE section of smartd init script more SuSE 9 compatible.
911 Thanks to Hans-Peter Jansen.
912 [CF] Windows smartd: Added IDE/ATA device scan
913 Added windows device names to smartctl.8.in, smartd.8.in
914 [BA] smartctl/smartd: user-provided '-F samsung' and '-F samsung2'
915 command line options/Directives did NOT over-ride preset values
916 unless user specified '-P ignore'. Now they will always over-ride
917 preset values from the database.
918 [BA] Added error decoding for a few more READ and WRITE commands.
919 [PW] Added Maxtor MaXLine Plus II, Western Digital Caviar SE (Serial ATA)
920 series, Hitachi Deskstar 7K250 series, and Ultra ATA 66 models of
921 the Maxtor DiamondMax Plus 40 series to knowndrives table.
922 [BA] Added Maxtor Diamondmax 250 GB drives to database. Note that
923 these model numbers are not listed in Maxtor documentation, but
924 they exist.
925 [BA] Removed the 'contact developers' phrase from the Samsung disk
926 warning messages.
927 [PW] Added TOSHIBA MK2017GAP, IBM Deskstar 14GXP and 16GP series,
928 Fujitsu MPC series, Seagate Barracuda ATA III family, and missing
929 Seagate Barracuda U Series drives to knowndrives table
930 [BA] smartd: wrong loglevel for message: Configuration file
931 /etc/smartd.conf parsed. Changed to LOG_INFO from LOG_CRIT.
932 Thanks to Emmanuel CHANTREAU for the report.
933 [CF] Checked in development version of windows code base.
934
935 * Tue Feb 24 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
936 [BA] smartd: configure script did not set correct directory to search for
937 smartd.conf based on --prefix argument to ./configure. Thanks to
938 GG for identifying the problem and fix.
939 [BA] make clean now removes man pages (generated from *.in) files as well
940 as object files.
941 [EM] Correct copying of sense data in FreeBSD SCSI implementation. Thanks
942 to Sergey Svishchev for noticing the bug.
943 [BA] On solaris, wrong warning message if no ATA support. Warning message
944 concerns 3ware controller, not ATA.
945 [SS] Added SCSI support for NetBSD.
946 [BA] on big-endian linux machines, fixed interpretation of HDIO_GET_IDENTITY
947 to correctly identify ATAPI bit (was byte swapped). This should
948 eliminate some SYSLOG noise if user queries a packet device (eg, CD
949 ROM or DVD reader).
950 [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives with
951 A5AA/A6AA firmware. Thanks to Gerald Schnabel.
952 [PW] Added Toshiba TOS MK3019GAXB SUN30G to knowndrives table
953 [PW] Added Western Digital Caviar AC12500, AC24300, AC25100, AC36400,
954 and AC38400 to knowndrives table
955 [BA] When printing ATA error log, print the LBA at which READ
956 or WRITE commands failed.
957 [BA] Changed syntax of error message in smartctl
958 [BA] Added versioning info (-V options to smartd/smartctl) for
959 Solaris ATA module.
960
961 * Thu Feb 12 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
962 [KS] Added ATA/IDE support for Solaris/SPARC (ATA/IDE not yet for
963 Solaris/x86).
964 [BA] 3ware controllers: documented that one can monitor any of the
965 physical disks from any of the 3ware /dev/sd? logical devices.
966 Better warnings if querying a disk that does not exist.
967 [PW] Added Hitachi Travelstar DK23DA series, Maxtor DiamondMax Plus 40
968 series, Western Digital Caviar WDxxxAA, WDxxxBA, and WDxxxAB series
969 to knowndrives table
970 [BA] missing 'pragma pack' on ATA IDENIFY DEVICE structure may have
971 caused odd or incorrect results on 64-bit machines.
972 [BA] smartctl/smartd allow inspection of self-test and error logs even
973 if disk firmware claims that these don't exist. This is needed
974 for some Maxtor disks whose firmware does not indicate log support
975 even though the disk DOES support it.
976 [BA] Improved porting instructions and documentation in os_generic.c
977 [PW] Add Western Digital Caviar WD136AA and SAMSUNG SP40A2H (RR100-07
978 firmware) to knowndrives table.
979 [EM] FreeBSD: remove extra definition of FreeNonZero
980 [BA] smartctl: the -q silent option was printing output for some
981 error conditions. Fixed. Will rename relevant variables to help
982 avoid these errors in the future.
983 [SS] NetBSD port added.
984 [BA] more sensible error messages for devfs and devfs-like systems.
985 Instead of saying that the DIRECTORY does not exist, say that
986 the DEVICE does not exist.
987 [BA] smartd: added -n Directive, to prevent disk spin-up depending
988 upon the power mode (SLEEP, STANDBY, or IDLE).
989 [PW] Added Maxtor DiamondMax 20 VL series, Fujitsu MPF series,
990 Maxtor DiamondMax 36 series, Maxtor DiamondMax 4320 series, and
991 Maxtor DiamondMax 536DX series to knowndrives table.
992 [BA] many warning messages now give the file name AND VERSION
993 [BA] smartd: when the user provides multiple address recipients
994 to the '-m' Directive in a comma-delineated list, the commas
995 are stripped out before passing the list of addresses to the
996 mailer program. (Thanks to Calin A. Culianu for pointing this out
997 and providing a patch.)
998 [BA] smartd: when the '-M exec path' Directive is used, any stdout OR
999 stderr output from the executable "path" is assumed to indicate a
1000 problem, and is echoed to SYSLOG.
1001 [BA] Added all missing IBM/Hitachi Deskstar 180GXP models to knowndrives
1002 table.
1003 [PW] Added some missing IBM/Hitachi Deskstar 120GXP models to knowndrives
1004 table.
1005 [PW] Added IBM Travelstar 14GS to knowndrives table.
1006 [PW] Modified knowndrives table to match entire Hitachi Travelstar
1007 DK23BA and DK23EA series of drives (thanks to Norikatsu Shigemura
1008 for submitting the patch).
1009 [PW] Added some missing Fujitsu MPE series drives to knowndrives table.
1010 [PW] Added TOSHIBA MK4019GAX, TOSHIBA MK6409MAV, and QUANTUM
1011 FIREBALLlct15 20 to knowndrives table.
1012 [EM] Fixup example command output for FreeBSD
1013 [PW] Added Maxtor DiamondMax 80 family to knowndrives table.
1014 [EM] Catch up FreeBSD code to switch PROJECTHOME to PACKAGE_HOMEPAGE
1015 macros.
1016 [BA] smartd: now watches stdout/stderr when trying to run mail, mailx
1017 or mail warning script, and reports any output to SYSLOG. This
1018 gives a clearer error message if something is wrong.
1019 [BA] smartd: Solaris init script modified to accomodate grep that
1020 lacks '-q' quiet option. Also check for running process to kill
1021 on stop.
1022 [PW] Added some missing Seagate Barracuda 7200.7 and 7200.7 Plus drives
1023 to knowndrives table.
1024 [PW] Added Maxtor DiamondMax Plus 60 family and Seagate U Series 5 20413
1025 to knowndrives table.
1026 [BA] smartd: under Solaris, made default mailer be 'mailx' not
1027 'mail', since Solaris 'mail' does not accept a '-s' argument.
1028 A workaround for Solaris users of earlier versions is to
1029 have '-M exec /bin/mailx' in their smartd.conf config file.
1030 [DG] some SCSI controllers don't like odd length transfers so make
1031 sure LOG SENSE transfers are rounded up to an even number when
1032 and odd length is reported (i.e. there is a double fetch, the
1033 first to find the length, the second gets the data)
1034 [BA] smartd man pages: under Solaris, correct section numbers in the
1035 'See also' section.
1036 [KS/BA] smartd man page: describe how to set Solaris syslog.conf
1037 file to catch all messages. Give correct Solaris SYSLOG default
1038 path /var/adm/messages in man pages.
1039 [BA] smartd: incorporated Debian startup script submitted by user.
1040 [BA] smartctl: modified printing of self-test log entry number. Seagate
1041 firmware can leave 'holes' in the self-test log while a test is
1042 actually running. We now print entry numbers consistently in this
1043 case, not assuming that entries are contiguous.
1044 [PW] Added QUANTUM FIREBALL CX10.2A and Western Digital Caviar AC23200L
1045 to knowndrives table.
1046 [PW] Added QUANTUM FIREBALLlct20 20 to knowndrives table.
1047 [PW] Added Maxtor DiamondMax Plus D740X family to knowndrives table.
1048 [PW] Added IBM Travelstar 32GH, 30GT, and 20GN family to knowndrives
1049 table.
1050 [BA] Slackware init script modified to search for /etc/slackware-version
1051 rather than /etc/slackware-release.
1052 [PW] Added Seagate Barracuda ATA II family and TOSHIBA MK4019GAXB to
1053 knowndrives table.
1054 [GG] explain howto use autoreconf in autogen.sh
1055 [KS] Makefile.am/configure.in: changed manual page sections for
1056 Solaris.
1057 [BA] smartd: reduced number of scheduled self-test messages if
1058 test already run in current hour.
1059 [PW] Added Maxtor DiamondMax Plus 8 family to knowndrives table.
1060 [BA] linux: check for linux/hdreg.h. If it's there, use it. If
1061 not, provide the necessary definitions ourselves.
1062 [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives
1063 with TXAOA5AA firmware
1064 [PW] Added IBM Travelstar 25GS, 18GT, and 12GN family to knowndrives
1065 table.
1066 [PW] Added IBM/Hitachi Travelstar 60GH & 40GN family to knowndrives
1067 table.
1068 [BA] smartd: made '-s' Directive more efficient. Now store
1069 compiled regex, and re-use. If device lacks certain self-test
1070 capabilities, track it and don't try again.
1071 [BA] smartd: made memory allocation for device lists completely
1072 dynamic (eliminating compile-time maximum length constants).
1073 [PW] Removed warning for SAMSUNG SP0802N with TK100-23 firmware
1074 [PW] Added Seagate Barracuda ATA IV family to knowndrives table.
1075 [BA] smartd: reduce per-device memory footprint by making
1076 mail-warning info dynamically allocated. Also remove
1077 potential memory leak if use has -m Directive twice and
1078 keeps reloading the config file (highly unlikely this would
1079 ever be noticed!)
1080 [DG] smartd: added SCSI scheduled self-tests (Background
1081 short or extended).
1082 [BA] smartd: can now run scheduled offline immediate and
1083 self-tests. See man page and -s Directive for details.
1084 [GG] don't include manpages in make-dist-tarball.
1085 [BA] smartctl: on-line examples given with -h are now correct
1086 for solaris and linux, but wrong for freebsd. Ed?
1087 [BA] smartd: man page now explains device scanning for solaris as
1088 well as linux and freebsd.
1089 [BA] smartd/smartctl: man pages now report correct CVS tag release
1090 date, and executables '-V' options reports more build info.
1091
1092 * Sat Nov 29 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1093 [BA] Improved user messages that appear from 'make install'
1094 [PW] Removed warning for SAMSUNG SP1213N with firmware TL100-23
1095 [BA] incorporated SuSE init script from user.
1096 [DG] if SCSI device is read only, then open it read only.
1097 [BA] when compiled on non-supported system (NOT linux, freebsd or solaris) then
1098 the run-time error messages now clearly say 'your system is not supported'
1099 and give clear directions.
1100 [BA] ./configure script now works correctly on SuSE linux boxes
1101 [BA] minor improvements to man pages
1102 [BA] simplified detection of packet (ATAPI, CD) devices.
1103 [BA] init script (redhat, mandrake, yellowdog) now uses correct
1104 strings for translation and is slightly more standard.
1105 [DG] smartctl: output scsi Seagate vendor pages for disks (not tapes)
1106 * Wed Nov 19 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1107 [DG] smartd/smartctl: changed scsiClearControlGLTSD() to
1108 scsiSetControlGLTSD() with an 'enabled' argument so '-S on'
1109 and '-S off' work for SCSI devices (if changing GLTSD supported).
1110 [BA] smartd/smartctl: wired in scsiClearControlGLTSD(). Could still
1111 use a corresponding Set function. Left stubs for this purpose.
1112 [DG] scsicmds: added scsiClearControlGLTSD() [still to be wired in]
1113 [BA] smartctl: make SCSI -T options behave the same way as the
1114 ATA ones.
1115 [DG] smartctl: output scsi transport protocol if available
1116 [DG] scsi: stop device scan in smartd and smartctl if badly formed
1117 mode response [heuristic to filter out USB devices before we
1118 (potentially) lock them up].
1119 [BA] smartd: deviceclose()->CloseDevice(). Got rid of SCSIDEVELOPMENT
1120 macro-enabled code. Added -W to list of gcc specific options to
1121 always enable. Made code clean for -W warnings.
1122 [PW] Added Maxtor DiamondMax VL 30 family to knowndrives table.
1123 [DG] scsi: add warning (when '-l error' active) if Control mode page
1124 GLTSD bit is set (global disable of saving log counters)
1125 [DG] scsi: remember mode sense cmd length. Output trip temperature
1126 from IE lpage (IBM extension) when unavailable from temp lpage.
1127 [BA] smartd: for both SCSI and ATA now warns user if either
1128 the number of self-test errors OR timestamp of most
1129 recent self-test error have increased.
1130 [DG] smartctl: output Seagate scsi Cache and Factory log pages (if
1131 available) when vendor attributes chosen
1132 [DG] smartd: add scsiCountFailedSelfTests() function.
1133 [DG] Do more sanity checking of scsi log page responses.
1134 [BA] smartd: now warns user if number of self-test errors has
1135 increased for SCSI devices.
1136 [BA] smartd: warn user if number of ATA self-test errors increases
1137 (as before) OR if hour time stamp of most recent self-test
1138 error changes.
1139 [DG] More checks for well formed mode page responses. This has the side
1140 effect of stopping scans on bad SCSI implementations (e.g. some
1141 USB disks) prior to sending commands (typically log sense) that
1142 locks them up.
1143 [PW] Added Western Digital Caviar family and Caviar SE family to
1144 knowndrives table.
1145 [BA] smartd: added -l daemon (which is the default value if -l
1146 is not used).
1147 [PW] Added Seagate Barracuda ATA V family to knowndrives table.
1148 [BA] smartd: added additional command line argument -l FACILITY
1149 or --logfacility FACILITY. This can be used to redirect
1150 messages from smartd to a different file than the one used
1151 by other system daemons.
1152 [PW] Added Seagate Barracuda 7200.7, Western Digital Protege WD400EB,
1153 and Western Digital Caviar AC38400 to knowndrives table.
1154 [BA] smartd: scanning should now also work correctly for
1155 devfs WITHOUT traditional links /dev/hd[a-t] or /dev/sd[a-z].
1156 [PW] Added Maxtor 4W040H3, Seagate Barracuda 7200.7 Plus,
1157 IBM Deskstar 120GXP (40GB), Seagate U Series 20410,
1158 Fujitsu MHM2100AT, MHL2300AT, MHM2150AT, and IBM-DARA-212000
1159 to knowndrives table.
1160 [PW] Added remaining Maxtor DiamondMax Plus 9 models to knowndrives
1161 table.
1162 [EM] smartd: If no matches found, then return 0, rather than an error
1163 indication, as it just means no devices of the given type exist.
1164 Adjust FreeBSD scan code to mirror Linux version.
1165 [BA] smartd: made device scan code simpler and more robust. If
1166 too many devices detected, warn user but scan as many
1167 as possible. If error in scanning, warn user but don't
1168 die right away.
1169 [EM] smartd: To keep as consistent as possible, migrate FreeBSD
1170 devicescan code to also use glob(3). Also verified clean
1171 compile on a 4.7 FreeBSD system.
1172 [BA] smartd: Modified device scan code to use glob(3). Previously
1173 it appeared to have trouble when scanning devices on an XFS
1174 file system, and used non-public interface to directory
1175 entries. Problems were also reported when /dev/ was on an
1176 ext2/3 file system, but there was a JFS partition on the same
1177 disk.
1178 [BA] Clearer error messages when device scanning finds no suitable
1179 devices.
1180 [EM] FreeBSD: Fixup code to allow for proper compilation under
1181 -STABLE branch.
1182
1183 * Fri Oct 31 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1184 - [BA] smartd: didn't close file descriptors of ATA packet devices
1185 that are scanned. Fixed.
1186 - [BA] Added reload/report targets to the smartmontools init script.
1187 reload: reloads config file
1188 report: send SIGUSR1 to check devices now
1189
1190 * Mon Oct 27 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1191 - [EM] Fix compile issues for FreeBSD < 5-CURRENT.
1192 - [PW] Added Fujitsu MHM2200AT to knowndrives table.
1193 - [BA] To help catch bugs, clear ATA error structures before all
1194 ioctl calls. Disable code that attempted to time-out on SCSI
1195 devices when they hung (doesn't work).
1196 - [BA] Documented STATUS/ERROR flags added by [PW] below.
1197 - [BA] Improved algorithm to recognize ATA packet devices. Should
1198 no longer generate SYSLOG kernel noise when user tries either
1199 smartd or smartctl on packet device (CD-ROM or DVD). Clearer
1200 warning messages from smartd when scanning ATA packet device.
1201 - [PW] Added TOSHIBA MK4025GAS to knowndrives table.
1202 - [PW] Added a textual interpretation of the status and error registers
1203 in the SMART error log (ATA). The interpretation is
1204 command-dependent and currently only eight commands are supported
1205 (those which produced errors in the error logs that I happen to
1206 have seen).
1207 - [BA] added memory allocation tracking to solaris code.
1208 Fixed solaris signal handling (reset handler to default
1209 after first call to handler) by using sigset. Added
1210 HAVE_SIGSET to configure.in
1211 - [CD] solaris port: added SCSI functionality to solaris
1212 stubs.
1213 - [BA] smartd: attempt to address bug report about smartd
1214 hanging on USB devices when scanning:
1215 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=107615
1216 Set a timeout of SCSITIMEOUT (nominally 7 seconds) before
1217 giving up.
1218 - [EM] smartd: DEVICESCAN will follow links in a devfs filesystem and
1219 make sure the end point is a disc. Update documentation, added
1220 note about FreeBSD scanning
1221 - [BA] smartd: DEVICESCAN also looks for block devices in
1222 /dev. Updated documentation. Now scans for up to
1223 20 ATA devices /dev/hda-t rather than previous 12
1224 /dev/hda-l.
1225 - [EM] smartd: mirror the FreeBSD DEVICESCAN logic for Linux,
1226 so that smartd now scans only devices found in /dev/. Also,
1227 make utility memory functions take a line number and file so
1228 that we report errors with the correct location.
1229 - [GG] add a note about Debian bug #208964 to WARNINGS.
1230 - [BA] smartctl: -T verypermissive option broken. Use
1231 -T verpermissive until the next release, please.
1232 - [BA] Syntax mods so that code also compiles on Solaris using
1233 Sun Workshop compiler. Need -xmemalign 1i -xCC flags
1234 for cc.
1235
1236 * Wed Oct 15 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1237 [DK] Changed configure.in so -Wall is only included if gcc
1238 is used (this is a gcc specific flag) and -fsignedchar
1239 is not used at all (this is a gcc specific compiler
1240 flag).
1241 [BA] Modifications so that code now compiles under solaris. Now
1242 all that's needed (:-) is to fill in os_solaris.[hc]. Added
1243 os_generic.[hc] as guide to future ports. Fixed -D option
1244 of smartd (no file name). Modified -h opt of smartd/smartctl
1245 to work properly with solaris getopt().
1246 [EM] Update MAN pages with notes that 3ware drives are NOT supported
1247 under FreeBSD. Cleanup FreeBSD warning message handling.
1248 [EM] FreeBSD only: Fix first user found bug....I guess I was making
1249 the wrong assumption on how to convert ATA devnames to
1250 channel/unit numbers.
1251 [EM] Allow for option --enable-sample to append '.sample' to installed
1252 smartd.conf and rc script files. Also, let rc script shell setting
1253 be determined by configure
1254 [EM] Minor autoconf update to include -lcam for FreeBSD
1255 [EM] Add conditional logic to allow FreeBSD to compile pre-ATAng.
1256 -- note, not tested
1257 Add some documentation to INSTALL for FreeBSD.
1258 [EM] Implement SCSI CAM support for FreeBSD. NOTE: I am not an expert
1259 in the use of CAM. It seems to work for me, but I may be doing
1260 something horribly wrong, so please exercise caution.
1261 [EM] Switch over to using 'atexit' rather than 'on_exit' routine. This also
1262 meant we needed to save the exit status elsewhere so our 'Goodbye'
1263 routine could examine it.
1264 [EM] Move the DEVICESCAN code to os specific files. Also moved some of the
1265 smartd Memory functions to utility.c to make available to smartctl.
1266 [EM] Code janitor work on os_freebsd.c.
1267 [EM] Added os_freebsd.[hc] code. Additional code janitor
1268 work.
1269 [BA] Code janitor working, moving OS dependent code into
1270 os_linux.[hc].
1271 [GG] conditionally compile os_{freebsd,linux}.o depending on
1272 host architecture
1273 [PW] Print estimated completion time for tests
1274 [BA] Added -F samsung2 flag to correct firmware byte swap.
1275 All samsung drives with *-23 firmware revision string.
1276
1277 * Sun Oct 05 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1278 - [GG] Fixed broken Makefile.am (zero length smartd.conf.5
1279 was being created)
1280 - [FM] Improved Slackware init script added to /etc/smartd.initd
1281
1282 * Fri Oct 03 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1283 - [BA] smartctl: added '-T verypermissive' option which is
1284 equivalent to giving '-T permissive' many times.
1285 - [BA] Try harder to identify from IDENTIFY DEVICE structure
1286 if SMART supported/enabled. smartd now does a more
1287 thorough job of trying to assess this before sending
1288 a SMART status command to find out for sure.
1289 - [BA] smartctl: it's now possible to override the program's
1290 guess of the device type (ATA or SCSI) with -d option.
1291 - [BA] try hard to avoid sending IDENTIFY DEVICE to packet
1292 devices (CDROMS). They can't do SMART, and this generates
1293 annoying syslog messages. At the same time, identify type
1294 of Packet device.
1295 - [BA] smartctl: Can now use permissive option more
1296 than once, to control how far to go before giving up.
1297 - [BA] smartd: if user asked to monitor either error or self-test
1298 logs (-l error or -l selftest) WITHOUT monitoring any of the
1299 Attribute values, code will SEGV. For 5.1-18 and earlier,
1300 a good workaround is to enable Auto offline (-o on).
1301 - [BA] smartctl: If enable auto offline command given, update auto
1302 offline status before printing capabilities.
1303 - [GG] Make autotools build the default, remove autotools.diff
1304 - [GG] Add auto{conf,make} support, not enabled by default.
1305 - [BA] Eliminated #include <linux/hdreg.h> from code. This
1306 should simplify porting to solaris, FreeBSD, etc. The
1307 only linux-specific code is now isolated to three routines,
1308 one for SCSI, one for Escalade, one for ATA.
1309
1310 * Fri Aug 22 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1311 - [BA] smartd: fixed serious bug - Attributes not monitored unless
1312 user told smartd to ignore at least one of them!
1313
1314 * Tue Aug 19 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1315 - [BA] Default runlevels for smartd changed from 3 and 5 to
1316 2, 3, 4, and 5.
1317 - [BA] Removed as much dynamic memory allocation as possible from
1318 configuration file parsing. Reloading config file, even in
1319 presence of syntax errors etc. should not cause memory leaks.
1320 - [PW] It is no longer permissible for the integer part (if any) of
1321 arguments to --report and --device to be followed by non-digits.
1322 For example, the "foo" in --report=ioctl,2foo was previously
1323 ignored, but now causes an error.
1324 - [BA] smartd: added -q/--quit command line option to specify
1325 under what circumstances smartd should exit. The old
1326 -c/--checkonce option is now obsoleted by this more
1327 general-purpose option.
1328 - [BA] smartd now responds to a HUP signal by re-reading its
1329 configuration file /etc/smartd.conf. If there are
1330 errors in this file, then the configuration file is
1331 ignored and smartd continues to monitor the devices that
1332 it was monitoring prior to receiving the HUP signal.
1333 - [BA] Now correctly get SMART status from disks behind 3ware
1334 controllers, thanks to Adam Radford. Need 3w-xxxx driver
1335 version 1.02.00.037 or later. Previously the smartmontools
1336 SMART status always returned "OK" for 3ware controllers.
1337 - [BA] Additional work on dynamic memory allocation/deallocation.
1338 This should have no effect on smartctl, but clears that way
1339 for smartd to dynamically add and remove entries. It should
1340 also now be easier to modify smartd to re-read its config
1341 file on HUP (which is easy) without leaking memory (which is
1342 harder). The philosophy is that memory for data structures in
1343 smartd is now allocated only on demand, the first time it
1344 is needed.
1345 - [BA] smartd: finished cleanup. Now use create/rm functions for
1346 cfgentries and dynamic memory allocation almost everywhere.
1347 Philosophy: aggresively try and provoke SEGV to help find
1348 bad code.
1349 - [BA] Added SAMSUNG SV0412H to knowndrives table.
1350 - [BA] smartd: if DEVICESCAN used then knowndrives table might not set
1351 the -v attributes correctly -- may have been the same for all
1352 the drives. Cleaned up some data structures and memory
1353 allocation to try and ensure segvs if such problems are
1354 introduced again.
1355 - [BA] Now allow -S on and -o on for the 3ware device type. For these
1356 commands to be passed through, the stock 3ware 3w-xxxx driver
1357 must be patched (8 lines). I'll post a patch on the smartmontools
1358 home page after it's been tested by a few other people and 3ware
1359 have had a chance to look it over.
1360
1361 * Wed Aug 06 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1362 - [BA] smartd - can now monitor ATA drives behind 3ware controllers.
1363 - [BA] smartd - changed some FATAL out of memory error messages from
1364 syslog level LOG_INFO to LOG_CRIT.
1365 - [BA] smartctl - added code to look at ATA drives behind 3ware RAID
1366 controllers using the 3w-xxxx driver. Note that for technical
1367 reasons related to the 3w-xxxx driver, the "Enable Autosave",
1368 "Enable Automatic Offline" commands are not implemented.
1369 I will add this to smartd shortly.
1370 - [BA] smartd - modified sleep loop, so that smartd no longer comes
1371 on the run queue every second. Instead, unless interrupted,
1372 it sleeps until the next polling time, when it wakes up. Now
1373 smartd also tries to wake up at exactly the right
1374 intervals (nominally 30 min) even if the user has been sending
1375 signals to it.
1376 - [GG] add Fujitsu MHN2300AT to vendoropts_9_seconds.
1377 - [EB] Fujitsu change in knowndrives ... match the whole MPD and
1378 MPE series for vendoropts_9_seconds.
1379 - [BA] smartd bug, might cause segv if a device can not be opened. Was
1380 due to missing comma in char* list. Consequence is that email
1381 failure messages might have had the wrong Subject: heading for
1382 errorcount, FAILEDhealthcheck, FAILEDreadsmartdata, FAILEDreadsmarterrorlog,
1383 FAILEDreadsmartsefltestlog, FAILEDopendevice were all displaced by
1384 one. And FAILEDopendevice might have caused a segv if -m was being
1385 used as a smartd Directive.
1386
1387 * Wed Jul 23 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1388 - [BA] Cleaned up smartmontools.spec so that upgrading, removing
1389 and other such operations correctly preserve running behavior
1390 and booting behavior of smartd.
1391 - [BA] Improved formatting of ATA Error Log printout, and added
1392 listing of names of commands that caused the error. Added
1393 obsolete ATA-4 SMART feature commands to table, along with
1394 obsolete SFF-8035i SMART feature command.
1395 - [PW] Added atacmdnames.[hc], which turn command register &
1396 feature register pairs into ATA command names.
1397 - [BA] Added conveyance self-test. Some code added for selective
1398 self-tests, but #ifdefed out.
1399 - [BA] Modified smartd exit status and log levels. If smartd is
1400 "cleanly" terminated, for example with SIGTERM, then its
1401 exit messages are now logged at LOG_INFO not LOG_CRIT
1402 - [BA] Added Attribute IDs (Fujitsu) 0xCA - 0xCE. This is decimal
1403 202-206. Added -v switches for interpretation of Attributes
1404 192, 198 and 201.
1405 - [BA] Made smartmontools work with any endian order machine for:
1406 - SMART selftest log
1407 - SMART ATA error log
1408 - SMART Attributes values
1409 - SMART Attributes thesholds
1410 - IDENTIFY DEVICE information
1411 - LOG DIRECTORY
1412 Smartmontools is now free of endian bias and works correctly
1413 on both little- and big-endian hardware. This has been tested by
1414 three independent PPC users on a variety of ATA and SCSI hardware.
1415 - [DG] Check that certain SCSI command responses are well formed. If
1416 IEC mode page response is not well formed exit smartctl. This
1417 is to protect aacraid. smartd should ignore a aacraid device.
1418
1419 * Mon Jun 16 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1420 - [BA] smartctl: added column to -A output to show if Attributes are
1421 updated only during off-line testing or also during normal
1422 operation.
1423
1424 * Thu Jun 10 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1425 - [BA] smartd: attempt to enable/disable automatic offline testing even
1426 if the disk appears not to support it. Now the same logic
1427 as smartctl.
1428 - [BA] Added definition of Attribute 201, soft read error rate.
1429 - [BA] Added IBM/Hitachi IC35L120AVV207-1 (GXP-180) and corresponding
1430 8MB Cache GXP-120 to drive database.
1431 - [BA] smartd: if DEVICESCAN Directive used in smartd.conf, and
1432 -I, -R or -r Directives used in conjunction with this, got
1433 segv errors. Fixed by correcting memory allocation calls.
1434 - [BA] smartd: enable automatic offline testing was broken due
1435 to cut-and-paste error that disabled it instead of
1436 enabling it. Thanks to Maciej W. Rozycki for pointing
1437 out the problem and solution.
1438 - [BA] Fixed "spelling" of some Attribute names to replace spaces
1439 in names by underscores. (Fixed field width easier for awk
1440 style parsing.)
1441 - [BA] Added mods submitted by Guilhem Frezou to support Attribute 193
1442 being load/unload cycles. Add -v 193,loadunload option, useful
1443 for Hitachi drive DK23EA-30, and add this drive to knowndrive.c
1444 Add meaning of attribute 250 : Read error retry rate
1445 - [BA] Added another entry for Samsung drives to knowndrive table.
1446 - [DG] Refine SCSI log sense command to do a double fetch in most cases
1447 (but not for the TapeAlert log page). Fix TapeAlert and Self Test
1448 log pgae response truncation.
1449 - [PW] Added 'removable' argument to -d Directive for smartd. This indicates
1450 that smartd should continue (rather than exit) if the device does not
1451 appear to be present.
1452 - [BA] Modified smartmontools.spec [Man pages location] and
1453 smartd.initd [Extra space kills chkconfig!] for Redhat 6.x
1454 compatibility (thanks to Gerald Schnabel).
1455
1456 * Wed May 7 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1457 - [EB] Add another Fujitsu disk to knowndrives.c
1458 - [GG] match for scsi/ and ide/ in case of devfs to exclude false postives
1459 - [BA] If SCSI device listed in /etc/smartd.conf fails to open or do
1460 SMART stuff correctly, or not enough space
1461 to list all SCSI devices, fail with error unless
1462 -DSCSIDEVELOPMENT set during compile-time.
1463 - [BA] Added automatic recognition of /dev/i* (example: /dev/ide/...)
1464 as an ATA device.
1465 - [DG] Add "Device type: [disk | tape | medium changer | ...]" line to
1466 smartctl -i output for SCSI devices.
1467 - [PW] Fixed bug in smartd where test email would be sent regularly (for
1468 example, daily if the user had specified -M daily) instead of just
1469 once on startup.
1470 - [KM] More TapeAlert work. Added translations for media changer
1471 alerts. TapeAlert support reported according to the log page
1472 presence. ModeSense not attempted for non-ready tapes (all
1473 drives do not support this after all). Get peripheral type from
1474 Inquiry even if drive info is not printed. Add QUIETON()
1475 QUIETOFF() to TapeAlert log check.
1476 - [BA] Stupid bug in atacmds.c minor_str[] affected ataVersionInfo().
1477 Two missing commas meant that minor_str[] had two few elements,
1478 leading to output like this:
1479 Device Model: Maxtor 6Y120L0
1480 Serial Number: Y40BF74E
1481 Firmware Version: YAR41VW0
1482 Device is: Not in smartctl database [for details use: -P showall]
1483 ATA Version is: 7
1484 ATA Standard is: 9,minutes
1485 ^^^^^^^^^
1486 Missing commas inserted.
1487 - [BA] Fixed smartd bug. On device registration, if ATA device did
1488 not support SMART error or self-test logs but user had asked to
1489 monitor them, an attempt would be made to read them anyway,
1490 possibly generating "Drive Seek" errors. We now check that
1491 the self-test and error logs are supported before trying to
1492 access them the first time.
1493 - [GG/BA] Fixed bug where if SMART ATA error log not supported,
1494 command was tried anyway. Changed some error printing to use
1495 print handlers.
1496 - [GG] Makefile modifications to ease packaging
1497 - [DG] Did work for TapeAlerts (SCSI). Now can detect /dev/nst0 as a
1498 SCSI device. Also open SCSI devices O_NONBLOCK so they don't
1499 hang on open awaiting media. The ATA side should worry about
1500 this also: during a DEVICESCAN a cd/dvd device without media
1501 will hang. Added some TapeAlert code suggested by Kai Makisara.
1502
1503 * Mon Apr 21 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1504 - [PW] Extended the -F option/Directive to potentially fix other firmware
1505 bugs in addition to the Samsung byte-order bug. Long option name is
1506 now --firmwarebug and the option/Directive accepts an argument
1507 indicating the type of firmware bug to fix.
1508 - [BA] Fixed a bug that prevented the enable automatic off-line
1509 test feature from enabling. It also prevented the enable Attribute
1510 autosave from working. See CVS entry for additional details.
1511 - [PW] Modified the -r/--report option (smartctl and smartd) to allow the
1512 user to specify the debug level as a positive integer.
1513 - [BA] Added --log directory option to smartctl. If the disk
1514 supports the general-purpose logging feature set (ATA-6/7)
1515 then this option enables the Log Directory to be printed.
1516 This Log Directory shows which device logs are available, and
1517 their lengths in sectors.
1518 - [PW] Added -P/--presets option to smartctl and -P Directive to smartd.
1519 - [GG] Introduce different exit codes indicating the type of problem
1520 encountered for smartd.
1521 - [DG] Add non-medium error count to '-l error' and extended self test
1522 duration to '-l selftest'. Get scsi IEs and temperature changes
1523 working in smartd. Step over various scsi disk problems rather
1524 than abort smartd startup.
1525 - [DG] Support -l error for SCSI disks (and tapes). Output error counter
1526 log pages.
1527 - [BA] Added -F/--fixbyteorder option to smartctl. This allows us to read
1528 SMART data from some disks that have byte-reversed two- and four-
1529 byte quantities in their SMART data structures.
1530 - [BA] Fixed serious bug: the -v options in smartd.conf were all put
1531 together and used together, not drive-by-drive.
1532 - [PW] Added knowndrives.h and knowndrives.c. The knowndrives array
1533 supersedes the drivewarnings array.
1534 - [GG] add {-p,--pidfile} option to smartd to write a PID file on
1535 startup. Update the manpage accordingly.
1536 - [DG] Fix scsi smartd problem detecting SMART support. More cleaning
1537 and fix (and rename) scsiTestUnitReady(). More scsi renaming.
1538 - [BA] Fixed smartd so that if a disk that is explictily listed is not
1539 found, then smartd will exit with nonzero status BEFORE forking.
1540 If a disk can't be registered, this will also be detected before
1541 forking, so that init scripts can react correctly.
1542 - [BA] Replaced all linux-specific ioctl() calls in atacmds.c with
1543 a generic handler smartcommandhandler(). Now the only routine
1544 that needs to be implemented for a given OS is os_specific_handler().
1545 Also implemented the --report ataioctl. This provides
1546 two levels of reporting. Using the option once gives a summary
1547 report of device IOCTL transactions. Using the option twice give
1548 additional info (a printout of ALL device raw 512 byte SMART
1549 data structures). This is useful for debugging.
1550 - [DG] more scsi cleanup. Output scsi device serial number (VPD page
1551 0x80) if available as part of '-i'. Implement '-t offline' as
1552 default self test (only self test older disks support).
1553 - [BA] Changed crit to info in loglevel of smartd complaint to syslog
1554 if DEVICESCAN enabled and device not found.
1555 - [BA] Added -v 194,10xCelsius option/Directive. Raw Attribute number
1556 194 is ten times the disk temperature in Celsius.
1557 - [DG] scsicmds.[hc] + scsiprint.c: clean up indentation, remove tabs.
1558 Introduce new intermediate interface based on "struct scsi_cmnd_io"
1559 to isolate SCSI generic commands + responses from Linux details;
1560 should help port to FreeBSD of SCSI part of smartmontools.
1561 Make SCSI command builders more parametric.
1562
1563 * Thu Mar 13 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1564 - [BA] smartctl: if HDIO_DRIVE_TASK ioctl() is not implemented (no
1565 kernel support) then try to assess drive health by examining
1566 Attribute values/thresholds directly.
1567 - [BA] smartd/smartctl: added -v 200,writeerrorcount option/Directive
1568 for Fujitsu disks.
1569 - [BA] smartd: Now send email if any of the SMART commands fails,
1570 or if open()ing the device fails. This is often noted
1571 as a common disk failure mode.
1572 - [BA] smartd/smartctl: Added -v N,raw8 -v N,raw16 and -v N,raw48
1573 Directives/Options for printing Raw Attributes in different
1574 Formats.
1575 - [BA] smartd: Added -r ID and -R ID for reporting/tracking Raw
1576 values of Attributes.
1577 - [BA] smartd/smartctl: Changed printing of spin-up-time attribute
1578 raw value to reflect current/average as per IBM standard.
1579 - [BA] smartd/smartctl: Added -v 9,seconds option for disks which
1580 use Attribute 9 for power-on lifetime in seconds.
1581 - [BA] smartctl: Added a warning message so that users of some IBM
1582 disks are warned to update their firmware. Note: we may want
1583 to add a command-line flag to disable the warning messages.
1584 I have done this in a general way, using regexp, so that we
1585 can add warnings about any type of disk that we wish..
1586
1587 * Wed Feb 12 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1588 - [BA] smartd: Created a subdirectory examplescripts/ of source
1589 directory that contains executable scripts for the -M exec PATH
1590 Directive of smartd.
1591 - [BA] smartd: DEVICESCAN in /etc/smartd.conf
1592 can now be followed by all the same Directives as a regular
1593 device name like /dev/hda takes. This allows one to use
1594 (for example):
1595 DEVICESCAN -m root@example.com
1596 in the /etc/smartd.conf file.
1597 - [BA] smartd: Added -c (--checkonce) command-line option. This checks
1598 all devices once, then exits. The exit status can be
1599 used to learn if devices were detected, and if smartd is
1600 functioning correctly. This is primarily for Distribution
1601 scripters.
1602 - [BA] smartd: Implemented -M exec Directive for
1603 smartd.conf. This makes it possible to run an
1604 arbitrary script or mailing program with the
1605 -m option.
1606 - [PW] smartd: Modified -M Directive so that it can be given
1607 multiple times. Added -M exec Directive.
1608
1609 * Tue Jan 21 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1610 - [BA] Fixed bug in smartctl pointed out by Pierre Gentile.
1611 -d scsi didn't work because tryata and tryscsi were
1612 reversed -- now works on /devfs SCSI devices.
1613 - [BA] Fixed bug in smartctl pointed out by Gregory Goddard
1614 <ggoddard@ufl.edu>. Manual says that bit 6 of return
1615 value turned on if errors found in smart error log. But
1616 this wasn't implemented.
1617 - [BA] Modified printing format for 9,minutes to read
1618 Xh+Ym not X h + Y m, so that fields are fixed width.
1619 - [BA] Added Attribute 240 "head flying hours"
1620
1621 * Sun Jan 12 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1622 - [BA] As requested, local time/date now printed by smartctl -i
1623
1624 * Thu Jan 9 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1625 - [PW] Added 'help' argument to -v for smartctl
1626 - [PW] Added -D, --showdirectives option to smartd
1627
1628 * Sat Jan 4 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1629 - [DG] add '-l selftest' capability for SCSI devices (update smartctl.8)
1630 - [BA] smartd,smartctl: added additional Attribute modification option
1631 -v 220,temp and -v 9,temp.
1632 - [PW] Renamed smartd option -X to -d
1633 - [PW] Changed smartd.conf Directives -- see man page
1634 - [BA/DG] Fixed uncommented comment in smartd.conf
1635 - [DG] Correct 'Recommended start stop count' for SCSI devices
1636 - [PW] Replaced smartd.conf directive -C with smartd option -i
1637 - [PW] Changed options for smartctl -- see man page.
1638 - [BA] Use strerror() to generate system call error messages.
1639 - [BA] smartd: fflush() all open streams before fork().
1640 - [BA] smartctl, smartd simplified internal handling of checksums
1641 for simpler porting and less code.
1642
1643 * Sun Dec 8 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1644 - [PW] smartd --debugmode changed to --debug
1645 - [BA] smartd/smartctl added attribute 230 Head Amplitude from
1646 IBM DPTA-353750.
1647 - [PW] Added list of proposed new options for smartctl to README.
1648 - [PW] smartd: ParseOpts() now uses getopt_long() if HAVE_GETOPT_LONG is
1649 defined and uses getopt() otherwise. This is controlled by CPPFLAGS in
1650 the Makefile.
1651 - [BA] smartd: Fixed a couple of error messages done with perror()
1652 to redirect them as needed.
1653 - [BA] smartctl: The -O option to enable an Immediate off-line test
1654 did not print out the correct time that the test would take to
1655 complete. This is because the test timer is volatile and not
1656 fixed. This has been fixed, and the smartctl.8 man page has been
1657 updated to explain how to track the Immediate offline test as it
1658 progresses, and to further emphasize the differences between the
1659 off-line immediate test and the self-tests.
1660 - [BA] smartd/smartctl: Added new attribute (200) Multi_Zone_Error_Rate
1661 - [BA] smartctl: modified so that arguments could have either a single -
1662 as in -ea or multiple ones as in -e -a. Improved warning message for
1663 device not opened, and fixed error in redirection of error output of
1664 HD identity command.
1665 - [PW] smartd: added support for long options. All short options are still
1666 supported; see manpage for available long options.
1667 - [BA] smartctl. When raw Attribute value was 2^31 or larger, did
1668 not print correctly.
1669
1670 * Fri Nov 22 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1671 - Allen: smartd: added smartd.conf Directives -T and -s. The -T Directive
1672 enables/disables Automatic Offline Testing. The -s Directive
1673 enables/disables Attribute Autosave. Documentation and
1674 example configuration file updated to agree.
1675 - Allen: smartd: user can make smartd check the disks at any time
1676 (ie, interrupt sleep) by sending signal SIGUSR1 to smartd. This
1677 can be done for example with:
1678 kill -USR1 <pid>
1679 where <pid> is the process ID number of smartd.
1680 - Bolso: scsi: don't trust the data we receive from the drive too
1681 much. It very well might have errors (like zero response length).
1682 Seen on Megaraid logical drive, and verified in the driver source.
1683 - Allen: smartd: added Directive -m for sending test email and
1684 for modifying email reminder behavior. Updated manual, and sample
1685 configuration file to illustrate & explain this.
1686 - Allen: smartd: increased size of a continued smartd.conf line to
1687 1023 characters.
1688 - Allen: Simplified Directive parsers and improved warning/error
1689 messages.
1690
1691 * Sun Nov 17 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1692 - Fixed bug in smartd where testunitready logic inverted
1693 prevented functioning on scsi devices.
1694 - Added testunitnotready to smartctl for symmetry with smartd.
1695 - Brabec: added Czech descriptions to .spec file
1696 - Brabec: corrected comment in smartd.conf example
1697 - Changed way that entries in the ATA error log are printed,
1698 to make it clearer which is the most recent error and
1699 which is the oldest one.
1700 - Changed Temperature_Centigrade to Temperature_Celsius.
1701 The term "Centigrade" ceased to exist in 1948. (c.f
1702 http://www.bartleby.com/64/C004/016.html).
1703
1704 * Wed Nov 13 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1705 - smartd SCSI devices: can now send warning email message on failure
1706 - Added a new smartd configuration file Directive: -M ADDRESS.
1707 This sends a single warning email to ADDRESS for failures or
1708 errors detected with the -c, -L, -l, or -f Directives.
1709
1710 * Mon Nov 11 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1711 - Modified perror() statements in atacmds.c so that printout for SMART
1712 commands errors is properly suppressed or queued depending upon users
1713 choices for error reporting modes.
1714 - Added Italian descriptions to smartmontools.spec file.
1715 - Started impementing send-mail-on-error for smartd; not yet enabled.
1716
1717 * Sun Nov 10 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1718 - Added -P (Permissive) Directive to smartd.conf file to allow SMART monitoring of
1719 pre-ATA-3 Rev 4 disks that have SMART but do not have a SMART capability bit.
1720
1721 * Thu Nov 7 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1722 - Added a Man section 5 page for smartd.conf
1723 - Changed Makefile so that the -V option does not reflect file state
1724 before commit!
1725 - modified .spec file so that locale information now contains
1726 character set definition. Changed pt_BR to pt since we do not use any
1727 aspect other than language. See man setlocale.
1728 - smartctl: added new options -W, -U, and -P to control if and how the
1729 smartctl exits if an error is detected in either a SMART data
1730 structure checksum, or a SMART command returns an error.
1731 - modified manual page to break options into slightly more logical
1732 categories.
1733 - reformatted 'usage' message order to agree with man page ordering
1734
1735 * Mon Nov 4 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1736 - smartctl: added new options -n and -N to force device to be ATA or SCSI
1737 - smartctl: no longer dies silently if device path does not start/dev/X
1738 - smartctl: now handles arbitrary device paths
1739 - Added additional macros for manual and sbin paths in this SPEC file.
1740 - Modified Makefile to install /etc/smartd.conf, but without overwriting existing config file
1741 - Modified this specfile to do the same, and to not remove any files that it did not install
1742
1743 * Thu Oct 30 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1744 - Fixed typesetting error in man page smartd.8
1745 - Removed redundant variable (harmless) from smartd.c
1746
1747 * Wed Oct 29 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1748 - Added a new directive for the configuration file. If the word
1749 DEVICESCAN appears before any non-commented material in the
1750 configuration file, then the confi file will be ignored and the
1751 devices wil be scanned.
1752 - Note: it has now been confirmed that the code modifications between
1753 5.0.23 and 5.0.24 have eliminated the GCC 3.2 problems. Note that
1754 there is a GCC bug howerver, see #8404 at
1755 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8404
1756 - Added new Directive for Configuration file:
1757 -C <N> This sets the time in between disk checks to be <N>
1758 seconds apart. Note that although you can give
1759 this Directive multiple times on different lines of
1760 the configuration file, only the final value that
1761 is given has an effect, and applies to all the
1762 disks. The default value of <N> is 1800 sec, and
1763 the minimum allowed value is ten seconds.
1764 - Problem wasn't the print format. F.L.W. Meunier <0@pervalidus.net>
1765 sent me a gcc 3.2 build and I ran it under a debugger. The
1766 problem seems to be with passing the very large (2x512+4) byte
1767 data structures as arguments. I never liked this anyway; it was
1768 inherited from smartsuite. So I've changed all the heavyweight
1769 functions (ATA ones, anyone) to just passing pointers, not hideous
1770 kB size structures on the stack. Hopefully this will now build OK
1771 under gcc 3.2 with any sensible compilation options.
1772 - Because of reported problems with GCC 3.2 compile, I have gone
1773 thorough the code and explicitly changed all print format
1774 parameters to correspond EXACTLY to int unless they have to be
1775 promoted to long longs. To quote from the glibc bible: [From
1776 GLIBC Manual: Since the prototype doesn't specify types for
1777 optional arguments, in a call to a variadic function the default
1778 argument promotions are performed on the optional argument
1779 values. This means the objects of type char or short int (whether
1780 signed or not) are promoted to either int or unsigned int, as
1781 required.
1782 - smartd, smartctl now warn if they find an attribute whose ID
1783 number does not match between Data and Threshold structures.
1784 - Fixed nasty bug which led to wrong number of arguments for a
1785 varargs statement, with attendent stack corruption. Sheesh!
1786 Have added script to CVS attic to help find such nasties in the
1787 future.
1788
1789 * Tue Oct 29 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1790 - Eliminated some global variables out of header files and other
1791 minor cleanup of smartd.
1792 - Did some revision of the man page for smartd and made the usage
1793 messages for Directives consistent.
1794 - smartd: prints warning message when it gets SIGHUP, saying that it is
1795 NOT re-reading the config file.
1796 - smartctl: updated man page to say self-test commands -O,x,X,s,S,A
1797 appear to be supported in the code. [I can't test these, can anyone
1798 report?]
1799 - smartctl: smartctl would previously print the LBA of a self-test
1800 if it completed, and the LBA was not 0 or 0xff...f However
1801 according to the specs this is not correct. According to the
1802 specs, if the self-test completed without error then LBA is
1803 undefined. This version fixes that. LBA value only printed if
1804 self-test encountered an error.
1805 - smartd has changed significantly. This is the first CVS checkin of
1806 code that extends the options available for smartd. The following
1807 options can be placed into the /etc/smartd.conf file, and control the
1808 behavior of smartd.
1809 - Configuration file Directives (following device name):
1810 -A Device is an ATA device
1811 -S Device is a SCSI device
1812 -c Monitor SMART Health Status
1813 -l Monitor SMART Error Log for changes
1814 -L Monitor SMART Self-Test Log for new errors
1815 -f Monitor for failure of any 'Usage' Attributes
1816 -p Report changes in 'Prefailure' Attributes
1817 -u Report changes in 'Usage' Attributes
1818 -t Equivalent to -p and -u Directives
1819 -a Equivalent to -c -l -L -f -t Directives
1820 -i ID Ignore Attribute ID for -f Directive
1821 -I ID Ignore Attribute ID for -p, -u or -t Directive
1822 # Comment: text after a hash sign is ignored
1823 \ Line continuation character
1824 - cleaned up functions used for printing CVS IDs. Now use string
1825 library, as it should be.
1826 - modified length of device name string in smartd internal structure
1827 to accomodate max length device name strings
1828 - removed un-implemented (-e = Email notification) option from
1829 command line arg list. We'll put it back on when implemeneted.
1830 - smartd now logs serious (fatal) conditions in its operation at
1831 loglevel LOG_CRIT rather than LOG_INFO before exiting with error.
1832 - smartd used to open a file descriptor for each SMART enabled
1833 - device, and then keep it open the entire time smartd was running.
1834 This meant that some commands, like IOREADBLKPART did not work,
1835 since the fd to the device was open. smartd now opens the device
1836 when it needs to read values, then closes it. Also, if one time
1837 around it can't open the device, it simply prints a warning
1838 message but does not give up. Have eliminated the .fd field from
1839 data structures -- no longer gets used.
1840 - smartd now opens SCSI devices as well using O_RDONLY rather than
1841 O_RDWR. If someone can no longer monitor a SCSI device that used
1842 to be readable, this may well be the reason why.
1843 - smartd never checked if the number of ata or scsi devices detected
1844 was greater than the max number it could monitor. Now it does.
1845
1846 * Fri Oct 25 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1847 - changes to the Makefile and spec file so that if there are ungzipped manual
1848 pages in place these will be removed so that the new gzipped man pages are
1849 visible.
1850 - smartd on startup now looks in the configuration file /etc/smartd.conf for
1851 a list of devices which to include in its monitoring list. See man page
1852 (man smartd) for syntax. If not found, try all ata and ide devices.
1853 - smartd: close file descriptors of SCSI device if not SMART capable
1854 Closes ALL file descriptors after forking to daemon.
1855 - added new temperature attribute (231, temperature)
1856 - smartd: now open ATA disks using O_RDONLY
1857
1858 * Thu Oct 24 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1859 - smartd now prints the name of a failed or changed attribute into logfile,
1860 not just ID number
1861 - Changed name of -p (print version) option to -V
1862 - Minor change in philosophy: if a SMART command fails or the device
1863 appears incapable of a SMART command that the user has asked for,
1864 complain by printing an error message, but go ahead and try
1865 anyway. Since unimplemented SMART commands should just return an
1866 error but not cause disk problems, this should't cause any
1867 difficulty.
1868 - Added two new flags: q and Q. q is quiet mode - only print: For
1869 the -l option, errors recorded in the SMART error log; For the -L
1870 option, errors recorded in the device self-test log; For the -c
1871 SMART "disk failing" status or device attributes (pre-failure or
1872 usage) which failed either now or in the past; For the -v option
1873 device attributes (pre-failure or usage) which failed either now
1874 or in the past. Q is Very Quiet mode: Print no ouput. The only
1875 way to learn about what was found is to use the exit status of
1876 smartctl.
1877 - smartctl now returns sensible values (bitmask). See smartctl.h
1878 for the values, and the man page for documentation.
1879 - The SMART status check now uses the correct ATA call. If failure
1880 is detected we search through attributes to list the failed ones.
1881 If the SMART status check shows GOOD, we then look to see if their
1882 are any usage attributes or prefail attributes have failed at any
1883 time. If so we print them.
1884 - Modified function that prints vendor attributes to say if the
1885 attribute has currently failed or has ever failed.
1886 - -p option now prints out license info and CVS strings for all
1887 modules in the code, nicely formatted.
1888 - Previous versions of this code (and Smartsuite) only generate
1889 SMART failure errors if the value of an attribute is below the
1890 threshold and the prefailure bit is set. However the ATA Spec
1891 (ATA4 <=Rev 4) says that it is a SMART failure if the value of an
1892 attribute is LESS THAN OR EQUAL to the threshold and the
1893 prefailure bit is set. This is now fixed in both smartctl and
1894 smartd. Note that this is a troubled subject -- the original
1895 SFF 8035i specification defining SMART was inconsistent about
1896 this. One section says that Attribute==Threshold is pass,
1897 and another section says it is fail. However the ATA specs are
1898 consistent and say Attribute==Threshold is a fail.
1899 - smartd did not print the correct value of any failing SMART attribute. It
1900 printed the index in the attribute table, not the attribute
1901 ID. This is fixed.
1902 - when starting self-tests in captive mode ioctl returns EIO because
1903 the drive has been busied out. Detect this and don't return an eror
1904 in this case. Check this this is correct (or how to fix it?)
1905 - fixed possible error in how to determine ATA standard support
1906 for devices with no ATA minor revision number.
1907 - device opened only in read-only not read-write mode. Don't need R/W
1908 access to get smart data. Check this with Andre.
1909 - smartctl now handles all possible choices of "multiple options"
1910 gracefully. It goes through the following phases of operation,
1911 in order: INFORMATION, ENABLE/DISABLE, DISPLAY DATA, RUN/ABORT TESTS.
1912 Documentation has bee updated to explain the different phases of
1913 operation. Control flow through ataPrintMain()
1914 simplified.
1915 - If reading device identity information fails, try seeing if the info
1916 can be accessed using a "DEVICE PACKET" command. This way we can
1917 at least get device info.
1918 - Modified Makefile to automatically tag CVS archive on issuance of
1919 a release
1920 - Modified drive detection so minor device ID code showing ATA-3 rev
1921 0 (no SMART) is known to not be SMART capable.
1922 - Now verify the checksum of the device ID data structure, and of the
1923 attributes threshold structure. Before neither of these
1924 structures had their checksums verified.
1925 - New behavior vis-a-vis checksums. If they are wrong, we log
1926 warning messages to stdout, stderr, and syslog, but carry on
1927 anyway. All functions now call a checksumwarning routine if the
1928 checksum doesn't vanish as it should.
1929 - Changed Read Hard Disk Identity function to get fresh info from
1930 the disk on each call rather than to use the values that were read
1931 upon boot-up into the BIOS. This is the biggest change in this
1932 release. The ioctl(device, HDIO_GET_IDENTITY, buf ) call should
1933 be avoided in such code. Note that if people get garbled strings
1934 for the model, serial no and firmware versions of their drives,
1935 then blame goes here (the BIOS does the byte swapping for you,
1936 apparently!)
1937 - Function ataSmartSupport now looks at correct bits in drive
1938 identity structure to verify first that these bits are valid,
1939 before using them.
1940 - Function ataIsSmartEnabled() written which uses the Drive ID state
1941 information to tell if SMART is enabled or not. We'll carry this
1942 along for the moment without using it.
1943 - Function ataDoesSmartWork() guaranteed to work if the device
1944 supports SMART.
1945 - Replace some numbers by #define MACROS
1946 - Wrote Function TestTime to return test time associated with each
1947 different type of test.
1948 - Thinking of the future, have added a new function called
1949 ataSmartStatus2(). Eventually when I understand how to use the
1950 TASKFILE API and am sure that this works correctly, it will
1951 replace ataSmartStatus(). This queries the drive directly to
1952 see if the SMART status is OK, rather than comparing thresholds to
1953 attribute values ourselves. But I need to get some drives that fail
1954 their SMART status to check it.
1955
1956 * Thu Oct 17 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1957 - Removed extraneous space before some error message printing.
1958 - Fixed some character buffers that were too short for contents.
1959 Only used for unrecognized drives, so probably damage was minimal.
1960
1961 * Wed Oct 16 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
1962 - Initial release. Code is derived from smartsuite, and is
1963 intended to be compatible with the ATA/ATAPI-5 specifications.
1964 - For IBM disks whose raw temp data includes three temps. print all
1965 three
1966 - print timestamps for error log to msec precision
1967 - added -m option for Hitachi disks that store power on life in
1968 minutes
1969 - added -L option for printing self-test error logs
1970 - in -l option, now print power on lifetime, so that one can see
1971 when the error took place
1972 - updated SMART structure definitions to ATA-5 spec
1973 - added -p option
1974 - added -f and -F options to enable/disable autosave threshold
1975 parameters
1976