smartmontools-vl.spec 82 KB

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