smartmontools-vl.spec 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525
  1. Summary: smartmontools - for monitoring S.M.A.R.T. disks and devices
  2. Summary(ja): smartmontools - S.M.A.R.T.ディスクとデバイスの監視
  3. Name: smartmontools
  4. Version: 5.38
  5. Release: 2%{?_dist_release}
  6. License: GPL
  7. Group: Applications/System
  8. Source0: http://downloads.sourceforge.net/smartmontools/%{name}-%{version}.tar.gz
  9. Patch0: smartmontools-vinerelease.patch
  10. URL: http://smartmontools.sourceforge.net/
  11. Prereq: /sbin/chkconfig
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Obsoletes: smartctl
  14. Obsoletes: smartd
  15. Obsoletes: ucsc-smartsuite
  16. Obsoletes: smartsuite
  17. #Packager: Bruce Allen <smartmontools-support@lists.sourceforge.net>
  18. # Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  19. # Home page: http://smartmontools.sourceforge.net/
  20. #
  21. # This program is free software; you can redistribute it and/or modify it
  22. # under the terms of the GNU General Public License as published by the Free
  23. # Software Foundation; either version 2, or (at your option) any later
  24. # version.
  25. #
  26. # You should have received a copy of the GNU General Public License (for
  27. # example COPYING); if not, write to the Free Software Foundation, Inc., 675
  28. # Mass Ave, Cambridge, MA 02139, USA.
  29. #
  30. # This code was originally developed as a Senior Thesis by Michael Cornwell
  31. # at the Concurrent Systems Laboratory (now part of the Storage Systems
  32. # Research Center), Jack Baskin School of Engineering, University of
  33. # California, Santa Cruz. http://ssrc.soe.ucsc.edu/
  34. %description
  35. smartmontools controls and monitors storage devices using the
  36. Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.)
  37. built into ATA and SCSI Hard Drives. This is used to check the
  38. reliability of the hard drive and to predict drive failures. The suite
  39. is derived from the smartsuite package, and contains two utilities. The
  40. first, smartctl, is a command line utility designed to perform simple
  41. S.M.A.R.T. tasks. The second, smartd, is a daemon that periodically
  42. monitors smart status and reports errors to syslog. The package is
  43. compatible with the ATA/ATAPI-5 specification. Future releases will be
  44. compatible with the ATA/ATAPI-6 andATA/ATAPI-7 specifications. The
  45. package is intended to incorporate as much "vendor specific" and
  46. "reserved" information as possible about disk drives. man smartctl and
  47. man smartd will provide more information. The most recent versions of
  48. this package and additional information can be found at the URL:
  49. http://smartmontools.sourceforge.net/
  50. %description -l ja
  51. smartmontoolsはATAおよびSCSIハードドライブに組み込まれたSelf-Monitoring,
  52. Analysis and Reporting Technology (S.M.A.R.T.)システムを用いてストレージ
  53. デバイスを制御・監視するツールです。ハードドライブの信頼性を点検し、ドラ
  54. イブの故障を予測するために用いられます。smartmontoolsはsmartsuiteパッケ
  55. ージから派生したもので、2つのユーティリティからなります。1つ目、smartctl
  56. はS.M.A.R.T.タスクを処理するために設計されたコマンドラインユーティリティ
  57. です。2つ目のsmartdは周期的にS.M.A.R.T.状態を監視し、システムログにエラ
  58. ーを出力するデーモンです。このパッケージはATA/ATAPI-5仕様に準拠していま
  59. す。将来のリリースではATA/ATAPI-6およびATA/ATAPI-7仕様にも準拠する予定
  60. です。このパッケージはディスクドライブに関するベンダ特有および予約された
  61. 情報も可能な限り取り扱えることを重視しています。より詳しい情報はman
  62. smartctlおよびman smartdで得られます。最新のバージョン及び追加情報につい
  63. ての情報は次のURLにあります:http://smartmontools.sourceforge.net/
  64. %prep
  65. %setup -q
  66. %patch0 -p1
  67. %build
  68. %configure
  69. make
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. rm -rf %{_buildroot}
  73. %makeinstall
  74. rm -f examplescripts/Makefile*
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT
  77. %pre
  78. if [ ! -f /etc/smartd.conf ]; then
  79. echo "Note that you can use a configuration file /etc/smartd.conf to control the"
  80. echo "startup behavior of the smartd daemon. See man 8 smartd for details."
  81. fi
  82. # Now see if we should tell user to set service to start on boot
  83. /sbin/chkconfig --list smartd > /dev/null 2> /dev/null
  84. printmessage=$?
  85. if [ $printmessage -ne 0 ] ; then
  86. echo "Run \"/sbin/chkconfig --add smartd\", to start smartd service on system boot"
  87. else
  88. echo "smartd will continue to start up on system boot"
  89. fi
  90. %post
  91. # if smartd is already running, restart it with the new daemon
  92. if [ -f /var/lock/subsys/smartd ]; then
  93. /etc/rc.d/init.d/smartd restart 1>&2
  94. echo "Restarted smartd services"
  95. else
  96. # else tell the user how to start it
  97. echo "Run \"/etc/rc.d/init.d/smartd start\" to start smartd service now."
  98. fi
  99. %preun
  100. # if uninstalling the final copy, stop and remove any links
  101. if [ "$1" = "0" ]; then
  102. if [ -f /var/lock/subsys/smartd ]; then
  103. /etc/rc.d/init.d/smartd stop 1>&2
  104. echo "Stopping smartd services"
  105. fi
  106. # see if any links remain, and kill them if they do
  107. /sbin/chkconfig --list smartd > /dev/null 2> /dev/null
  108. notlinked=$?
  109. if [ $notlinked -eq 0 ]; then
  110. /sbin/chkconfig --del smartd
  111. echo "Removing chkconfig links to smartd boot-time startup scripts"
  112. fi
  113. fi
  114. %files
  115. %defattr(-,root,root)
  116. %attr(755,root,root) %{_sbindir}/smartd
  117. %attr(755,root,root) %{_sbindir}/smartctl
  118. %attr(755,root,root) /etc/rc.d/init.d/smartd
  119. %attr(644,root,root) %{_mandir}/man8/smartctl.8*
  120. %attr(644,root,root) %{_mandir}/man8/smartd.8*
  121. %attr(644,root,root) %{_mandir}/man5/smartd.conf.5*
  122. %doc AUTHORS CHANGELOG COPYING INSTALL NEWS README TODO WARNINGS smartd.conf examplescripts
  123. %config %{_sysconfdir}/smartd.conf
  124. # Maintainers / Developers Key:
  125. # [BA] Bruce Allen
  126. # [EB] Erik Inge Bols# [SB] Stanislav Brabec
  127. # [PC] Peter Cassidy
  128. # [CD] Capser Dik
  129. # [CF] Christian Franke
  130. # [GF] Guilhem Fr騷ou
  131. # [DG] Douglas Gilbert
  132. # [GG] Guido Guenther
  133. # [DK] David Kirkby
  134. # [KM] Kai M臾isarai
  135. # [EM] Eduard Martinescu
  136. # [FM] Fr馘駻ic L. W. Meunier
  137. # [KS] Keiji Sawada
  138. # [SS] Sergey Svishchev
  139. # [PW] Phil Williams
  140. %changelog
  141. * Tue Aug 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.38-2
  142. - spec in UTF-8
  143. * Sun Apr 27 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 5.38-1vl5
  144. - upstream release
  145. * Wed Jan 02 2008 Shu KONNO <owa@bg.wakwak.com> 5.37-0vl2
  146. - rebuilt for VineSeed
  147. * Tue May 29 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 5.37-0vl1
  148. - upstream release
  149. * Thu Jun 1 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 5.36-1vl2
  150. - upstream release
  151. - update Patch0
  152. - delete noreplace attribute from %%config
  153. * Sun Nov 28 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 5.33-1vl2
  154. - add Patch0: smartmontools-vinerelease.patch
  155. check /etc/vine-release in /etc/rc.d/init.d/smartd
  156. * Fri Oct 15 2004 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 5.33-1vl1
  157. - rebuild for VineSeed
  158. - remove warnings about man page on %pre script
  159. - remove distribution-specific macros and scripts
  160. - remove unnecessary %clean script
  161. - remove date macro
  162. - moved install-time "chkconfig --list" from %post to %pre
  163. - add Summary(ja) and description -l ja
  164. - remove Summary and description other than English and Japanese
  165. * Fri Sep 10 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  166. [BA] smartctl: ATA disks, if SMART ATTRIBUTE THRESHOLDS page has ID
  167. errors with some Attributes having NULL IDs, print Attribute
  168. info anyway (but issuing a warning to the user).
  169. [DG] [SCSI] Decode Last n error events log page; decode track following
  170. and positioning errors [Hitachi]
  171. [EM] FreeBSD: another tweak, __packed__ introduced in Version 5.0040
  172. [EM] Cleaner tweak of fixes for FreeBSD 4.x.
  173. [EM] Fix compilation errors under FreeBSD 4.x, as it is still using
  174. and old GCC
  175. [EM] Remove 3ware/FreeBSD specific files and just include pieces we need
  176. [DG] Add logic in smartd to detect 3ware, Marvell controllers and SATA
  177. disks behind an ATA-SCSI simulator (in Linux). If specific device
  178. types are not given and they are picked in a general SCSI device
  179. scan then warn and skip.
  180. [GG] insert correct path to smartd into smartd's init script
  181. [BA] Changed all default paths in documentation to reflect /usr/local as
  182. default path prefix. This affects on-line man pages, primarily.
  183. [DS] Added support for OpenBSD.
  184. [BA] Added another environment variable SMART_FULLMESSAGE set by
  185. the smartd mailing feature, and modified examplescripts/Example1
  186. to illustrate it.
  187. [BA] Fixed potentially misleading messages of the form:
  188. XXX failed: success
  189. [DG] emit warning if SATA disk detected using libata in Linux; then exit
  190. [PW] Added Seagate U10 family, Hitachi Travelstar 7K60, Fujitsu MHR2020AT,
  191. and QUANTUM FIREBALLP AS20.5 to knowndrives table.
  192. [DG] Detect 3ware and Marvell controllers from SCSI INQUIRY vendor string
  193. and suggest usage of appropriate '-d' argument in smartctl.
  194. [LW] Tested the RELEASE_5_33_WITH_MARVELL_SUPPORT branch on
  195. actual Marvell 88SX5041 hardware, with success.
  196. Merged into HEAD.
  197. [BA] Fixed nasty DEVICESCAN bug
  198. [BA] Checked in RELEASE_5_33_WITH_MARVELL_SUPPORT branch with
  199. some Marvell support.
  200. [BA] Additional modifications of Ed's controller scheme. Fixed
  201. broken 3ware support under linux, problems with scanning
  202. devices in smartd, and other small problems.
  203. [EM] Minor change to FreeBSD inclusion of 'twe' include files. Add
  204. code to check if they exising in /usr/include/sys to use those
  205. in preference to ones added here
  206. [EM] Very preliminary support attempt for 3Ware controllers under
  207. FreeBSD. Also, switched 'escalade_type/escalade_port' to
  208. 'controler_type/controller_port' and moved away from
  209. 'tryata/tryscsi' to using new 'controller*' variables to
  210. determine which controller type (ATA/SCSI/3Ware) to use.
  211. [GK] Added initscript support for Darwin.
  212. [CF] Windows smartd: Added ability to run smartd as a windows service,
  213. including new commands "smartd install ..." and "smartd remove"
  214. to install and remove the service registry entry.
  215. [BA] smartd: warn user if -s regexp regular expression contains
  216. characters other than 0123456789.*()|+?[-]{}:=SLCO since such
  217. characters are 'suspicous' and may indicate a poorly formed
  218. regexp. Extended regular expression gurus: can this list be
  219. reduced somewhat?
  220. [CF] Fixed bug in Windows smartd: Missing close of config file when
  221. configuration is reloaded by smartd daemon.
  222. [CF] Windows smartd: Added mail warning feature using the "Blat"
  223. (http://blat.sourceforge.net/) mailer as a default.
  224. [PW] Added Maxtor DiamondMax Plus 5120 Ultra ATA 33 series and TOSHIBA
  225. MK3017GAP to knowndrives table.
  226. [CF] Added fixes to build smartmontools on old Linux systems
  227. (libc < 6, Kernel 2.0.x).
  228. [BA] Added ATA minor version identity strings for latest ATA specification
  229. updates: ATA/ATAPI-7 T13 1532D revision 4a and ATA/ATAPI-6 published,
  230. ANSI INCITS 361-2002
  231. [PW] Added Hitachi Travelstar 5K80 family and Fujitsu MHTxxxxAH family to
  232. knowndrives table.
  233. [EM] Fix up compilation under FreeBSD < 5.x
  234. [PW] Added QUANTUM FIREBALL EX3.2A and missing Western Digital Caviar SE
  235. drives to knowndrives table.
  236. [BA] Modified Hitachi Travelstar 80GN family regexp in drive database.
  237. Thanks to [GK/CF] for problem & solution.
  238. [GK] Added os_darwin.[ch]
  239. [PW] Added the following drives to the knowndrives table: IBM Travelstar
  240. 48GH, 30GN, and 15GN family; IBM Deskstar 37GP and 34GXP family;
  241. Western Digital WDC WD272AA; Maxtor DiamondMax D540X-4D family;
  242. TOSHIBA MK2016GAP, MK2018GAP, MK2018GAS, MK2023GAS; and
  243. QUANTUM FIREBALL ST3.2A
  244. [BA] smartd/smarctl now print build HOST/OS information as part
  245. of startup slogan. This should make it slightly easier to
  246. read bug reports from users.
  247. [RZ] Fixed the DEVICESCAN to do what it was supposed to do - give
  248. error message unless scanning is in progress.
  249. [BA] Update documentation to describe 3ware character devices. Better
  250. error detection for missing/malfunctioning devices behind 3ware
  251. controllers. Now pack 3ware ioctl structures explicitly.
  252. [BA] For ATA devices that support LBA mode, print capacity as part
  253. of smartctl --info
  254. [RZ] Made DEVICESCAN quiet about non-existing devices unless debug
  255. is on.
  256. [DG] treat "unit attention" SCSI warning as try again in some contexts
  257. (test unit ready and mode sense)
  258. [BA] on drives that store max/min rather than min/max, get order
  259. correct in printing temp.
  260. [BA] fixed typo in 'smartctl -h' output. Thanks to Gabor Z. Papp.
  261. [BA] linux: clean-up to 3ware/AMCC support; dynamically create
  262. or fix /dev/tw[ae][0-15] device node entries if they don't
  263. exist or are incorrect. One can now use the character devices
  264. /dev/twe[0-15] OR /dev/sd? for 3ware 6000/7000/8000 series
  265. cards. One must use /dev/twa[0-15] for 3ware 9000 series cards.
  266. Note that selective self-tests now work via /dev/tw[ae] devices.
  267. Next step: documentation.
  268. [BA] linux: experimental "support" for 3ware/AMCC 9000 series
  269. controllers that use the 3w-9xxx driver. This will be in a
  270. state of flux for a few days. Note that this requires the
  271. character interface /dev/twa[0-15].
  272. [DG] linux: extend general SCSI OS interface to use the SG_IO ioctl. If
  273. not available, use the older SCSI_IOCTL_SEND_COMMAND ioctl.
  274. [KS] Solaris/x86: fixed system identification problem in configure
  275. script. Thanks to Stuart Swales.
  276. * Mon Jul 5 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  277. [BA] Update link to revised/updated IBM Deskstar Firmware
  278. [CF] Cygwin & Windows: Added missing ASPI manager initialization
  279. with GetASPI32SupportInfo(). Thanks to Nikolai SAOUKH for pointing
  280. this out and providing a patch.
  281. [BA] modified smartd init script to work on whitebox (thanks to
  282. Michael Falzon)
  283. [BA] removed (reverted) additional Attribute definitions from
  284. http://smart.friko.pl/attributes.php. All (or most?) of these
  285. appear to be return code values for the WD Digital Life Guard Utility.
  286. [PW] Added Seagate Medalist 17242, 13032, 10232, 8422, and 4312 to
  287. knowndrives table. Added missing Seagate U Series 5 drives.
  288. [PW] Added the following QUANTUM models to knowndrives table:
  289. FIREBALL EX6.4A, FIREBALLP AS10.2, FIREBALLP AS40.0, FIREBALL CR4.3A,
  290. FIREBALLP LM15, FIREBALLP LM30, and FIREBALLlct20 30
  291. [PW] Added missing Western Digital Protege drives to knowndrives table.
  292. [PW] Added Maxtor DiamondMax 40 ATA 66 series and DiamondMax 40 VL Ultra
  293. ATA 100 series to knowndrives table.
  294. [PW] Added the following Hitachi/IBM drives to knowndrives table:
  295. HITACHI_DK14FA-20B, Travelstar 40GNX series, Travelstar 4LP series,
  296. and Travelstar DK23XXB series. Added the missing Travelstar 80GN
  297. drives.
  298. [PW] Added Fujitsu MPB series and MPG series to knowndrives table. Added
  299. the missing Fujitsu MHSxxxxAT drives.
  300. [KS] Solaris: added workaround for dynamic change of time-zone.
  301. [KS] Solaris: fixed problem that autogen.sh cannot detect absence of
  302. auto* tools.
  303. [BA] smartd: added time-zone bug information to man page.
  304. Reverted CF code for _WIN32 case.
  305. [CF] Cygwin & Windows: Added better error messages on IDE/ATA device
  306. open error.
  307. [BA] added additional Attribute definitions from
  308. http://smart.friko.pl/attributes.php
  309. [BA] smartd: reworked TimeZone bug workaround so it is only invoked
  310. for glibc. Note: this might not be right -- a similar bug may
  311. exist in other platform's libcs.
  312. [DG] SCSI smartmontools documentation updated [2004/5/6]. See:
  313. http://smartmontools.sourceforge.net/smartmontools_scsi.html
  314. [CF] Windows: Fixed reset of TZ=GMT in glibc timezone bug workaround.
  315. * Tue May 4 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  316. [DG] move SCSI device temperature and start-stop log page output
  317. (smartctl) into --attributes section (was in --info section).
  318. [GG] change default installation location to /usr/local
  319. [CF] Cygwin smartd: Fixed crash on access of SCSI devices after fork().
  320. [PW] Added TOSHIBA MK4018GAS and the following Maxtor drive families
  321. to knowndrives table: DiamondMax D540X-4G, Fireball 541DX,
  322. DiamondMax 3400 Ultra ATA, DiamondMax Plus 6800 Ultra ATA 66.
  323. [PW] Added missing Maxtor DiamondMax 16, DiamondMax D540X-4K, and
  324. DiamondMax Plus 45 Ulta ATA 100 drives to knowndrives table.
  325. [PW] Added ExcelStor J240, Hitachi Travelstar 80GN family, Fujitsu
  326. MHTxxxxAT family, and IBM Deskstar 25GP and 22GXP families to
  327. knowndrives table.
  328. [CF] Cygwin smartd: Added workaround for missing SIGQUIT via keyboard:
  329. To exit smartd in debug mode, type CONTROL-C twice.
  330. [BA] smartctl: printing of the selective self-test log is now
  331. controlled by a new option: -l selective
  332. [BA] Added entries for Samsung firmware versions -25 to -39 based
  333. on latest info about firmware bug fixes.
  334. [PW] Added Seagate U Series X family, Seagate U8 family, and Seagate
  335. Medalist 8641 family to knowndrives table.
  336. [CF] smartd: Added exit values 5/6 for missing/unreadable config file.
  337. [BA] smartd: now monitor the Current Pending Sector count (Attribute 197)
  338. and the Offline Pending Sector Count (Attribute 198). Log a
  339. warning (and send an email, if so configured) if the raw count
  340. is nonzero. These are controlled by new Directives: -C and -U.
  341. Currently they are enabled by default.
  342. [CF] Added option -c FILE, --configfile=FILE to smartd to specify
  343. an alternate configuration FILE or '-' for standard input.
  344. [KS] configure.in now searches for -lnsl and -lsocket for Solaris.
  345. [CF] Win32/native smartd: Added thread to combine several syslog output
  346. lines into one single event log entry.
  347. [CF] Win32 smartd: Added DEVICESCAN for SCSI/ASPI devices.
  348. [GG] Use gethostbyname() the get the DNS domain since getdomainname()
  349. returns the NIS domain when sending mails from smartd.
  350. [GG] smartd.init.in: pass smartd_opts to smartd on startup, read distribution
  351. specific configuration files if found
  352. [SS] smartctl: added NetBSD support for Selective Self-tests.
  353. [BA] smartd.conf example configuration file now has all examples
  354. commented out except for 'DEVICESCAN'.
  355. [CF] Win32/native smartd: Added ability to display warning "emails"
  356. as message box by "-m msgbox" directive. With "-m sysmsgbox",
  357. a system modal (always on top) message box is shown.
  358. [BA] smartctl: printing of self-test log for disks that support
  359. Selective self-testing now shows the status of the (optional)
  360. read-scan after the selective self test. Also, changed format
  361. in printing self-test log to print failing LBA in base 10 not
  362. base 16 (more compatible with kernel error messages). Also,
  363. in printing SMART error log, print timestamps in format
  364. days+hours+minutes+seconds.
  365. [CF] Win32 smartd: Added ability to log to stdout/stderr
  366. (-l local1/2). Toggling debug console still works
  367. if stdout is redirected.
  368. [BA] smartctl: selective self-test log, print current status
  369. in a more detailed way. Allow writing of selective self-test
  370. log provided that no other self-test is underway.
  371. [BA] Linux: eliminated dependency on kernel tree hdreg.h.
  372. [BA] smartctl: -l selftest option now prints Selective self-test
  373. log in addition to the normal self-test log.
  374. Added additional options (-t pending, -t afterselect) to
  375. control remaining Selective Self-test capabilities. Tested
  376. with several Maxtor disks. Modified error message printing
  377. so that munged option messages print at the end not the
  378. start of output.
  379. [CF] Added daemon support to Win32 native version of smartd.
  380. The daemon can be controlled by commands similar to initd
  381. scripts: "smartd status|stop|reload|restart|sigusr1|sigusr2".
  382. [CF] Added minor support for option "-l local[0-7]" to Win32 native
  383. (not Cygwin) version of smartd. If specified, the log output
  384. is written to file "./smartd[1-7]?.log" instead of event log.
  385. [BA] Added Selective Self-test to smartctl (-t selective,M-N).
  386. Currently only supported under Linux; Solaris, NetBSD, FreeBSD
  387. and Windows developers must add WRITE LOG functionality to
  388. os_*.c
  389. [BA] Added workaround for an annoying glibc bug: if you change
  390. timezones, (eg, flying with a laptop from USA to Europe)
  391. localtime() does not notice this in a running
  392. executable, so time that appears in the system log (syslog!)
  393. will be incorrect. See
  394. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48184
  395. for additional examples of this bug.
  396. [DG] Set explicit timeouts for SCSI commands (most default to 6 seconds).
  397. Previously a 0 second timeout was meant to be interpreted as a
  398. default timeout but the FreeBSD port had a problem in this area.
  399. [CF] Fixed un-thread-safe exit signal handler for Win32
  400. [BA] Fixed un-thread-safe exit signal handler pointed out
  401. by CF.
  402. [BA] Changed configure script to eliminate warnings under
  403. Solaris from sys/int_type.h conflicts with int64.h
  404. Added header files for umask to smartd.c.
  405. [BA] Man page format change from Werner LEMBERG. " " changed to \&
  406. [CF] Added os_win32/syslogevt.* event message file tool for Win32
  407. smartd (native+cygwin). May also be useful for other cygwin
  408. programs writing to syslog().
  409. [CF] Added Win32 version of smartd
  410. [CF] Merged RELEASE_5_26_WIN32_BRANCH
  411. [BA] Made some changes to man page markup suggested by
  412. Richard Verhoeven to work around bugs in man2html.
  413. Tested not to break anything under Linux and Solaris.
  414. [CF] Moved PrintOut() from utility.c to smart{ctl,d}.c to avoid
  415. syslog() output of smartctl.
  416. [BA] Grew worried that some time-zone names could be very long (eg,
  417. Mitteleuropaische Zeit) and put date string lengths into a
  418. single macro in utility.c
  419. [EM] Updated os_freebsd.c to handle older versions of FreeBSD in a
  420. more appropriate/obvious fashion.
  421. [EM] Modified autogen.sh as FreeBSD installs automake 1.7 as
  422. 'automake17' and NOT 'automake-1.7'
  423. * Sat Mar 6 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  424. [PW] Added QUANTUM FIREBALLlct15 30, QUANTUM FIREBALLlct20 40, and
  425. Maxtor 6Y060P0 (DiamondMax Plus 9 60GB) to knowndrives table.
  426. [PW] Added Maxtor MaXLine II family to knowndrives table (thanks to
  427. Brett Russ for submitting the patch).
  428. [BA] Added remaining read/write commands to detailed list of
  429. error log commands that have text descriptions of problem
  430. printed. For commands that support it, print number of failed
  431. sectors at problem LBA.
  432. [BA] Made SuSE section of smartd init script more SuSE 9 compatible.
  433. Thanks to Hans-Peter Jansen.
  434. [CF] Windows smartd: Added IDE/ATA device scan
  435. Added windows device names to smartctl.8.in, smartd.8.in
  436. [BA] smartctl/smartd: user-provided '-F samsung' and '-F samsung2'
  437. command line options/Directives did NOT over-ride preset values
  438. unless user specified '-P ignore'. Now they will always over-ride
  439. preset values from the database.
  440. [BA] Added error decoding for a few more READ and WRITE commands.
  441. [PW] Added Maxtor MaXLine Plus II, Western Digital Caviar SE (Serial ATA)
  442. series, Hitachi Deskstar 7K250 series, and Ultra ATA 66 models of
  443. the Maxtor DiamondMax Plus 40 series to knowndrives table.
  444. [BA] Added Maxtor Diamondmax 250 GB drives to database. Note that
  445. these model numbers are not listed in Maxtor documentation, but
  446. they exist.
  447. [BA] Removed the 'contact developers' phrase from the Samsung disk
  448. warning messages.
  449. [PW] Added TOSHIBA MK2017GAP, IBM Deskstar 14GXP and 16GP series,
  450. Fujitsu MPC series, Seagate Barracuda ATA III family, and missing
  451. Seagate Barracuda U Series drives to knowndrives table
  452. [BA] smartd: wrong loglevel for message: Configuration file
  453. /etc/smartd.conf parsed. Changed to LOG_INFO from LOG_CRIT.
  454. Thanks to Emmanuel CHANTREAU for the report.
  455. [CF] Checked in development version of windows code base.
  456. * Tue Feb 24 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  457. [BA] smartd: configure script did not set correct directory to search for
  458. smartd.conf based on --prefix argument to ./configure. Thanks to
  459. GG for identifying the problem and fix.
  460. [BA] make clean now removes man pages (generated from *.in) files as well
  461. as object files.
  462. [EM] Correct copying of sense data in FreeBSD SCSI implementation. Thanks
  463. to Sergey Svishchev for noticing the bug.
  464. [BA] On solaris, wrong warning message if no ATA support. Warning message
  465. concerns 3ware controller, not ATA.
  466. [SS] Added SCSI support for NetBSD.
  467. [BA] on big-endian linux machines, fixed interpretation of HDIO_GET_IDENTITY
  468. to correctly identify ATAPI bit (was byte swapped). This should
  469. eliminate some SYSLOG noise if user queries a packet device (eg, CD
  470. ROM or DVD reader).
  471. [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives with
  472. A5AA/A6AA firmware. Thanks to Gerald Schnabel.
  473. [PW] Added Toshiba TOS MK3019GAXB SUN30G to knowndrives table
  474. [PW] Added Western Digital Caviar AC12500, AC24300, AC25100, AC36400,
  475. and AC38400 to knowndrives table
  476. [BA] When printing ATA error log, print the LBA at which READ
  477. or WRITE commands failed.
  478. [BA] Changed syntax of error message in smartctl
  479. [BA] Added versioning info (-V options to smartd/smartctl) for
  480. Solaris ATA module.
  481. * Thu Feb 12 2004 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  482. [KS] Added ATA/IDE support for Solaris/SPARC (ATA/IDE not yet for
  483. Solaris/x86).
  484. [BA] 3ware controllers: documented that one can monitor any of the
  485. physical disks from any of the 3ware /dev/sd? logical devices.
  486. Better warnings if querying a disk that does not exist.
  487. [PW] Added Hitachi Travelstar DK23DA series, Maxtor DiamondMax Plus 40
  488. series, Western Digital Caviar WDxxxAA, WDxxxBA, and WDxxxAB series
  489. to knowndrives table
  490. [BA] missing 'pragma pack' on ATA IDENIFY DEVICE structure may have
  491. caused odd or incorrect results on 64-bit machines.
  492. [BA] smartctl/smartd allow inspection of self-test and error logs even
  493. if disk firmware claims that these don't exist. This is needed
  494. for some Maxtor disks whose firmware does not indicate log support
  495. even though the disk DOES support it.
  496. [BA] Improved porting instructions and documentation in os_generic.c
  497. [PW] Add Western Digital Caviar WD136AA and SAMSUNG SP40A2H (RR100-07
  498. firmware) to knowndrives table.
  499. [EM] FreeBSD: remove extra definition of FreeNonZero
  500. [BA] smartctl: the -q silent option was printing output for some
  501. error conditions. Fixed. Will rename relevant variables to help
  502. avoid these errors in the future.
  503. [SS] NetBSD port added.
  504. [BA] more sensible error messages for devfs and devfs-like systems.
  505. Instead of saying that the DIRECTORY does not exist, say that
  506. the DEVICE does not exist.
  507. [BA] smartd: added -n Directive, to prevent disk spin-up depending
  508. upon the power mode (SLEEP, STANDBY, or IDLE).
  509. [PW] Added Maxtor DiamondMax 20 VL series, Fujitsu MPF series,
  510. Maxtor DiamondMax 36 series, Maxtor DiamondMax 4320 series, and
  511. Maxtor DiamondMax 536DX series to knowndrives table.
  512. [BA] many warning messages now give the file name AND VERSION
  513. [BA] smartd: when the user provides multiple address recipients
  514. to the '-m' Directive in a comma-delineated list, the commas
  515. are stripped out before passing the list of addresses to the
  516. mailer program. (Thanks to Calin A. Culianu for pointing this out
  517. and providing a patch.)
  518. [BA] smartd: when the '-M exec path' Directive is used, any stdout OR
  519. stderr output from the executable "path" is assumed to indicate a
  520. problem, and is echoed to SYSLOG.
  521. [BA] Added all missing IBM/Hitachi Deskstar 180GXP models to knowndrives
  522. table.
  523. [PW] Added some missing IBM/Hitachi Deskstar 120GXP models to knowndrives
  524. table.
  525. [PW] Added IBM Travelstar 14GS to knowndrives table.
  526. [PW] Modified knowndrives table to match entire Hitachi Travelstar
  527. DK23BA and DK23EA series of drives (thanks to Norikatsu Shigemura
  528. for submitting the patch).
  529. [PW] Added some missing Fujitsu MPE series drives to knowndrives table.
  530. [PW] Added TOSHIBA MK4019GAX, TOSHIBA MK6409MAV, and QUANTUM
  531. FIREBALLlct15 20 to knowndrives table.
  532. [EM] Fixup example command output for FreeBSD
  533. [PW] Added Maxtor DiamondMax 80 family to knowndrives table.
  534. [EM] Catch up FreeBSD code to switch PROJECTHOME to PACKAGE_HOMEPAGE
  535. macros.
  536. [BA] smartd: now watches stdout/stderr when trying to run mail, mailx
  537. or mail warning script, and reports any output to SYSLOG. This
  538. gives a clearer error message if something is wrong.
  539. [BA] smartd: Solaris init script modified to accomodate grep that
  540. lacks '-q' quiet option. Also check for running process to kill
  541. on stop.
  542. [PW] Added some missing Seagate Barracuda 7200.7 and 7200.7 Plus drives
  543. to knowndrives table.
  544. [PW] Added Maxtor DiamondMax Plus 60 family and Seagate U Series 5 20413
  545. to knowndrives table.
  546. [BA] smartd: under Solaris, made default mailer be 'mailx' not
  547. 'mail', since Solaris 'mail' does not accept a '-s' argument.
  548. A workaround for Solaris users of earlier versions is to
  549. have '-M exec /bin/mailx' in their smartd.conf config file.
  550. [DG] some SCSI controllers don't like odd length transfers so make
  551. sure LOG SENSE transfers are rounded up to an even number when
  552. and odd length is reported (i.e. there is a double fetch, the
  553. first to find the length, the second gets the data)
  554. [BA] smartd man pages: under Solaris, correct section numbers in the
  555. 'See also' section.
  556. [KS/BA] smartd man page: describe how to set Solaris syslog.conf
  557. file to catch all messages. Give correct Solaris SYSLOG default
  558. path /var/adm/messages in man pages.
  559. [BA] smartd: incorporated Debian startup script submitted by user.
  560. [BA] smartctl: modified printing of self-test log entry number. Seagate
  561. firmware can leave 'holes' in the self-test log while a test is
  562. actually running. We now print entry numbers consistently in this
  563. case, not assuming that entries are contiguous.
  564. [PW] Added QUANTUM FIREBALL CX10.2A and Western Digital Caviar AC23200L
  565. to knowndrives table.
  566. [PW] Added QUANTUM FIREBALLlct20 20 to knowndrives table.
  567. [PW] Added Maxtor DiamondMax Plus D740X family to knowndrives table.
  568. [PW] Added IBM Travelstar 32GH, 30GT, and 20GN family to knowndrives
  569. table.
  570. [BA] Slackware init script modified to search for /etc/slackware-version
  571. rather than /etc/slackware-release.
  572. [PW] Added Seagate Barracuda ATA II family and TOSHIBA MK4019GAXB to
  573. knowndrives table.
  574. [GG] explain howto use autoreconf in autogen.sh
  575. [KS] Makefile.am/configure.in: changed manual page sections for
  576. Solaris.
  577. [BA] smartd: reduced number of scheduled self-test messages if
  578. test already run in current hour.
  579. [PW] Added Maxtor DiamondMax Plus 8 family to knowndrives table.
  580. [BA] linux: check for linux/hdreg.h. If it's there, use it. If
  581. not, provide the necessary definitions ourselves.
  582. [PW] Removed warning for IBM Deskstar 40GV & 75GXP series drives
  583. with TXAOA5AA firmware
  584. [PW] Added IBM Travelstar 25GS, 18GT, and 12GN family to knowndrives
  585. table.
  586. [PW] Added IBM/Hitachi Travelstar 60GH & 40GN family to knowndrives
  587. table.
  588. [BA] smartd: made '-s' Directive more efficient. Now store
  589. compiled regex, and re-use. If device lacks certain self-test
  590. capabilities, track it and don't try again.
  591. [BA] smartd: made memory allocation for device lists completely
  592. dynamic (eliminating compile-time maximum length constants).
  593. [PW] Removed warning for SAMSUNG SP0802N with TK100-23 firmware
  594. [PW] Added Seagate Barracuda ATA IV family to knowndrives table.
  595. [BA] smartd: reduce per-device memory footprint by making
  596. mail-warning info dynamically allocated. Also remove
  597. potential memory leak if use has -m Directive twice and
  598. keeps reloading the config file (highly unlikely this would
  599. ever be noticed!)
  600. [DG] smartd: added SCSI scheduled self-tests (Background
  601. short or extended).
  602. [BA] smartd: can now run scheduled offline immediate and
  603. self-tests. See man page and -s Directive for details.
  604. [GG] don't include manpages in make-dist-tarball.
  605. [BA] smartctl: on-line examples given with -h are now correct
  606. for solaris and linux, but wrong for freebsd. Ed?
  607. [BA] smartd: man page now explains device scanning for solaris as
  608. well as linux and freebsd.
  609. [BA] smartd/smartctl: man pages now report correct CVS tag release
  610. date, and executables '-V' options reports more build info.
  611. * Sat Nov 29 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  612. [BA] Improved user messages that appear from 'make install'
  613. [PW] Removed warning for SAMSUNG SP1213N with firmware TL100-23
  614. [BA] incorporated SuSE init script from user.
  615. [DG] if SCSI device is read only, then open it read only.
  616. [BA] when compiled on non-supported system (NOT linux, freebsd or solaris) then
  617. the run-time error messages now clearly say 'your system is not supported'
  618. and give clear directions.
  619. [BA] ./configure script now works correctly on SuSE linux boxes
  620. [BA] minor improvements to man pages
  621. [BA] simplified detection of packet (ATAPI, CD) devices.
  622. [BA] init script (redhat, mandrake, yellowdog) now uses correct
  623. strings for translation and is slightly more standard.
  624. [DG] smartctl: output scsi Seagate vendor pages for disks (not tapes)
  625. * Wed Nov 19 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  626. [DG] smartd/smartctl: changed scsiClearControlGLTSD() to
  627. scsiSetControlGLTSD() with an 'enabled' argument so '-S on'
  628. and '-S off' work for SCSI devices (if changing GLTSD supported).
  629. [BA] smartd/smartctl: wired in scsiClearControlGLTSD(). Could still
  630. use a corresponding Set function. Left stubs for this purpose.
  631. [DG] scsicmds: added scsiClearControlGLTSD() [still to be wired in]
  632. [BA] smartctl: make SCSI -T options behave the same way as the
  633. ATA ones.
  634. [DG] smartctl: output scsi transport protocol if available
  635. [DG] scsi: stop device scan in smartd and smartctl if badly formed
  636. mode response [heuristic to filter out USB devices before we
  637. (potentially) lock them up].
  638. [BA] smartd: deviceclose()->CloseDevice(). Got rid of SCSIDEVELOPMENT
  639. macro-enabled code. Added -W to list of gcc specific options to
  640. always enable. Made code clean for -W warnings.
  641. [PW] Added Maxtor DiamondMax VL 30 family to knowndrives table.
  642. [DG] scsi: add warning (when '-l error' active) if Control mode page
  643. GLTSD bit is set (global disable of saving log counters)
  644. [DG] scsi: remember mode sense cmd length. Output trip temperature
  645. from IE lpage (IBM extension) when unavailable from temp lpage.
  646. [BA] smartd: for both SCSI and ATA now warns user if either
  647. the number of self-test errors OR timestamp of most
  648. recent self-test error have increased.
  649. [DG] smartctl: output Seagate scsi Cache and Factory log pages (if
  650. available) when vendor attributes chosen
  651. [DG] smartd: add scsiCountFailedSelfTests() function.
  652. [DG] Do more sanity checking of scsi log page responses.
  653. [BA] smartd: now warns user if number of self-test errors has
  654. increased for SCSI devices.
  655. [BA] smartd: warn user if number of ATA self-test errors increases
  656. (as before) OR if hour time stamp of most recent self-test
  657. error changes.
  658. [DG] More checks for well formed mode page responses. This has the side
  659. effect of stopping scans on bad SCSI implementations (e.g. some
  660. USB disks) prior to sending commands (typically log sense) that
  661. locks them up.
  662. [PW] Added Western Digital Caviar family and Caviar SE family to
  663. knowndrives table.
  664. [BA] smartd: added -l daemon (which is the default value if -l
  665. is not used).
  666. [PW] Added Seagate Barracuda ATA V family to knowndrives table.
  667. [BA] smartd: added additional command line argument -l FACILITY
  668. or --logfacility FACILITY. This can be used to redirect
  669. messages from smartd to a different file than the one used
  670. by other system daemons.
  671. [PW] Added Seagate Barracuda 7200.7, Western Digital Protege WD400EB,
  672. and Western Digital Caviar AC38400 to knowndrives table.
  673. [BA] smartd: scanning should now also work correctly for
  674. devfs WITHOUT traditional links /dev/hd[a-t] or /dev/sd[a-z].
  675. [PW] Added Maxtor 4W040H3, Seagate Barracuda 7200.7 Plus,
  676. IBM Deskstar 120GXP (40GB), Seagate U Series 20410,
  677. Fujitsu MHM2100AT, MHL2300AT, MHM2150AT, and IBM-DARA-212000
  678. to knowndrives table.
  679. [PW] Added remaining Maxtor DiamondMax Plus 9 models to knowndrives
  680. table.
  681. [EM] smartd: If no matches found, then return 0, rather than an error
  682. indication, as it just means no devices of the given type exist.
  683. Adjust FreeBSD scan code to mirror Linux version.
  684. [BA] smartd: made device scan code simpler and more robust. If
  685. too many devices detected, warn user but scan as many
  686. as possible. If error in scanning, warn user but don't
  687. die right away.
  688. [EM] smartd: To keep as consistent as possible, migrate FreeBSD
  689. devicescan code to also use glob(3). Also verified clean
  690. compile on a 4.7 FreeBSD system.
  691. [BA] smartd: Modified device scan code to use glob(3). Previously
  692. it appeared to have trouble when scanning devices on an XFS
  693. file system, and used non-public interface to directory
  694. entries. Problems were also reported when /dev/ was on an
  695. ext2/3 file system, but there was a JFS partition on the same
  696. disk.
  697. [BA] Clearer error messages when device scanning finds no suitable
  698. devices.
  699. [EM] FreeBSD: Fixup code to allow for proper compilation under
  700. -STABLE branch.
  701. * Fri Oct 31 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  702. - [BA] smartd: didn't close file descriptors of ATA packet devices
  703. that are scanned. Fixed.
  704. - [BA] Added reload/report targets to the smartmontools init script.
  705. reload: reloads config file
  706. report: send SIGUSR1 to check devices now
  707. * Mon Oct 27 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  708. - [EM] Fix compile issues for FreeBSD < 5-CURRENT.
  709. - [PW] Added Fujitsu MHM2200AT to knowndrives table.
  710. - [BA] To help catch bugs, clear ATA error structures before all
  711. ioctl calls. Disable code that attempted to time-out on SCSI
  712. devices when they hung (doesn't work).
  713. - [BA] Documented STATUS/ERROR flags added by [PW] below.
  714. - [BA] Improved algorithm to recognize ATA packet devices. Should
  715. no longer generate SYSLOG kernel noise when user tries either
  716. smartd or smartctl on packet device (CD-ROM or DVD). Clearer
  717. warning messages from smartd when scanning ATA packet device.
  718. - [PW] Added TOSHIBA MK4025GAS to knowndrives table.
  719. - [PW] Added a textual interpretation of the status and error registers
  720. in the SMART error log (ATA). The interpretation is
  721. command-dependent and currently only eight commands are supported
  722. (those which produced errors in the error logs that I happen to
  723. have seen).
  724. - [BA] added memory allocation tracking to solaris code.
  725. Fixed solaris signal handling (reset handler to default
  726. after first call to handler) by using sigset. Added
  727. HAVE_SIGSET to configure.in
  728. - [CD] solaris port: added SCSI functionality to solaris
  729. stubs.
  730. - [BA] smartd: attempt to address bug report about smartd
  731. hanging on USB devices when scanning:
  732. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=107615
  733. Set a timeout of SCSITIMEOUT (nominally 7 seconds) before
  734. giving up.
  735. - [EM] smartd: DEVICESCAN will follow links in a devfs filesystem and
  736. make sure the end point is a disc. Update documentation, added
  737. note about FreeBSD scanning
  738. - [BA] smartd: DEVICESCAN also looks for block devices in
  739. /dev. Updated documentation. Now scans for up to
  740. 20 ATA devices /dev/hda-t rather than previous 12
  741. /dev/hda-l.
  742. - [EM] smartd: mirror the FreeBSD DEVICESCAN logic for Linux,
  743. so that smartd now scans only devices found in /dev/. Also,
  744. make utility memory functions take a line number and file so
  745. that we report errors with the correct location.
  746. - [GG] add a note about Debian bug #208964 to WARNINGS.
  747. - [BA] smartctl: -T verypermissive option broken. Use
  748. -T verpermissive until the next release, please.
  749. - [BA] Syntax mods so that code also compiles on Solaris using
  750. Sun Workshop compiler. Need -xmemalign 1i -xCC flags
  751. for cc.
  752. * Wed Oct 15 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  753. [DK] Changed configure.in so -Wall is only included if gcc
  754. is used (this is a gcc specific flag) and -fsignedchar
  755. is not used at all (this is a gcc specific compiler
  756. flag).
  757. [BA] Modifications so that code now compiles under solaris. Now
  758. all that's needed (:-) is to fill in os_solaris.[hc]. Added
  759. os_generic.[hc] as guide to future ports. Fixed -D option
  760. of smartd (no file name). Modified -h opt of smartd/smartctl
  761. to work properly with solaris getopt().
  762. [EM] Update MAN pages with notes that 3ware drives are NOT supported
  763. under FreeBSD. Cleanup FreeBSD warning message handling.
  764. [EM] FreeBSD only: Fix first user found bug....I guess I was making
  765. the wrong assumption on how to convert ATA devnames to
  766. channel/unit numbers.
  767. [EM] Allow for option --enable-sample to append '.sample' to installed
  768. smartd.conf and rc script files. Also, let rc script shell setting
  769. be determined by configure
  770. [EM] Minor autoconf update to include -lcam for FreeBSD
  771. [EM] Add conditional logic to allow FreeBSD to compile pre-ATAng.
  772. -- note, not tested
  773. Add some documentation to INSTALL for FreeBSD.
  774. [EM] Implement SCSI CAM support for FreeBSD. NOTE: I am not an expert
  775. in the use of CAM. It seems to work for me, but I may be doing
  776. something horribly wrong, so please exercise caution.
  777. [EM] Switch over to using 'atexit' rather than 'on_exit' routine. This also
  778. meant we needed to save the exit status elsewhere so our 'Goodbye'
  779. routine could examine it.
  780. [EM] Move the DEVICESCAN code to os specific files. Also moved some of the
  781. smartd Memory functions to utility.c to make available to smartctl.
  782. [EM] Code janitor work on os_freebsd.c.
  783. [EM] Added os_freebsd.[hc] code. Additional code janitor
  784. work.
  785. [BA] Code janitor working, moving OS dependent code into
  786. os_linux.[hc].
  787. [GG] conditionally compile os_{freebsd,linux}.o depending on
  788. host architecture
  789. [PW] Print estimated completion time for tests
  790. [BA] Added -F samsung2 flag to correct firmware byte swap.
  791. All samsung drives with *-23 firmware revision string.
  792. * Sun Oct 05 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  793. - [GG] Fixed broken Makefile.am (zero length smartd.conf.5
  794. was being created)
  795. - [FM] Improved Slackware init script added to /etc/smartd.initd
  796. * Fri Oct 03 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  797. - [BA] smartctl: added '-T verypermissive' option which is
  798. equivalent to giving '-T permissive' many times.
  799. - [BA] Try harder to identify from IDENTIFY DEVICE structure
  800. if SMART supported/enabled. smartd now does a more
  801. thorough job of trying to assess this before sending
  802. a SMART status command to find out for sure.
  803. - [BA] smartctl: it's now possible to override the program's
  804. guess of the device type (ATA or SCSI) with -d option.
  805. - [BA] try hard to avoid sending IDENTIFY DEVICE to packet
  806. devices (CDROMS). They can't do SMART, and this generates
  807. annoying syslog messages. At the same time, identify type
  808. of Packet device.
  809. - [BA] smartctl: Can now use permissive option more
  810. than once, to control how far to go before giving up.
  811. - [BA] smartd: if user asked to monitor either error or self-test
  812. logs (-l error or -l selftest) WITHOUT monitoring any of the
  813. Attribute values, code will SEGV. For 5.1-18 and earlier,
  814. a good workaround is to enable Auto offline (-o on).
  815. - [BA] smartctl: If enable auto offline command given, update auto
  816. offline status before printing capabilities.
  817. - [GG] Make autotools build the default, remove autotools.diff
  818. - [GG] Add auto{conf,make} support, not enabled by default.
  819. - [BA] Eliminated #include <linux/hdreg.h> from code. This
  820. should simplify porting to solaris, FreeBSD, etc. The
  821. only linux-specific code is now isolated to three routines,
  822. one for SCSI, one for Escalade, one for ATA.
  823. * Fri Aug 22 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  824. - [BA] smartd: fixed serious bug - Attributes not monitored unless
  825. user told smartd to ignore at least one of them!
  826. * Tue Aug 19 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  827. - [BA] Default runlevels for smartd changed from 3 and 5 to
  828. 2, 3, 4, and 5.
  829. - [BA] Removed as much dynamic memory allocation as possible from
  830. configuration file parsing. Reloading config file, even in
  831. presence of syntax errors etc. should not cause memory leaks.
  832. - [PW] It is no longer permissible for the integer part (if any) of
  833. arguments to --report and --device to be followed by non-digits.
  834. For example, the "foo" in --report=ioctl,2foo was previously
  835. ignored, but now causes an error.
  836. - [BA] smartd: added -q/--quit command line option to specify
  837. under what circumstances smartd should exit. The old
  838. -c/--checkonce option is now obsoleted by this more
  839. general-purpose option.
  840. - [BA] smartd now responds to a HUP signal by re-reading its
  841. configuration file /etc/smartd.conf. If there are
  842. errors in this file, then the configuration file is
  843. ignored and smartd continues to monitor the devices that
  844. it was monitoring prior to receiving the HUP signal.
  845. - [BA] Now correctly get SMART status from disks behind 3ware
  846. controllers, thanks to Adam Radford. Need 3w-xxxx driver
  847. version 1.02.00.037 or later. Previously the smartmontools
  848. SMART status always returned "OK" for 3ware controllers.
  849. - [BA] Additional work on dynamic memory allocation/deallocation.
  850. This should have no effect on smartctl, but clears that way
  851. for smartd to dynamically add and remove entries. It should
  852. also now be easier to modify smartd to re-read its config
  853. file on HUP (which is easy) without leaking memory (which is
  854. harder). The philosophy is that memory for data structures in
  855. smartd is now allocated only on demand, the first time it
  856. is needed.
  857. - [BA] smartd: finished cleanup. Now use create/rm functions for
  858. cfgentries and dynamic memory allocation almost everywhere.
  859. Philosophy: aggresively try and provoke SEGV to help find
  860. bad code.
  861. - [BA] Added SAMSUNG SV0412H to knowndrives table.
  862. - [BA] smartd: if DEVICESCAN used then knowndrives table might not set
  863. the -v attributes correctly -- may have been the same for all
  864. the drives. Cleaned up some data structures and memory
  865. allocation to try and ensure segvs if such problems are
  866. introduced again.
  867. - [BA] Now allow -S on and -o on for the 3ware device type. For these
  868. commands to be passed through, the stock 3ware 3w-xxxx driver
  869. must be patched (8 lines). I'll post a patch on the smartmontools
  870. home page after it's been tested by a few other people and 3ware
  871. have had a chance to look it over.
  872. * Wed Aug 06 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  873. - [BA] smartd - can now monitor ATA drives behind 3ware controllers.
  874. - [BA] smartd - changed some FATAL out of memory error messages from
  875. syslog level LOG_INFO to LOG_CRIT.
  876. - [BA] smartctl - added code to look at ATA drives behind 3ware RAID
  877. controllers using the 3w-xxxx driver. Note that for technical
  878. reasons related to the 3w-xxxx driver, the "Enable Autosave",
  879. "Enable Automatic Offline" commands are not implemented.
  880. I will add this to smartd shortly.
  881. - [BA] smartd - modified sleep loop, so that smartd no longer comes
  882. on the run queue every second. Instead, unless interrupted,
  883. it sleeps until the next polling time, when it wakes up. Now
  884. smartd also tries to wake up at exactly the right
  885. intervals (nominally 30 min) even if the user has been sending
  886. signals to it.
  887. - [GG] add Fujitsu MHN2300AT to vendoropts_9_seconds.
  888. - [EB] Fujitsu change in knowndrives ... match the whole MPD and
  889. MPE series for vendoropts_9_seconds.
  890. - [BA] smartd bug, might cause segv if a device can not be opened. Was
  891. due to missing comma in char* list. Consequence is that email
  892. failure messages might have had the wrong Subject: heading for
  893. errorcount, FAILEDhealthcheck, FAILEDreadsmartdata, FAILEDreadsmarterrorlog,
  894. FAILEDreadsmartsefltestlog, FAILEDopendevice were all displaced by
  895. one. And FAILEDopendevice might have caused a segv if -m was being
  896. used as a smartd Directive.
  897. * Wed Jul 23 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  898. - [BA] Cleaned up smartmontools.spec so that upgrading, removing
  899. and other such operations correctly preserve running behavior
  900. and booting behavior of smartd.
  901. - [BA] Improved formatting of ATA Error Log printout, and added
  902. listing of names of commands that caused the error. Added
  903. obsolete ATA-4 SMART feature commands to table, along with
  904. obsolete SFF-8035i SMART feature command.
  905. - [PW] Added atacmdnames.[hc], which turn command register &
  906. feature register pairs into ATA command names.
  907. - [BA] Added conveyance self-test. Some code added for selective
  908. self-tests, but #ifdefed out.
  909. - [BA] Modified smartd exit status and log levels. If smartd is
  910. "cleanly" terminated, for example with SIGTERM, then its
  911. exit messages are now logged at LOG_INFO not LOG_CRIT
  912. - [BA] Added Attribute IDs (Fujitsu) 0xCA - 0xCE. This is decimal
  913. 202-206. Added -v switches for interpretation of Attributes
  914. 192, 198 and 201.
  915. - [BA] Made smartmontools work with any endian order machine for:
  916. - SMART selftest log
  917. - SMART ATA error log
  918. - SMART Attributes values
  919. - SMART Attributes thesholds
  920. - IDENTIFY DEVICE information
  921. - LOG DIRECTORY
  922. Smartmontools is now free of endian bias and works correctly
  923. on both little- and big-endian hardware. This has been tested by
  924. three independent PPC users on a variety of ATA and SCSI hardware.
  925. - [DG] Check that certain SCSI command responses are well formed. If
  926. IEC mode page response is not well formed exit smartctl. This
  927. is to protect aacraid. smartd should ignore a aacraid device.
  928. * Mon Jun 16 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  929. - [BA] smartctl: added column to -A output to show if Attributes are
  930. updated only during off-line testing or also during normal
  931. operation.
  932. * Thu Jun 10 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  933. - [BA] smartd: attempt to enable/disable automatic offline testing even
  934. if the disk appears not to support it. Now the same logic
  935. as smartctl.
  936. - [BA] Added definition of Attribute 201, soft read error rate.
  937. - [BA] Added IBM/Hitachi IC35L120AVV207-1 (GXP-180) and corresponding
  938. 8MB Cache GXP-120 to drive database.
  939. - [BA] smartd: if DEVICESCAN Directive used in smartd.conf, and
  940. -I, -R or -r Directives used in conjunction with this, got
  941. segv errors. Fixed by correcting memory allocation calls.
  942. - [BA] smartd: enable automatic offline testing was broken due
  943. to cut-and-paste error that disabled it instead of
  944. enabling it. Thanks to Maciej W. Rozycki for pointing
  945. out the problem and solution.
  946. - [BA] Fixed "spelling" of some Attribute names to replace spaces
  947. in names by underscores. (Fixed field width easier for awk
  948. style parsing.)
  949. - [BA] Added mods submitted by Guilhem Frezou to support Attribute 193
  950. being load/unload cycles. Add -v 193,loadunload option, useful
  951. for Hitachi drive DK23EA-30, and add this drive to knowndrive.c
  952. Add meaning of attribute 250 : Read error retry rate
  953. - [BA] Added another entry for Samsung drives to knowndrive table.
  954. - [DG] Refine SCSI log sense command to do a double fetch in most cases
  955. (but not for the TapeAlert log page). Fix TapeAlert and Self Test
  956. log pgae response truncation.
  957. - [PW] Added 'removable' argument to -d Directive for smartd. This indicates
  958. that smartd should continue (rather than exit) if the device does not
  959. appear to be present.
  960. - [BA] Modified smartmontools.spec [Man pages location] and
  961. smartd.initd [Extra space kills chkconfig!] for Redhat 6.x
  962. compatibility (thanks to Gerald Schnabel).
  963. * Wed May 7 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  964. - [EB] Add another Fujitsu disk to knowndrives.c
  965. - [GG] match for scsi/ and ide/ in case of devfs to exclude false postives
  966. - [BA] If SCSI device listed in /etc/smartd.conf fails to open or do
  967. SMART stuff correctly, or not enough space
  968. to list all SCSI devices, fail with error unless
  969. -DSCSIDEVELOPMENT set during compile-time.
  970. - [BA] Added automatic recognition of /dev/i* (example: /dev/ide/...)
  971. as an ATA device.
  972. - [DG] Add "Device type: [disk | tape | medium changer | ...]" line to
  973. smartctl -i output for SCSI devices.
  974. - [PW] Fixed bug in smartd where test email would be sent regularly (for
  975. example, daily if the user had specified -M daily) instead of just
  976. once on startup.
  977. - [KM] More TapeAlert work. Added translations for media changer
  978. alerts. TapeAlert support reported according to the log page
  979. presence. ModeSense not attempted for non-ready tapes (all
  980. drives do not support this after all). Get peripheral type from
  981. Inquiry even if drive info is not printed. Add QUIETON()
  982. QUIETOFF() to TapeAlert log check.
  983. - [BA] Stupid bug in atacmds.c minor_str[] affected ataVersionInfo().
  984. Two missing commas meant that minor_str[] had two few elements,
  985. leading to output like this:
  986. Device Model: Maxtor 6Y120L0
  987. Serial Number: Y40BF74E
  988. Firmware Version: YAR41VW0
  989. Device is: Not in smartctl database [for details use: -P showall]
  990. ATA Version is: 7
  991. ATA Standard is: 9,minutes
  992. ^^^^^^^^^
  993. Missing commas inserted.
  994. - [BA] Fixed smartd bug. On device registration, if ATA device did
  995. not support SMART error or self-test logs but user had asked to
  996. monitor them, an attempt would be made to read them anyway,
  997. possibly generating "Drive Seek" errors. We now check that
  998. the self-test and error logs are supported before trying to
  999. access them the first time.
  1000. - [GG/BA] Fixed bug where if SMART ATA error log not supported,
  1001. command was tried anyway. Changed some error printing to use
  1002. print handlers.
  1003. - [GG] Makefile modifications to ease packaging
  1004. - [DG] Did work for TapeAlerts (SCSI). Now can detect /dev/nst0 as a
  1005. SCSI device. Also open SCSI devices O_NONBLOCK so they don't
  1006. hang on open awaiting media. The ATA side should worry about
  1007. this also: during a DEVICESCAN a cd/dvd device without media
  1008. will hang. Added some TapeAlert code suggested by Kai Makisara.
  1009. * Mon Apr 21 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1010. - [PW] Extended the -F option/Directive to potentially fix other firmware
  1011. bugs in addition to the Samsung byte-order bug. Long option name is
  1012. now --firmwarebug and the option/Directive accepts an argument
  1013. indicating the type of firmware bug to fix.
  1014. - [BA] Fixed a bug that prevented the enable automatic off-line
  1015. test feature from enabling. It also prevented the enable Attribute
  1016. autosave from working. See CVS entry for additional details.
  1017. - [PW] Modified the -r/--report option (smartctl and smartd) to allow the
  1018. user to specify the debug level as a positive integer.
  1019. - [BA] Added --log directory option to smartctl. If the disk
  1020. supports the general-purpose logging feature set (ATA-6/7)
  1021. then this option enables the Log Directory to be printed.
  1022. This Log Directory shows which device logs are available, and
  1023. their lengths in sectors.
  1024. - [PW] Added -P/--presets option to smartctl and -P Directive to smartd.
  1025. - [GG] Introduce different exit codes indicating the type of problem
  1026. encountered for smartd.
  1027. - [DG] Add non-medium error count to '-l error' and extended self test
  1028. duration to '-l selftest'. Get scsi IEs and temperature changes
  1029. working in smartd. Step over various scsi disk problems rather
  1030. than abort smartd startup.
  1031. - [DG] Support -l error for SCSI disks (and tapes). Output error counter
  1032. log pages.
  1033. - [BA] Added -F/--fixbyteorder option to smartctl. This allows us to read
  1034. SMART data from some disks that have byte-reversed two- and four-
  1035. byte quantities in their SMART data structures.
  1036. - [BA] Fixed serious bug: the -v options in smartd.conf were all put
  1037. together and used together, not drive-by-drive.
  1038. - [PW] Added knowndrives.h and knowndrives.c. The knowndrives array
  1039. supersedes the drivewarnings array.
  1040. - [GG] add {-p,--pidfile} option to smartd to write a PID file on
  1041. startup. Update the manpage accordingly.
  1042. - [DG] Fix scsi smartd problem detecting SMART support. More cleaning
  1043. and fix (and rename) scsiTestUnitReady(). More scsi renaming.
  1044. - [BA] Fixed smartd so that if a disk that is explictily listed is not
  1045. found, then smartd will exit with nonzero status BEFORE forking.
  1046. If a disk can't be registered, this will also be detected before
  1047. forking, so that init scripts can react correctly.
  1048. - [BA] Replaced all linux-specific ioctl() calls in atacmds.c with
  1049. a generic handler smartcommandhandler(). Now the only routine
  1050. that needs to be implemented for a given OS is os_specific_handler().
  1051. Also implemented the --report ataioctl. This provides
  1052. two levels of reporting. Using the option once gives a summary
  1053. report of device IOCTL transactions. Using the option twice give
  1054. additional info (a printout of ALL device raw 512 byte SMART
  1055. data structures). This is useful for debugging.
  1056. - [DG] more scsi cleanup. Output scsi device serial number (VPD page
  1057. 0x80) if available as part of '-i'. Implement '-t offline' as
  1058. default self test (only self test older disks support).
  1059. - [BA] Changed crit to info in loglevel of smartd complaint to syslog
  1060. if DEVICESCAN enabled and device not found.
  1061. - [BA] Added -v 194,10xCelsius option/Directive. Raw Attribute number
  1062. 194 is ten times the disk temperature in Celsius.
  1063. - [DG] scsicmds.[hc] + scsiprint.c: clean up indentation, remove tabs.
  1064. Introduce new intermediate interface based on "struct scsi_cmnd_io"
  1065. to isolate SCSI generic commands + responses from Linux details;
  1066. should help port to FreeBSD of SCSI part of smartmontools.
  1067. Make SCSI command builders more parametric.
  1068. * Thu Mar 13 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1069. - [BA] smartctl: if HDIO_DRIVE_TASK ioctl() is not implemented (no
  1070. kernel support) then try to assess drive health by examining
  1071. Attribute values/thresholds directly.
  1072. - [BA] smartd/smartctl: added -v 200,writeerrorcount option/Directive
  1073. for Fujitsu disks.
  1074. - [BA] smartd: Now send email if any of the SMART commands fails,
  1075. or if open()ing the device fails. This is often noted
  1076. as a common disk failure mode.
  1077. - [BA] smartd/smartctl: Added -v N,raw8 -v N,raw16 and -v N,raw48
  1078. Directives/Options for printing Raw Attributes in different
  1079. Formats.
  1080. - [BA] smartd: Added -r ID and -R ID for reporting/tracking Raw
  1081. values of Attributes.
  1082. - [BA] smartd/smartctl: Changed printing of spin-up-time attribute
  1083. raw value to reflect current/average as per IBM standard.
  1084. - [BA] smartd/smartctl: Added -v 9,seconds option for disks which
  1085. use Attribute 9 for power-on lifetime in seconds.
  1086. - [BA] smartctl: Added a warning message so that users of some IBM
  1087. disks are warned to update their firmware. Note: we may want
  1088. to add a command-line flag to disable the warning messages.
  1089. I have done this in a general way, using regexp, so that we
  1090. can add warnings about any type of disk that we wish..
  1091. * Wed Feb 12 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1092. - [BA] smartd: Created a subdirectory examplescripts/ of source
  1093. directory that contains executable scripts for the -M exec PATH
  1094. Directive of smartd.
  1095. - [BA] smartd: DEVICESCAN in /etc/smartd.conf
  1096. can now be followed by all the same Directives as a regular
  1097. device name like /dev/hda takes. This allows one to use
  1098. (for example):
  1099. DEVICESCAN -m root@example.com
  1100. in the /etc/smartd.conf file.
  1101. - [BA] smartd: Added -c (--checkonce) command-line option. This checks
  1102. all devices once, then exits. The exit status can be
  1103. used to learn if devices were detected, and if smartd is
  1104. functioning correctly. This is primarily for Distribution
  1105. scripters.
  1106. - [BA] smartd: Implemented -M exec Directive for
  1107. smartd.conf. This makes it possible to run an
  1108. arbitrary script or mailing program with the
  1109. -m option.
  1110. - [PW] smartd: Modified -M Directive so that it can be given
  1111. multiple times. Added -M exec Directive.
  1112. * Tue Jan 21 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1113. - [BA] Fixed bug in smartctl pointed out by Pierre Gentile.
  1114. -d scsi didn't work because tryata and tryscsi were
  1115. reversed -- now works on /devfs SCSI devices.
  1116. - [BA] Fixed bug in smartctl pointed out by Gregory Goddard
  1117. <ggoddard@ufl.edu>. Manual says that bit 6 of return
  1118. value turned on if errors found in smart error log. But
  1119. this wasn't implemented.
  1120. - [BA] Modified printing format for 9,minutes to read
  1121. Xh+Ym not X h + Y m, so that fields are fixed width.
  1122. - [BA] Added Attribute 240 "head flying hours"
  1123. * Sun Jan 12 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1124. - [BA] As requested, local time/date now printed by smartctl -i
  1125. * Thu Jan 9 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1126. - [PW] Added 'help' argument to -v for smartctl
  1127. - [PW] Added -D, --showdirectives option to smartd
  1128. * Sat Jan 4 2003 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1129. - [DG] add '-l selftest' capability for SCSI devices (update smartctl.8)
  1130. - [BA] smartd,smartctl: added additional Attribute modification option
  1131. -v 220,temp and -v 9,temp.
  1132. - [PW] Renamed smartd option -X to -d
  1133. - [PW] Changed smartd.conf Directives -- see man page
  1134. - [BA/DG] Fixed uncommented comment in smartd.conf
  1135. - [DG] Correct 'Recommended start stop count' for SCSI devices
  1136. - [PW] Replaced smartd.conf directive -C with smartd option -i
  1137. - [PW] Changed options for smartctl -- see man page.
  1138. - [BA] Use strerror() to generate system call error messages.
  1139. - [BA] smartd: fflush() all open streams before fork().
  1140. - [BA] smartctl, smartd simplified internal handling of checksums
  1141. for simpler porting and less code.
  1142. * Sun Dec 8 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1143. - [PW] smartd --debugmode changed to --debug
  1144. - [BA] smartd/smartctl added attribute 230 Head Amplitude from
  1145. IBM DPTA-353750.
  1146. - [PW] Added list of proposed new options for smartctl to README.
  1147. - [PW] smartd: ParseOpts() now uses getopt_long() if HAVE_GETOPT_LONG is
  1148. defined and uses getopt() otherwise. This is controlled by CPPFLAGS in
  1149. the Makefile.
  1150. - [BA] smartd: Fixed a couple of error messages done with perror()
  1151. to redirect them as needed.
  1152. - [BA] smartctl: The -O option to enable an Immediate off-line test
  1153. did not print out the correct time that the test would take to
  1154. complete. This is because the test timer is volatile and not
  1155. fixed. This has been fixed, and the smartctl.8 man page has been
  1156. updated to explain how to track the Immediate offline test as it
  1157. progresses, and to further emphasize the differences between the
  1158. off-line immediate test and the self-tests.
  1159. - [BA] smartd/smartctl: Added new attribute (200) Multi_Zone_Error_Rate
  1160. - [BA] smartctl: modified so that arguments could have either a single -
  1161. as in -ea or multiple ones as in -e -a. Improved warning message for
  1162. device not opened, and fixed error in redirection of error output of
  1163. HD identity command.
  1164. - [PW] smartd: added support for long options. All short options are still
  1165. supported; see manpage for available long options.
  1166. - [BA] smartctl. When raw Attribute value was 2^31 or larger, did
  1167. not print correctly.
  1168. * Fri Nov 22 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1169. - Allen: smartd: added smartd.conf Directives -T and -s. The -T Directive
  1170. enables/disables Automatic Offline Testing. The -s Directive
  1171. enables/disables Attribute Autosave. Documentation and
  1172. example configuration file updated to agree.
  1173. - Allen: smartd: user can make smartd check the disks at any time
  1174. (ie, interrupt sleep) by sending signal SIGUSR1 to smartd. This
  1175. can be done for example with:
  1176. kill -USR1 <pid>
  1177. where <pid> is the process ID number of smartd.
  1178. - Bolso: scsi: don't trust the data we receive from the drive too
  1179. much. It very well might have errors (like zero response length).
  1180. Seen on Megaraid logical drive, and verified in the driver source.
  1181. - Allen: smartd: added Directive -m for sending test email and
  1182. for modifying email reminder behavior. Updated manual, and sample
  1183. configuration file to illustrate & explain this.
  1184. - Allen: smartd: increased size of a continued smartd.conf line to
  1185. 1023 characters.
  1186. - Allen: Simplified Directive parsers and improved warning/error
  1187. messages.
  1188. * Sun Nov 17 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1189. - Fixed bug in smartd where testunitready logic inverted
  1190. prevented functioning on scsi devices.
  1191. - Added testunitnotready to smartctl for symmetry with smartd.
  1192. - Brabec: added Czech descriptions to .spec file
  1193. - Brabec: corrected comment in smartd.conf example
  1194. - Changed way that entries in the ATA error log are printed,
  1195. to make it clearer which is the most recent error and
  1196. which is the oldest one.
  1197. - Changed Temperature_Centigrade to Temperature_Celsius.
  1198. The term "Centigrade" ceased to exist in 1948. (c.f
  1199. http://www.bartleby.com/64/C004/016.html).
  1200. * Wed Nov 13 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1201. - smartd SCSI devices: can now send warning email message on failure
  1202. - Added a new smartd configuration file Directive: -M ADDRESS.
  1203. This sends a single warning email to ADDRESS for failures or
  1204. errors detected with the -c, -L, -l, or -f Directives.
  1205. * Mon Nov 11 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1206. - Modified perror() statements in atacmds.c so that printout for SMART
  1207. commands errors is properly suppressed or queued depending upon users
  1208. choices for error reporting modes.
  1209. - Added Italian descriptions to smartmontools.spec file.
  1210. - Started impementing send-mail-on-error for smartd; not yet enabled.
  1211. * Sun Nov 10 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1212. - Added -P (Permissive) Directive to smartd.conf file to allow SMART monitoring of
  1213. pre-ATA-3 Rev 4 disks that have SMART but do not have a SMART capability bit.
  1214. * Thu Nov 7 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1215. - Added a Man section 5 page for smartd.conf
  1216. - Changed Makefile so that the -V option does not reflect file state
  1217. before commit!
  1218. - modified .spec file so that locale information now contains
  1219. character set definition. Changed pt_BR to pt since we do not use any
  1220. aspect other than language. See man setlocale.
  1221. - smartctl: added new options -W, -U, and -P to control if and how the
  1222. smartctl exits if an error is detected in either a SMART data
  1223. structure checksum, or a SMART command returns an error.
  1224. - modified manual page to break options into slightly more logical
  1225. categories.
  1226. - reformatted 'usage' message order to agree with man page ordering
  1227. * Mon Nov 4 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1228. - smartctl: added new options -n and -N to force device to be ATA or SCSI
  1229. - smartctl: no longer dies silently if device path does not start/dev/X
  1230. - smartctl: now handles arbitrary device paths
  1231. - Added additional macros for manual and sbin paths in this SPEC file.
  1232. - Modified Makefile to install /etc/smartd.conf, but without overwriting existing config file
  1233. - Modified this specfile to do the same, and to not remove any files that it did not install
  1234. * Thu Oct 30 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1235. - Fixed typesetting error in man page smartd.8
  1236. - Removed redundant variable (harmless) from smartd.c
  1237. * Wed Oct 29 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1238. - Added a new directive for the configuration file. If the word
  1239. DEVICESCAN appears before any non-commented material in the
  1240. configuration file, then the confi file will be ignored and the
  1241. devices wil be scanned.
  1242. - Note: it has now been confirmed that the code modifications between
  1243. 5.0.23 and 5.0.24 have eliminated the GCC 3.2 problems. Note that
  1244. there is a GCC bug howerver, see #8404 at
  1245. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8404
  1246. - Added new Directive for Configuration file:
  1247. -C <N> This sets the time in between disk checks to be <N>
  1248. seconds apart. Note that although you can give
  1249. this Directive multiple times on different lines of
  1250. the configuration file, only the final value that
  1251. is given has an effect, and applies to all the
  1252. disks. The default value of <N> is 1800 sec, and
  1253. the minimum allowed value is ten seconds.
  1254. - Problem wasn't the print format. F.L.W. Meunier <0@pervalidus.net>
  1255. sent me a gcc 3.2 build and I ran it under a debugger. The
  1256. problem seems to be with passing the very large (2x512+4) byte
  1257. data structures as arguments. I never liked this anyway; it was
  1258. inherited from smartsuite. So I've changed all the heavyweight
  1259. functions (ATA ones, anyone) to just passing pointers, not hideous
  1260. kB size structures on the stack. Hopefully this will now build OK
  1261. under gcc 3.2 with any sensible compilation options.
  1262. - Because of reported problems with GCC 3.2 compile, I have gone
  1263. thorough the code and explicitly changed all print format
  1264. parameters to correspond EXACTLY to int unless they have to be
  1265. promoted to long longs. To quote from the glibc bible: [From
  1266. GLIBC Manual: Since the prototype doesn't specify types for
  1267. optional arguments, in a call to a variadic function the default
  1268. argument promotions are performed on the optional argument
  1269. values. This means the objects of type char or short int (whether
  1270. signed or not) are promoted to either int or unsigned int, as
  1271. required.
  1272. - smartd, smartctl now warn if they find an attribute whose ID
  1273. number does not match between Data and Threshold structures.
  1274. - Fixed nasty bug which led to wrong number of arguments for a
  1275. varargs statement, with attendent stack corruption. Sheesh!
  1276. Have added script to CVS attic to help find such nasties in the
  1277. future.
  1278. * Tue Oct 29 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1279. - Eliminated some global variables out of header files and other
  1280. minor cleanup of smartd.
  1281. - Did some revision of the man page for smartd and made the usage
  1282. messages for Directives consistent.
  1283. - smartd: prints warning message when it gets SIGHUP, saying that it is
  1284. NOT re-reading the config file.
  1285. - smartctl: updated man page to say self-test commands -O,x,X,s,S,A
  1286. appear to be supported in the code. [I can't test these, can anyone
  1287. report?]
  1288. - smartctl: smartctl would previously print the LBA of a self-test
  1289. if it completed, and the LBA was not 0 or 0xff...f However
  1290. according to the specs this is not correct. According to the
  1291. specs, if the self-test completed without error then LBA is
  1292. undefined. This version fixes that. LBA value only printed if
  1293. self-test encountered an error.
  1294. - smartd has changed significantly. This is the first CVS checkin of
  1295. code that extends the options available for smartd. The following
  1296. options can be placed into the /etc/smartd.conf file, and control the
  1297. behavior of smartd.
  1298. - Configuration file Directives (following device name):
  1299. -A Device is an ATA device
  1300. -S Device is a SCSI device
  1301. -c Monitor SMART Health Status
  1302. -l Monitor SMART Error Log for changes
  1303. -L Monitor SMART Self-Test Log for new errors
  1304. -f Monitor for failure of any 'Usage' Attributes
  1305. -p Report changes in 'Prefailure' Attributes
  1306. -u Report changes in 'Usage' Attributes
  1307. -t Equivalent to -p and -u Directives
  1308. -a Equivalent to -c -l -L -f -t Directives
  1309. -i ID Ignore Attribute ID for -f Directive
  1310. -I ID Ignore Attribute ID for -p, -u or -t Directive
  1311. # Comment: text after a hash sign is ignored
  1312. \ Line continuation character
  1313. - cleaned up functions used for printing CVS IDs. Now use string
  1314. library, as it should be.
  1315. - modified length of device name string in smartd internal structure
  1316. to accomodate max length device name strings
  1317. - removed un-implemented (-e = Email notification) option from
  1318. command line arg list. We'll put it back on when implemeneted.
  1319. - smartd now logs serious (fatal) conditions in its operation at
  1320. loglevel LOG_CRIT rather than LOG_INFO before exiting with error.
  1321. - smartd used to open a file descriptor for each SMART enabled
  1322. - device, and then keep it open the entire time smartd was running.
  1323. This meant that some commands, like IOREADBLKPART did not work,
  1324. since the fd to the device was open. smartd now opens the device
  1325. when it needs to read values, then closes it. Also, if one time
  1326. around it can't open the device, it simply prints a warning
  1327. message but does not give up. Have eliminated the .fd field from
  1328. data structures -- no longer gets used.
  1329. - smartd now opens SCSI devices as well using O_RDONLY rather than
  1330. O_RDWR. If someone can no longer monitor a SCSI device that used
  1331. to be readable, this may well be the reason why.
  1332. - smartd never checked if the number of ata or scsi devices detected
  1333. was greater than the max number it could monitor. Now it does.
  1334. * Fri Oct 25 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1335. - changes to the Makefile and spec file so that if there are ungzipped manual
  1336. pages in place these will be removed so that the new gzipped man pages are
  1337. visible.
  1338. - smartd on startup now looks in the configuration file /etc/smartd.conf for
  1339. a list of devices which to include in its monitoring list. See man page
  1340. (man smartd) for syntax. If not found, try all ata and ide devices.
  1341. - smartd: close file descriptors of SCSI device if not SMART capable
  1342. Closes ALL file descriptors after forking to daemon.
  1343. - added new temperature attribute (231, temperature)
  1344. - smartd: now open ATA disks using O_RDONLY
  1345. * Thu Oct 24 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1346. - smartd now prints the name of a failed or changed attribute into logfile,
  1347. not just ID number
  1348. - Changed name of -p (print version) option to -V
  1349. - Minor change in philosophy: if a SMART command fails or the device
  1350. appears incapable of a SMART command that the user has asked for,
  1351. complain by printing an error message, but go ahead and try
  1352. anyway. Since unimplemented SMART commands should just return an
  1353. error but not cause disk problems, this should't cause any
  1354. difficulty.
  1355. - Added two new flags: q and Q. q is quiet mode - only print: For
  1356. the -l option, errors recorded in the SMART error log; For the -L
  1357. option, errors recorded in the device self-test log; For the -c
  1358. SMART "disk failing" status or device attributes (pre-failure or
  1359. usage) which failed either now or in the past; For the -v option
  1360. device attributes (pre-failure or usage) which failed either now
  1361. or in the past. Q is Very Quiet mode: Print no ouput. The only
  1362. way to learn about what was found is to use the exit status of
  1363. smartctl.
  1364. - smartctl now returns sensible values (bitmask). See smartctl.h
  1365. for the values, and the man page for documentation.
  1366. - The SMART status check now uses the correct ATA call. If failure
  1367. is detected we search through attributes to list the failed ones.
  1368. If the SMART status check shows GOOD, we then look to see if their
  1369. are any usage attributes or prefail attributes have failed at any
  1370. time. If so we print them.
  1371. - Modified function that prints vendor attributes to say if the
  1372. attribute has currently failed or has ever failed.
  1373. - -p option now prints out license info and CVS strings for all
  1374. modules in the code, nicely formatted.
  1375. - Previous versions of this code (and Smartsuite) only generate
  1376. SMART failure errors if the value of an attribute is below the
  1377. threshold and the prefailure bit is set. However the ATA Spec
  1378. (ATA4 <=Rev 4) says that it is a SMART failure if the value of an
  1379. attribute is LESS THAN OR EQUAL to the threshold and the
  1380. prefailure bit is set. This is now fixed in both smartctl and
  1381. smartd. Note that this is a troubled subject -- the original
  1382. SFF 8035i specification defining SMART was inconsistent about
  1383. this. One section says that Attribute==Threshold is pass,
  1384. and another section says it is fail. However the ATA specs are
  1385. consistent and say Attribute==Threshold is a fail.
  1386. - smartd did not print the correct value of any failing SMART attribute. It
  1387. printed the index in the attribute table, not the attribute
  1388. ID. This is fixed.
  1389. - when starting self-tests in captive mode ioctl returns EIO because
  1390. the drive has been busied out. Detect this and don't return an eror
  1391. in this case. Check this this is correct (or how to fix it?)
  1392. - fixed possible error in how to determine ATA standard support
  1393. for devices with no ATA minor revision number.
  1394. - device opened only in read-only not read-write mode. Don't need R/W
  1395. access to get smart data. Check this with Andre.
  1396. - smartctl now handles all possible choices of "multiple options"
  1397. gracefully. It goes through the following phases of operation,
  1398. in order: INFORMATION, ENABLE/DISABLE, DISPLAY DATA, RUN/ABORT TESTS.
  1399. Documentation has bee updated to explain the different phases of
  1400. operation. Control flow through ataPrintMain()
  1401. simplified.
  1402. - If reading device identity information fails, try seeing if the info
  1403. can be accessed using a "DEVICE PACKET" command. This way we can
  1404. at least get device info.
  1405. - Modified Makefile to automatically tag CVS archive on issuance of
  1406. a release
  1407. - Modified drive detection so minor device ID code showing ATA-3 rev
  1408. 0 (no SMART) is known to not be SMART capable.
  1409. - Now verify the checksum of the device ID data structure, and of the
  1410. attributes threshold structure. Before neither of these
  1411. structures had their checksums verified.
  1412. - New behavior vis-a-vis checksums. If they are wrong, we log
  1413. warning messages to stdout, stderr, and syslog, but carry on
  1414. anyway. All functions now call a checksumwarning routine if the
  1415. checksum doesn't vanish as it should.
  1416. - Changed Read Hard Disk Identity function to get fresh info from
  1417. the disk on each call rather than to use the values that were read
  1418. upon boot-up into the BIOS. This is the biggest change in this
  1419. release. The ioctl(device, HDIO_GET_IDENTITY, buf ) call should
  1420. be avoided in such code. Note that if people get garbled strings
  1421. for the model, serial no and firmware versions of their drives,
  1422. then blame goes here (the BIOS does the byte swapping for you,
  1423. apparently!)
  1424. - Function ataSmartSupport now looks at correct bits in drive
  1425. identity structure to verify first that these bits are valid,
  1426. before using them.
  1427. - Function ataIsSmartEnabled() written which uses the Drive ID state
  1428. information to tell if SMART is enabled or not. We'll carry this
  1429. along for the moment without using it.
  1430. - Function ataDoesSmartWork() guaranteed to work if the device
  1431. supports SMART.
  1432. - Replace some numbers by #define MACROS
  1433. - Wrote Function TestTime to return test time associated with each
  1434. different type of test.
  1435. - Thinking of the future, have added a new function called
  1436. ataSmartStatus2(). Eventually when I understand how to use the
  1437. TASKFILE API and am sure that this works correctly, it will
  1438. replace ataSmartStatus(). This queries the drive directly to
  1439. see if the SMART status is OK, rather than comparing thresholds to
  1440. attribute values ourselves. But I need to get some drives that fail
  1441. their SMART status to check it.
  1442. * Thu Oct 17 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1443. - Removed extraneous space before some error message printing.
  1444. - Fixed some character buffers that were too short for contents.
  1445. Only used for unrecognized drives, so probably damage was minimal.
  1446. * Wed Oct 16 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  1447. - Initial release. Code is derived from smartsuite, and is
  1448. intended to be compatible with the ATA/ATAPI-5 specifications.
  1449. - For IBM disks whose raw temp data includes three temps. print all
  1450. three
  1451. - print timestamps for error log to msec precision
  1452. - added -m option for Hitachi disks that store power on life in
  1453. minutes
  1454. - added -L option for printing self-test error logs
  1455. - in -l option, now print power on lifetime, so that one can see
  1456. when the error took place
  1457. - updated SMART structure definitions to ATA-5 spec
  1458. - added -p option
  1459. - added -f and -F options to enable/disable autosave threshold
  1460. parameters