Skip to content
Snippets Groups Projects
Commit 2d4ea286 authored by chrfranke's avatar chrfranke
Browse files

Release 6.1 RELEASE_6_1

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 2041 additions and 0 deletions
$Id$
This code was originally developed as a Senior Thesis by Michael
Cornwell at the Concurrent Systems Laboratory (now part of the Storage
Systems Research Center), Jack Baskin School of Engineering, University
of California, Santa Cruz. http://ssrc.soe.ucsc.edu/
This package is meant to be an up-to-date replacement for the
ucsc-smartsuite and smartsuite packages, and is derived from that code.
Maintainers / Developers:
Bruce Allen <smartmontools-support@lists.sourceforge.net>
Erik Inge Bolsø <knan@mo.himolde.no>
Stanislav Brabec <sbrabec@suse.cz>
Peter Cassidy <pcassidy@mac.com>
Praveen Chidambaram <bunchofmails@gmail.com>
Yuri Dario <mc6530@mclink.it>
Casper Dik <casper@holland.sun.com>
Christian Franke <franke@computer.org>
Guilhem Frézou <guilhem.frezou@catii.fr>
Douglas Gilbert <dgilbert@interlog.com>
Guido Guenther <agx@sigxcpu.org>
Jordan Hargrave <jordan_hargrave@dell.com>
Joerg Hering <hering.ruegen@gmx.de>
Geoff Keating <geoffk@geoffk.org>
Dr. David Kirkby <drkirkby@ntlworld.com>
Kai Mäkisara <kai.makisara@kolumbus.fi>
Eduard Martinescu <martines@rochester.rr.com>
Frédéric L. W. Meunier <http://www.pervalidus.net/contact.html>
Alex Samorukov <samm@os2.kiev.ua>
Keiji Sawada <card_captor@users.sourceforge.net>
Manfred Schwarb <manfred99@gmx.ch>
Tomas Smetana <tsmetana@redhat.com>
David Snyder <dasnyderx@yahoo.com>
Sergey Svishchev <svs@ropnet.ru>
Phil Williams <phil@subbacultcha.demon.co.uk>
Shengfeng Zhou <linux@highpoint-tech.com>
Richard Zybert <richard.zybert@zybert.co.uk>
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
$Id$
2013-03-16 Christian Franke <franke@computer.org>
smartmontools 6.1
2013-03-15 Christian Franke <franke@computer.org>
os_win32.cpp: Support device names /dev/sd[a-z][a-z] (ticket #240).
Enhance DEVICESCAN to 128 drives. Add '-d [TYPE,]pd' option.
smartctl.8.in, smartd.8.in: Document these enhancements.
2013-03-14 Christian Franke <franke@computer.org>
drivedb.h:
- Seagate Barracuda 7200.14: Fix regex for new firmware version.
2013-03-13 Christian Franke <franke@computer.org>
drivedb.h:
- USB: Prolific PL3507 (0x067b:0x3507): works with '-d usbjmicron,p'
2013-03-13 Christian Franke <franke@computer.org>
Create branch RELEASE_6_0_DRIVEDB with last drivedb.h file
compatible with smartmontools 6.0.
2013-03-13 Christian Franke <franke@computer.org>
drivedb.h:
- SandForce Driven SSDs: Fix format of attribute 198 (ticket #258).
- SandForce Driven SSDs: Corsair Force GS
- Indilinx Barefoot_2/Everest/Martini based SSDs: OCZ VERTEX PLUS R2
- Samsung/Seagate SpinPoint M8: 320GB, 640GB
- Seagate Momentus Thin
- Quantum Fireball EX: 10.2GB
2013-03-07 Christian Franke <franke@computer.org>
ataidentify.cpp, ataprint.cpp: ACS-3 updates.
ataprint.cpp: Improve device statistics error messages.
2013-03-06 Christian Franke <franke@computer.org>
smartd_warning.sh.in: Support BSD variant of 'hostname' command
which prints FQDN. Add Windows domain name (Cygwin).
2013-03-01 Douglas Gilbert <dgilbert@interlog.com>
scsicmds.h, scsicmds.cpp, scsiprint.cpp:
- for SCSI disks prefer READ DEFECT(12) for finding the
grown defect list length (previously used READ DEFECT(10)
only)
2013-03-01 Christian Franke <franke@computer.org>
drivedb.h:
- SandForce Driven SSDs: Transcend SSD320
- Intel 520 Series SSDs: OEM variant
- JMicron based SSDs: Transcend SSD25 IDE
- HGST Travelstar 7K1000
- Seagate Desktop HDD.15
- Seagate LD25.2
- Western Digital RE4 (SATA 6Gb/s)
- USB: Fujitsu/Zalman ZM-VE300 (0x04c5:0x2028)
2013-02-23 Christian Franke <franke@computer.org>
drivedb.h: Crucial/Micron RealSSD C300: Remove bogus trailing '|' from
regex (Regression from r3772).
2013-02-16 Douglas Gilbert <dgilbert@interlog.com>
scsicmds.h, scsicmds.cpp, scsiprint.h, scsiprint.cpp:
- for SCSI disks, in 'smartctl --info' report physical
block size and lowest LBA alignement (if PB size
different from LB size); logical block provisioning
status (if any); and disk protection (a.k.a. DIF) type
2013-02-19 Alex Samorukov <samm@os2.kiev.ua>
atacmds.cpp: fixed scttemphist on LE machines, including PPC. Patch
and report provided by Roger Roehrig.
2013-02-16 Douglas Gilbert <dgilbert@interlog.com>
scsicmds.h, scsicmds.cpp, scsiprint.h, scsiprint.cpp:
- SCSI VPD work; improve rotation rate reporting and add form factor
2013-02-14 Christian Franke <franke@computer.org>
drivedb.h:
- SandForce Driven SSDs: Kingston V+ 200, Mushkin Chronos deluxe,
OCZ Talos 2
- Plextor M3 (Pro) Series SSDs
2013-02-13 Christian Franke <franke@computer.org>
drivedb.h:
- Crucial/Micron RealSSD C300: new separate entry
- Crucial/Micron RealSSD m4/C400: firmware bug warning
2013-02-10 Alex Samorukov <samm@os2.kiev.ua>
os_freebsd.cpp: adding device type fix for devices on MPT controllers.
2013-02-06 Christian Franke <franke@computer.org>
drivedb.h:
- Seagate Samsung SpinPoint M8U (USB)
- Hitachi/HGST Travelstar Z5K500
- Hitachi/HGST Travelstar 5K750
- Hitachi/HGST Deskstar 7K4000
- Toshiba 2.5" HDD MK..37GSX
- Toshiba 2.5" HDD MK..65GSX: GSXN variant
- Toshiba 2.5" HDD MQ01ABD...
- Seagate Momentus 7200.5
- Western Digital Caviar Green (AF, SATA 6Gb/s): 2TB
- USB: Samsung M3 Portable USB 3.0 (0x04e8:0x61b6)
- USB: LaCie Rugged Mini USB 3.0 (0x059f:0x1051)
- Change short attribute names required before r3343.
2013-02-05 Christian Franke <franke@computer.org>
smartd.cpp: Fix allocation of buffer passed to putenv().
Using putenv("NAME") to unset NAME is not portable.
2013-02-05 Christian Franke <franke@computer.org>
do_release: New Signing Key.
2013-01-31 Christian Franke <franke@computer.org>
dev_areca.h: Use the C++ way to specify unused arguments.
This silences -Wself-assign warning from clang++.
2013-01-30 Christian Franke <franke@computer.org>
configure.ac: Use AC_CHECK_TOOL for winmc and windres.
2013-01-30 Christian Franke <franke@computer.org>
Windows smartd: Install service with delayed auto start enabled.
2013-01-26 Christian Franke <franke@computer.org>
Windows smartd: Add eventlog MESSAGETABLE resource.
Install/remove smartd.exe as event message file.
Remove syslogevt.exe tool.
2013-01-26 Christian Franke <franke@computer.org>
Windows: Add required string CompanyName to VERSIONINFO.
2013-01-23 Christian Franke <franke@computer.org>
Windows: Add VERSIONINFO resource to exe files.
2013-01-23 Christian Franke <franke@computer.org>
drivedb.h:
- Crucial/Micron RealSSD C300/C400/m4: m4 mSATA variant
- Indilinx Barefoot 3 based SSDs
- Intel DC S3700 Series SSDs
- Samsung based SSD: Samsung SSD 840 Series
2013-01-18 Christian Franke <franke@computer.org>
AUTHORS: Convert to UTF-8. Sort names. Replace tabs.
2013-01-18 Christian Franke <franke@computer.org>
Rename configure.in to configure.ac to silence warning from
new automake.
autogen.sh: automake 1.12.5 is OK.
2013-01-16 Christian Franke <franke@computer.org>
atacmds.cpp: Fix assignment of BYTEORDER from -v option
(Regression from r3719).
2013-01-13 Ole Jørgen Legård <ole@smartautomation.no>
os_qnxnto.cpp: Fix include of errno.h.
2013-01-12 Christian Franke <franke@computer.org>
drivedb.h:
- SandForce Driven SSDs: Mushkin Callisto deluxe, SuperSSpeed S301
- Intel 320 Series SSDs: 'B' (7mm) variant (ticket #257)
- SAMSUNG SpinPoint F1 EG
- SAMSUNG SpinPoint P80: SP0401N/TJ100-30
- Western Digital Caviar Black: 4TB
- Western Digital Caviar Black (AF): Remove non-AF models
- Western Digital My Passport (USB, AF): 5000L, 10J variants
- USB: WD My Passport USB 3.0 (0x1058:0x07a8)
- USB: WD My Book Studio II (0x1058:0x1105)
2013-01-02 Christian Franke <franke@computer.org>
drivedb.h:
- SandForce Driven SSDs: ADATA S396, Kingston 3K, V+
- Indilinx Everest/Martini based SSDs: OCZ VERTEX PLUS
- Samsung based SSD: Samsung SSD 840 PRO Series
2013-01-02 Christian Franke <franke@computer.org>
Add '-d usbjmicron,p' device type for Prolific USB bridges.
Based on patch provided by Edward Sheldrake.
2013-01-01 Christian Franke <franke@computer.org>
smartd: Use Attribute 190 for temperature (-W) if 194 is not present.
2013-01-01 Christian Franke <franke@computer.org>
Happy New Year! Update copyright year in version info.
2012-12-16 Alex Samorukov <samm@os2.kiev.ua>
os_freebsd.cpp: WRITE LOG on LSI/Megaraid should work fine, disable
check, problem was linux related.
os_linux.cpp: Implemented autoscan for the megaraid SAS controolers.
os_linux.cpp: fix WRITE LOG command in SAT layer for -d megaraid.
Reason was direction flag always set to READ.
os_linux.cpp: unblock autodetection for the SAT drives in -d megaraid.
2012-12-14 Christian Franke <franke@computer.org>
man pages: Fix usage of Hyphen (-) and Minus sign (\-).
2012-12-13 Christian Franke <franke@computer.org>
man pages: Update EXPERIMENTAL notes.
Fix spelling (Red Hat Bugzilla 665028).
2012-12-13 Christian Franke <franke@computer.org>
ataprint.cpp: Print Additional Product Identifier (OEM Id).
2012-12-13 Stanislav Brabec <sbrabec@suse.cz>
Update FSF postal address in all files.
2012-12-12 Christian Franke <franke@computer.org>
smartctl.cpp: Remove include <new> for QNXNTO.
Should only be needed if placement new is used.
smartd.cpp: Remove very old _GNU_SOURCE define.
It was added 10 years ago in r147. It is not (or no longer) needed
and has an unwanted side effect (__USE_MINGW_ANSI_STDIO) on MinGW.
2012-12-11 Christian Franke <franke@computer.org>
smartd.cpp: Add '-w PATH, --warnexec=PATH' option.
smartd.8.in: Document this option.
2012-12-11 Christian Franke <franke@computer.org>
smartd.cpp: Add '-d ignore' directive.
smartd.conf.5.in: Document '-d ignore'. Add DEVICESCAN example.
Remove duplicate and outdated info about device scanning.
smartd.8.in: Add notes about RAID controllers to device scanning info.
2012-12-11 Stanislav Brabec <sbrabec@suse.cz>
* smartd.initd.in: SUSE: Added sysconfig options to disable
persistent state writes, attribute log and set arbitrary smartd
options.
2012-12-03 Christian Franke <franke@computer.org>
Avoid usage of strcpy(), strcat(), sprintf().
Use snprintf() instead or change type to std::string.
Use array references instead of char pointers for parameters.
2012-12-03 Christian Franke <franke@computer.org>
smartd.cpp: Ignore a device from DEVICESCAN if a preceding smartd.conf
entry for the same device exists.
2012-11-28 Christian Franke <franke@computer.org>
smartd.conf.5.in: Document smartd_warning.sh/cmd scripts and
the new environment variables.
Makefile.am: Replace smartd_warning.* paths on man pages.
Reformat long sed commands.
2012-11-27 Christian Franke <franke@computer.org>
smartd.cpp: Remove trailing newlines from some MailWarning() strings.
os_win32/smartd_warning.cmd: Fix SMARTD_MESSAGE with parentheses.
2012-11-25 Alex Samorukov <samm@os2.kiev.ua>
OpenBSD: remove dummy functions
2012-11-24 Christian Franke <franke@computer.org>
Windows: Add tool wtssendmsg.exe based on no longer
used module os_win32/wtssendmsg.cpp.
os_win32/smartd_warning.cmd: Fix wtssendmsg call.
os_win32/installer.nsi: Install smartd_warning.cmd
and wtssendmsg.exe. Fix uninstall of old ChangeLog.
2012-11-23 Christian Franke <franke@computer.org>
Move MSVC10 project files to new directory os_win32/vc10.
2012-11-22 Christian Franke <franke@computer.org>
smartd: Move warning message formatting and mailer/command
startup to new script SYSCONFDIR/smartd_warning.sh
(Windows: smartd_warning.cmd).
Add environment variables SMARTD_PREVCNT and SMARTD_NEXTDAYS.
Remove host/domainname related code from smartd.cpp
and configure.in
2012-11-22 Alex Samorukov <samm@os2.kiev.ua>
smartctl: implemeted support for -g/-s rcache and -g/-s wcache for SCSI
devices to control read/write device cache.
2012-11-19 Alex Samorukov <samm@os2.kiev.ua>
smartctl: supports progress indicator on selftests
smartctl: prints rotation speed for SCSI drives, if supported
smartctl: add headers to SCSI output, fix data blocks formatting,
trim identification data
os_linux.cpp: add autodetection for PERC H700 array
smartd: trim SCSI vendor/model/serial before creating state files
2012-11-18 Alex Samorukov <samm@os2.kiev.ua>
smartd.cpp: implement error counters and temperature saving to the
attrlog file for SCSI devices.
smartd.cpp: added reset_warning_mail() if device is working for SCSI
2012-11-18 Christian Franke <franke@computer.org>
drivedb.h: Western Digital Caviar Green: Add -F xerrorlba
2012-11-17 Alex Samorukov <samm@os2.kiev.ua>
smartd.cpp: print lu_id for SPC devices, it is supported by standard
smartd.cpp: added initial state file support for the SCSI devices
smartd.cpp: add S/N to SCSI device identifier, lu_id is not available
on some drives.
smartd.cpp: fix warning for SCSI drives with self test in progress (#249)
drivedb.h: added -F xerrorlba flag Seagate Barracuda LP/CC32
2012-11-09 Christian Franke <franke@computer.org>
Windows smartd: Allow quoting of '-M exec' argument
to support path names with spaces.
2012-11-09 Christian Franke <franke@computer.org>
ataprint.cpp: Rework smartctl -l directory output.
Add R/W, R/O info. Report identical logs in one line.
2012-11-09 Alex Samorukov <samm@os2.kiev.ua>
os_freebsd.cpp: adding handling of SCSI devices exported with mfip
driver. FreeBSD changing PDT code to 0x1f and we are changing it back
to 0x00 (direct-access block device).
os_freebsd.cpp: improved error handling for the ATA devices
2012-11-04 Christian Franke <franke@computer.org>
drivedb.h:
- SandForce Driven SSDs: Mushkin Chronos
- Indilinx Everest/Martini based SSDs: OCZ AGILITY4
- Intel 710 Series SSDs: Add attribute 174
- JMicron based SSDs: KINGSTON SSDNOW 30GB
- Hitachi Deskstar 7K1000.C: *CLA330
- Seagate DiamondMax 23, Barracuda 7200.12, 7200.14 (AF),
LP, Green (AF): no warnings for newer firmware versions
- Western Digital Caviar Green (AF, SATA 6Gb/s): rename, add 1TB
- USB: Toshiba Stor.E (0x0930:0x0b1[9a])
- USB: Verbatim Store'n'Go (0x18a5:0x022b)
2012-11-02 Alex Samorukov <samm@os2.kiev.ua>
os_freebsd.cpp: disabling 48bit commands on legacy ATA controllers
in ATACAM mode because of kernel bug.
2012-10-31 Christian Franke <franke@computer.org>
atacmdnames.cpp: Update for ATA-8-ACS, ACS-2, ACS-3.
ataidentify.cpp: Mark retired/obsolete values.
ataprint.cpp: Add new ACS-3 logs, mark obsolete logs.
2012-10-27 Alex Samorukov <samm@os2.kiev.ua>
os_freebsd.cpp: Have smartd prefer real device names over passN.
Patch provided by dnelson, see ticket #21
os_freebsd.cpp: fix 48-bit support for ATA legacy controllers in
ATACAM mode, patch provided by Alexander Motin
2012-10-25 Christian Franke <franke@computer.org>
atacmds.cpp: Return error for get SCT ERC if ATA registers are
unchanged after SMART_WRITE_LOG command (see ticket #245).
2012-10-24 Christian Franke <franke@computer.org>
dev_areca.cpp: Add missing parameter check to ata_pass_through().
Update Areca info on man pages.
2012-10-24 Christian Franke <franke@computer.org>
dev_interface: Rework ATA parameter checks, use new flags
ata_device::supports_* for new ata_cmd_is_supported().
Replace ata_cmd_is_ok() by ata_cmd_is_supported() in scsiata.cpp
and os_win32.cpp.
2012-10-19 Alex Samorukov <samm@os2.kiev.ua>
os_freebsd.cpp - fixed 3ware twe controller support broken
by inerface migration.
2012-10-18 Christian Franke <franke@computer.org>
utility.cpp: Add missing errno clear in split_selective_arg()
(Debian bug 690108).
Remove unused function split_report_arg2().
2012-10-18 Christian Franke <franke@computer.org>
os_win32.cpp: define _WIN32. This fixes build on
Cygwin with new w32api-headers.
2012-10-18 Alex Samorukov <samm@os2.kiev.ua>
Compile fixes for Areca patch on FreeBSD.
Added support for the /dev/twsX (3ware 9750) controller on FreeBSD.
Manual pages updated with /dev/twsX device
FreeBSD: Migrate 3ware interface to ata_pass_through()
FreeBSD: fix missing drives detection on -d 3ware
FreeBSD: 3ware - do not pass buffers direcly, use memcpy() instead
FreeBSD: improved detection of 3ware/LSI controllers
2012-10-16 Christian Franke <franke@computer.org>
Compile fixes for Areca patch:
Add missing includes. Add GPL header.
Add dev_areca.* to configure.in and Makefile.am.
2012-10-16 Hank Wu <hank@areca.com.tw>
Move common Areca code from os_freebsd.cpp, os_linux.cpp, os_win32.cpp
to new files dev_areca.h, dev_areca.cpp.
Add SAS support for FreeBSD and Linux.
2012-10-10 Christian Franke <franke@computer.org>
Rename old CHANGELOG to ChangeLog-5.0-6.0.
Start new ChangeLog.
2012-10-10 Christian Franke <franke@computer.org>
smartmontools 6.0
This diff is collapsed.
# Doxyfile 1.5.5
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = smartmontools
PROJECT_NUMBER =
OUTPUT_DIRECTORY = doc
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = YES
ABBREVIATE_BRIEF =
ALWAYS_DETAILED_SEC = YES
INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = YES
STRIP_FROM_PATH =
STRIP_FROM_INC_PATH =
SHORT_NAMES = NO
JAVADOC_AUTOBRIEF = YES
QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
DETAILS_AT_TOP = NO
INHERIT_DOCS = YES
SEPARATE_MEMBER_PAGES = NO
TAB_SIZE = 8
ALIASES =
OPTIMIZE_OUTPUT_FOR_C = NO
OPTIMIZE_OUTPUT_JAVA = NO
OPTIMIZE_FOR_FORTRAN = NO
OPTIMIZE_OUTPUT_VHDL = NO
BUILTIN_STL_SUPPORT = NO
CPP_CLI_SUPPORT = NO
SIP_SUPPORT = NO
DISTRIBUTE_GROUP_DOC = NO
SUBGROUPING = YES
TYPEDEF_HIDES_STRUCT = NO
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
EXTRACT_LOCAL_CLASSES = YES
EXTRACT_LOCAL_METHODS = NO
EXTRACT_ANON_NSPACES = YES
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
HIDE_FRIEND_COMPOUNDS = NO
HIDE_IN_BODY_DOCS = NO
INTERNAL_DOCS = NO
CASE_SENSE_NAMES = YES
HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
SORT_BRIEF_DOCS = NO
SORT_GROUP_NAMES = NO
SORT_BY_SCOPE_NAME = NO
GENERATE_TODOLIST = YES
GENERATE_TESTLIST = YES
GENERATE_BUGLIST = YES
GENERATE_DEPRECATEDLIST= YES
ENABLED_SECTIONS =
MAX_INITIALIZER_LINES = 30
SHOW_USED_FILES = YES
SHOW_DIRECTORIES = NO
FILE_VERSION_FILTER =
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = NO
WARNINGS = YES
WARN_IF_UNDOCUMENTED = NO
WARN_IF_DOC_ERROR = YES
WARN_NO_PARAMDOC = NO
WARN_FORMAT = "$file:$line: $text"
WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
INPUT =
INPUT_ENCODING = UTF-8
FILE_PATTERNS = dev*.h \
dev*.cpp \
scsiata.cpp
RECURSIVE = NO
EXCLUDE =
EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS =
EXCLUDE_SYMBOLS =
EXAMPLE_PATH =
EXAMPLE_PATTERNS =
EXAMPLE_RECURSIVE = NO
IMAGE_PATH =
INPUT_FILTER =
FILTER_PATTERNS =
FILTER_SOURCE_FILES = NO
#---------------------------------------------------------------------------
# configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER = YES
INLINE_SOURCES = NO
STRIP_CODE_COMMENTS = NO
REFERENCED_BY_RELATION = NO
REFERENCES_RELATION = NO
REFERENCES_LINK_SOURCE = YES
USE_HTAGS = NO
VERBATIM_HEADERS = YES
#---------------------------------------------------------------------------
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
ALPHABETICAL_INDEX = NO
COLS_IN_ALPHA_INDEX = 5
IGNORE_PREFIX =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html
HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = NO
GENERATE_DOCSET = NO
DOCSET_FEEDNAME = "Doxygen generated docs"
DOCSET_BUNDLE_ID = org.doxygen.Project
HTML_DYNAMIC_SECTIONS = NO
CHM_FILE =
HHC_LOCATION =
GENERATE_CHI = NO
BINARY_TOC = NO
TOC_EXPAND = NO
DISABLE_INDEX = NO
ENUM_VALUES_PER_LINE = 4
GENERATE_TREEVIEW = NO
TREEVIEW_WIDTH = 250
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
GENERATE_LATEX = YES
LATEX_OUTPUT = latex
LATEX_CMD_NAME = latex
MAKEINDEX_CMD_NAME = makeindex
COMPACT_LATEX = NO
PAPER_TYPE = a4wide
EXTRA_PACKAGES =
LATEX_HEADER =
PDF_HYPERLINKS = YES
USE_PDFLATEX = YES
LATEX_BATCHMODE = NO
LATEX_HIDE_INDICES = NO
#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------
GENERATE_RTF = NO
RTF_OUTPUT = rtf
COMPACT_RTF = NO
RTF_HYPERLINKS = NO
RTF_STYLESHEET_FILE =
RTF_EXTENSIONS_FILE =
#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------
GENERATE_MAN = NO
MAN_OUTPUT = man
MAN_EXTENSION = .3
MAN_LINKS = NO
#---------------------------------------------------------------------------
# configuration options related to the XML output
#---------------------------------------------------------------------------
GENERATE_XML = NO
XML_OUTPUT = xml
XML_SCHEMA =
XML_DTD =
XML_PROGRAMLISTING = YES
#---------------------------------------------------------------------------
# configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
GENERATE_AUTOGEN_DEF = NO
#---------------------------------------------------------------------------
# configuration options related to the Perl module output
#---------------------------------------------------------------------------
GENERATE_PERLMOD = NO
PERLMOD_LATEX = NO
PERLMOD_PRETTY = YES
PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = NO
EXPAND_ONLY_PREDEF = NO
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED =
EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration::additions related to external references
#---------------------------------------------------------------------------
TAGFILES =
GENERATE_TAGFILE =
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
CLASS_DIAGRAMS = YES
MSCGEN_PATH =
HIDE_UNDOC_RELATIONS = YES
HAVE_DOT = NO
CLASS_GRAPH = YES
COLLABORATION_GRAPH = YES
GROUP_GRAPHS = YES
UML_LOOK = NO
TEMPLATE_RELATIONS = NO
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
CALL_GRAPH = NO
CALLER_GRAPH = NO
GRAPHICAL_HIERARCHY = YES
DIRECTORY_GRAPH = YES
DOT_IMAGE_FORMAT = png
DOT_PATH =
DOTFILE_DIRS =
DOT_GRAPH_MAX_NODES = 50
MAX_DOT_GRAPH_DEPTH = 0
DOT_TRANSPARENT = YES
DOT_MULTI_TARGETS = NO
GENERATE_LEGEND = YES
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
# Configuration::additions related to the search engine
#---------------------------------------------------------------------------
SEARCHENGINE = NO
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
==========================================================
smartmontools - S.M.A.R.T. utility toolset for Darwin/Mac
OSX, FreeBSD, Linux, NetBSD, OpenBSD, Solaris, and Windows.
==========================================================
$Id$
== HOME ==
The home for smartmontools is located at:
http://smartmontools.sourceforge.net/
Please see this web site for updates, documentation, and for submitting
patches and bug reports.
You will find a mailing list for support and other questions at:
http://lists.sourceforge.net/lists/listinfo/smartmontools-support
== COPYING ==
Copyright (C) 2002-9 Bruce Allen <smartmontools-support@lists.sourceforge.net>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.
You should have received a copy of the GNU General Public License (for
example COPYING); if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
== CREDITS ==
This code was originally developed as a Senior Thesis by Michael Cornwell
at the Concurrent Systems Laboratory (now part of the Storage Systems
Research Center), Jack Baskin School of Engineering, University of
California, Santa Cruz. http://ssrc.soe.ucsc.edu/
== OVERVIEW ==
smartmontools contains utilities that control and monitor storage
devices using the Self-Monitoring, Analysis and Reporting Technology
(S.M.A.R.T.) system build into ATA and SCSI Hard Drives. This is used
to check the reliability of the hard drive and to predict drive
failures. smartmontools Version 5.x is designed to comply to the
ATA/ATAPI-5 specification (Revision 1). Future releases of
smartmontools (Versions 6.x and 7.x) will comply with the ATA/ATAPI-6
and ATA/ATAPI-7 specifications.
This package is meant to be an up-to-date replacement for the
ucsc-smartsuite and smartsuite packages, and is derived from that
code.
== CONTENTS ==
The suite contains two utilities:
smartctl is a command line utility designed to perform S.M.A.R.T. tasks
such as disk self-checks, and to report the S.M.A.R.T. status of
the disk.
smartd is a daemon that periodically monitors S.M.A.R.T. status and
reports errors and changes in S.M.A.R.T. attributes to syslog.
== OBTAINING SMARTMONTOOLS ==
Source tarballs
---------------
http://sourceforge.net/project/showfiles.php?group_id=64297
SVN
---
svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools smartmontools
This will create a subdirectory called smartmontools containing the code.
To instead get the 5.38 release:
svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/tags/RELEASE_5_38/sm5 smartmontools
You can see what the different tags are by looking at
http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/tags/
== BUILDING/INSTALLING SMARTMONTOOLS ==
Refer to the "INSTALL" file for detailed installation instructions.
See the "WARNINGS" file for reports of hardware where these utilities
might cause serious problems such as lockups.
== GETTING STARTED ==
To examine SMART data from a disk, try:
smartctl -a /dev/hda
for ATA disks, or
smartctl -a /dev/sda
for SCSI disks. See the manual page 'man smartctl' for more
information.
To start automatic monitoring of your disks with the smartd daemon,
try:
smartd -d
to start the daemon in foreground (debug) mode, or
smartd
to start the daemon in background mode. This will log messages to
SYSLOG. If you would like to get email warning messages, please set
up the configuration file smartd.conf with the '-m' mail warning
Directive. See the manual page 'man smartd' for more information.
$Id$
This file is no longer maintained, please use the ticket reports:
http://sourceforge.net/apps/trac/smartmontools/report
$Id$
The most recent version of this file can be found here:
http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/WARNINGS?view=markup
The following are reports of serious problems (eg system lockup) which
were due to smartmontools. There are DARWIN, LINUX, FREEBSD, SOLARIS
and WINDOWS sections below.
LINUX
-----
You may also wish to search the linux-kernel mailing list for problem
reports concerning smartmontools. Here is the URL:
http://groups.google.com/groups?as_q=smartmontools&safe=images&ie=UTF-8&oe=UTF-8&as_ugroup=linux.kernel&lr=&num=100&hl=en
SYSTEM: Any system with USB ports and USB storage devices
PROBLEM: Using smartd/smartctl on USB "SCSI" storage devices can cause kernel hang
REPORTER: see link below
LINK: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=107615
NOTE: USB storage devices are handled as SCSI devices by the kernel. But many of these
devices do not comply with SCSI specs, and can cause the kernel to hang.
Avoid using smartd/smartctl on these devices (they don't do SMART anyway).
In particular, the use of smartd DEVICESCAN in /etc/smartd.conf can cause
these devices (typically represented by /dev/sda or /dev/sdb) to hang, and
the kernel to lock up.
FIXED: This problem should be fixed in smartmontools-5.25 and greater.
SYSTEM: Intel 875WP1-E motherboard with SATA drives on motherboard's SATA ports
PROBLEM: smartd makes NTP time drift
REPORTER: nohez@cmie.com
LINK: http://groups.google.de/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=Pine.LNX.4.33.0310111545530.1047-100000%40venus.cmie.ernet.in.lucky.linux.kernel
NOTE: When using SATA disks, linux kernel k_smp-2.4.21-108 (SMP because
of hyper-threading) and xntp-4.1.1-177, the server time went
out of sync with system time. Problem goes away when SATA
disks removed.
SYSTEM: Dell servers using AACRAID (SCSI)
PROBLEM: Locked up, needed to be rebooted
REPORTER: drew@eastvan.bc.ca
LINK: http://sourceforge.net/mailarchive/forum.php?thread_id=1311313&forum_id=12495
SYSTEM: Box with Promise 20265 IDE-controller (pdc202xx-driver) and > 2.4.18 kernel with ide-taskfile support
PROBLEM: Smartctl locks system solid when used on /dev/hd[ef].
REPORTER: Georg Acher <acher@in.tum.de>
LINK: http://sourceforge.net/mailarchive/forum.php?thread_id=1457979&forum_id=12495
NOTE: Lockup doesn't happen with 2.4.18 kernel, and doesn't affect /dev/hd[a-d]
This appears to be a problem with the pdc202xx-driver and has been reported
to the pdcx maintainers. If you enable the Promise-BIOS (ATA100-BIOS) then
everything will work fine. But if you disable it, then the machine will hang.
SYSTEM: Box with Promise 20262 IDE-controller
PROBLEM: Smartctl locks system solid
REPORTER: Ben Low <ben@bdlow.net>
LINK: http://sourceforge.net/mailarchive/message.php?msg_id=5074201
NOTE: Similar to previous report: Promise Ultra66 2-port card (20262) which, with
linux 2.4.20, suffers from the lockups reported above. But it was
impossible to enable the Promiste BIOS. A kernel patch is referenced
to fix the problem.
SYSTEM: Promise 20265 IDE-controller
PROBLEM: Smartctl locks system solid when used on CDROM/DVD device
REPORTER: see link below
LINK: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208964
NOTE: Problem seems to affect kernel 2.4.21 only.
SYSTEM: Promise IDE-controllers and perhaps others also
PROBLEM: System freezes under heavy load, perhaps when running SMART commands
REPORTER: Mario 'BitKoenig' Holbe Mario.Holbe@RZ.TU-Ilmenau.DE
LINK: http://groups.google.de/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=1wUXW-2FA-9%40gated-at.bofh.it
NOTE: Before freezing, SYSLOG shows the following message(s)
kernel: hdf: dma timer expiry: dma status == 0xXX
where XX is two hexidecimal digits. This may be a kernel bug
or an underlying hardware problem. It's not clear if
smartmontools plays a role in provoking this problem. FINAL
NOTE: Problem was COMPLETELY resolved by replacing the power
supply. See URL above, entry on May 29, 2004 by Holbe. Other
things to try are exchanging cables, and cleaning PCI slots.
FREEBSD
-------
[No problem reports yet.]
SOLARIS
-------
[No problem reports yet.]
CYGWIN and WINDOWS
------------------
[No problem reports yet.]
DARWIN
------
SYSTEM: Any system before Tiger
PROBLEM: Can't switch off SMART, can't switch off auto-save, can't run
short tests.
REPORTER: Geoff Keating <geoffk@geoffk.org>
NOTE: There's a bug in the system library: when you ask it to
do any of these things, it does the inverse (switches on,
runs extended tests). Radar 3727283.
SYSTEM: All known systems
PROBLEM: When drive is asleep, SMART commands fail
REPORTER: Geoff Keating <geoffk@geoffk.org>
NOTE: You can prevent the drive from sleeping by saying
pmset -a disksleep 0
or by unchecking the 'Put the hard disk(s) to sleep when possible'
checkbox in the Energy Saver preferences. Radar 4094403.
/*
* atacmdnames.cpp
*
* Home page of code is: http://smartmontools.sourceforge.net
*
* Copyright (C) 2003-8 Philip Williams
* Copyright (C) 2012 Christian Franke <smartmontools-support@lists.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "atacmdnames.h"
#include <stdlib.h>
#include <stdio.h>
const char * atacmdnames_cpp_cvsid = "$Id$"
ATACMDNAMES_H_CVSID;
const char cmd_reserved[] = "[RESERVED]";
const char cmd_vendor_specific[] = "[VENDOR SPECIFIC]";
const char cmd_reserved_sa[] = "[RESERVED FOR SERIAL ATA]";
const char cmd_reserved_cf[] = "[RESERVED FOR COMPACTFLASH ASSOCIATION]";
const char cmd_reserved_mcpt[] = "[RESERVED FOR MEDIA CARD PASS THROUGH]"; // ACS-3: Reserved
const char cmd_recalibrate_ret4[]= "RECALIBRATE [RET-4]";
const char cmd_seek_ret4[] = "SEEK [RET-4]";
// Tables B.3 and B.4 of T13/2161-D (ACS-3) Revision 4, September 4, 2012
const char * const command_table[] = {
/*-------------------------------------------------- 00h-0Fh -----*/
"NOP",
cmd_reserved,
cmd_reserved,
"CFA REQUEST EXTENDED ERROR",
cmd_reserved,
cmd_reserved,
"DATA SET MANAGEMENT", // ACS-2
cmd_reserved,
"DEVICE RESET",
cmd_reserved,
cmd_reserved,
"REQUEST SENSE DATA EXT", // ACS-2
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
/*-------------------------------------------------- 10h-1Fh -----*/
"RECALIBRATE [OBS-4]",
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
cmd_recalibrate_ret4,
/*-------------------------------------------------- 20h-2Fh -----*/
"READ SECTOR(S)",
"READ SECTOR(S) [OBS-5]",
"READ LONG [OBS-4]",
"READ LONG (w/o retry) [OBS-4]",
"READ SECTOR(S) EXT",
"READ DMA EXT",
"READ DMA QUEUED EXT [OBS-ACS-2]",
"READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]",
cmd_reserved,
"READ MULTIPLE EXT",
"READ STREAM DMA",
"READ STREAM",
cmd_reserved,
cmd_reserved,
cmd_reserved,
"READ LOG EXT",
/*-------------------------------------------------- 30h-3Fh -----*/
"WRITE SECTOR(S)",
"WRITE SECTOR(S) (w/o retry) [OBS-5]",
"WRITE LONG [OBS-4]",
"WRITE LONG (w/o retry) [OBS-4]",
"WRITE SECTORS(S) EXT",
"WRITE DMA EXT",
"WRITE DMA QUEUED EXT [OBS-ACS-2]",
"SET NATIVE MAX ADDRESS EXT [OBS-ACS-3]",
"CFA WRITE SECTORS WITHOUT ERASE",
"WRITE MULTIPLE EXT",
"WRITE STREAM DMA",
"WRITE STREAM",
"WRITE VERIFY [OBS-4]",
"WRITE DMA FUA EXT",
"WRITE DMA QUEUED FUA EXT [OBS-ACS-2]",
"WRITE LOG EXT",
/*-------------------------------------------------- 40h-4Fh -----*/
"READ VERIFY SECTOR(S)",
"READ VERIFY SECTOR(S) (w/o retry) [OBS-5]",
"READ VERIFY SECTOR(S) EXT",
cmd_reserved,
cmd_reserved,
"WRITE UNCORRECTABLE EXT", // ATA-8
cmd_reserved,
"READ LOG DMA EXT", // ATA-8
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
/*-------------------------------------------------- 50h-5Fh -----*/
"FORMAT TRACK [OBS-4]",
"CONFIGURE STREAM",
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
"WRITE LOG DMA EXT", // ATA-8
cmd_reserved,
cmd_reserved,
cmd_reserved,
"TRUSTED NON-DATA", // ATA-8
"TRUSTED RECEIVE", // ATA-8
"TRUSTED RECEIVE DMA", // ATA-8
"TRUSTED SEND", // ATA-8
"TRUSTED SEND DMA", // ATA-8
/*-------------------------------------------------- 60h-6Fh -----*/
"READ FPDMA QUEUED", // ATA-8
"WRITE FPDMA QUEUED", // ATA-8
cmd_reserved_sa,
"NCQ QUEUE MANAGEMENT", // ACS-3
"SEND FPDMA QUEUED", // ACS-3
"RECEIVE FPDMA QUEUED", // ACS-3
cmd_reserved_sa,
cmd_reserved_sa,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
/*-------------------------------------------------- 70h-7Fh -----*/
"SEEK [OBS-7]",
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
"SET DATE & TIME EXT", // ACS-3
"ACCESSIBLE MAX ADDRESS CONFIGURATION", // ACS-3
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
cmd_seek_ret4,
/*-------------------------------------------------- 80h-8Fh -----*/
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
"CFA TRANSLATE SECTOR [VS IF NO CFA]",
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
/*-------------------------------------------------- 90h-9Fh -----*/
"EXECUTE DEVICE DIAGNOSTIC",
"INITIALIZE DEVICE PARAMETERS [OBS-6]",
"DOWNLOAD MICROCODE",
"DOWNLOAD MICROCODE DMA", // ACS-2
"STANDBY IMMEDIATE [RET-4]",
"IDLE IMMEDIATE [RET-4]",
"STANDBY [RET-4]",
"IDLE [RET-4]",
"CHECK POWER MODE [RET-4]",
"SLEEP [RET-4]",
cmd_vendor_specific,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
/*-------------------------------------------------- A0h-AFh -----*/
"PACKET",
"IDENTIFY PACKET DEVICE",
"SERVICE [OBS-ACS-2]",
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
/*-------------------------------------------------- B0h-BFh -----*/
"SMART",
"DEVICE CONFIGURATION [OBS-ACS-3]",
cmd_reserved,
cmd_reserved,
"SANITIZE DEVICE", // ACS-2
cmd_reserved,
"NV CACHE [OBS-ACS-3]", // ATA-8
cmd_reserved_cf,
cmd_reserved_cf,
cmd_reserved_cf,
cmd_reserved_cf,
cmd_reserved_cf,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
/*-------------------------------------------------- C0h-CFh -----*/
"CFA ERASE SECTORS [VS IF NO CFA]",
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
"READ MULTIPLE",
"WRITE MULTIPLE",
"SET MULTIPLE MODE",
"READ DMA QUEUED [OBS-ACS-2]",
"READ DMA",
"READ DMA (w/o retry) [OBS-5]",
"WRITE DMA",
"WRITE DMA (w/o retry) [OBS-5]",
"WRITE DMA QUEUED [OBS-ACS-2]",
"CFA WRITE MULTIPLE WITHOUT ERASE",
"WRITE MULTIPLE FUA EXT",
cmd_reserved,
/*-------------------------------------------------- D0h-DFh -----*/
cmd_reserved,
"CHECK MEDIA CARD TYPE [OBS-ACS-2]",
cmd_reserved_mcpt,
cmd_reserved_mcpt,
cmd_reserved_mcpt,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
cmd_reserved,
"GET MEDIA STATUS [OBS-8]",
"ACKNOWLEDGE MEDIA CHANGE [RET-4]",
"BOOT POST-BOOT [RET-4]",
"BOOT PRE-BOOT [RET-4]",
"MEDIA LOCK [OBS-8]",
"MEDIA UNLOCK [OBS-8]",
/*-------------------------------------------------- E0h-EFh -----*/
"STANDBY IMMEDIATE",
"IDLE IMMEDIATE",
"STANDBY",
"IDLE",
"READ BUFFER",
"CHECK POWER MODE",
"SLEEP",
"FLUSH CACHE",
"WRITE BUFFER",
"READ BUFFER DMA", // ACS-2 (was: WRITE SAME [RET-4])
"FLUSH CACHE EXT",
"WRITE BUFFER DMA", // ACS-2
"IDENTIFY DEVICE",
"MEDIA EJECT [OBS-8]",
"IDENTIFY DEVICE DMA [OBS-4]",
"SET FEATURES",
/*-------------------------------------------------- F0h-FFh -----*/
cmd_vendor_specific,
"SECURITY SET PASSWORD",
"SECURITY UNLOCK",
"SECURITY ERASE PREPARE",
"SECURITY ERASE UNIT",
"SECURITY FREEZE LOCK",
"SECURITY DISABLE PASSWORD",
cmd_vendor_specific,
"READ NATIVE MAX ADDRESS [OBS-ACS-3]",
"SET MAX ADDRESS [OBS-ACS-3]",
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific,
cmd_vendor_specific
};
typedef char ASSERT_command_table_size[
sizeof(command_table)/sizeof(command_table[0]) == 256 ? 1 : -1];
/* Returns the name of the command (and possibly sub-command) with the given
command code and feature register values. For most command codes this
simply returns the corresponding entry in the command_table array, but for
others the value of the feature register specifies a subcommand or
distinguishes commands. */
const char *look_up_ata_command(unsigned char c_code, unsigned char f_reg) {
switch (c_code) {
case 0x00: /* NOP */
switch (f_reg) {
case 0x00:
return "NOP [Abort queued commands]";
case 0x01:
return "NOP [Don't abort queued commands] [OBS-ACS-2]";
default:
return "NOP [Reserved subcommand] [OBS-ACS-2]";
}
case 0x92: /* DOWNLOAD MICROCODE */
switch (f_reg) {
case 0x01:
return "DOWNLOAD MICROCODE [Temporary] [OBS-8]";
case 0x03:
return "DOWNLOAD MICROCODE [Save with offsets]"; // ATA-8
case 0x07:
return "DOWNLOAD MICROCODE [Save]";
case 0x0e:
return "DOWNLOAD MICROCODE [Save for future use]"; // ACS-3
case 0x0f:
return "DOWNLOAD MICROCODE [Activate]"; // ACS-3
default:
return "DOWNLOAD MICROCODE [Reserved subcommand]";
}
case 0xB0: /* SMART */
switch (f_reg) {
case 0xD0:
return "SMART READ DATA";
case 0xD1:
return "SMART READ ATTRIBUTE THRESHOLDS [OBS-4]";
case 0xD2:
return "SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE";
case 0xD3:
return "SMART SAVE ATTRIBUTE VALUES [OBS-6]";
case 0xD4:
return "SMART EXECUTE OFF-LINE IMMEDIATE";
case 0xD5:
return "SMART READ LOG";
case 0xD6:
return "SMART WRITE LOG";
case 0xD7:
return "SMART WRITE ATTRIBUTE THRESHOLDS [NS, OBS-4]";
case 0xD8:
return "SMART ENABLE OPERATIONS";
case 0xD9:
return "SMART DISABLE OPERATIONS";
case 0xDA:
return "SMART RETURN STATUS";
case 0xDB:
return "SMART EN/DISABLE AUTO OFFLINE [NS (SFF-8035i)]";
default:
if (f_reg >= 0xE0)
return "SMART [Vendor specific subcommand]";
else
return "SMART [Reserved subcommand]";
}
case 0xB1: /* DEVICE CONFIGURATION */
switch (f_reg) {
case 0xC0:
return "DEVICE CONFIGURATION RESTORE [OBS-ACS-3]";
case 0xC1:
return "DEVICE CONFIGURATION FREEZE LOCK [OBS-ACS-3]";
case 0xC2:
return "DEVICE CONFIGURATION IDENTIFY [OBS-ACS-3]";
case 0xC3:
return "DEVICE CONFIGURATION SET [OBS-ACS-3]";
default:
return "DEVICE CONFIGURATION [Reserved subcommand] [OBS-ACS-3]";
}
case 0xEF: /* SET FEATURES */
switch (f_reg) {
case 0x01:
return "SET FEATURES [Enable 8-bit PIO] [OBS-3]"; // Now CFA
case 0x02:
return "SET FEATURES [Enable write cache]";
case 0x03:
return "SET FEATURES [Set transfer mode]";
case 0x04:
return "SET FEATURES [Enable auto DR] [OBS-4]";
case 0x05:
return "SET FEATURES [Enable APM]";
case 0x06:
return "SET FEATURES [Enable Pwr-Up In Standby]";
case 0x07:
return "SET FEATURES [Set device spin-up]";
case 0x09:
return "SET FEATURES [Reserved (address offset)] [OPS-ACS-3]";
case 0x0A:
return "SET FEATURES [Enable CFA power mode 1]";
case 0x10:
return "SET FEATURES [Enable SATA feature]"; // ACS-3
case 0x20:
return "SET FEATURES [Set Time-ltd R/W WCT]";
case 0x21:
return "SET FEATURES [Set Time-ltd R/W EH]";
case 0x31:
return "SET FEATURES [Disable Media Status Notf] [OBS-8]";
case 0x33:
return "SET FEATURES [Disable retry] [OBS-4]";
case 0x41:
return "SET FEATURES [Enable Free-fall Control]"; // ATA-8
case 0x42:
return "SET FEATURES [Enable AAM] [OBS-ACS-2]";
case 0x43:
return "SET FEATURES [Set Max Host I/F S Times]";
case 0x44:
return "SET FEATURES [Length of VS data] [OBS-4]";
case 0x4a:
return "SET FEATURES [Ext. Power Conditions]"; // ACS-2
case 0x54:
return "SET FEATURES [Set cache segs] [OBS-4]";
case 0x55:
return "SET FEATURES [Disable read look-ahead]";
case 0x5D:
return "SET FEATURES [Enable release interrupt] [OBS-ACS-2]";
case 0x5E:
return "SET FEATURES [Enable SERVICE interrupt] [OBS-ACS-2]";
case 0x66:
return "SET FEATURES [Disable revert defaults]";
case 0x69:
return "SET FEATURES [LPS Error Reporting Control]"; // ACS-2
case 0x77:
return "SET FEATURES [Disable ECC] [OBS-4]";
case 0x81:
return "SET FEATURES [Disable 8-bit PIO] [OBS-3]"; // Now CFA
case 0x82:
return "SET FEATURES [Disable write cache]";
case 0x84:
return "SET FEATURES [Disable auto DR] [OBS-4]";
case 0x85:
return "SET FEATURES [Disable APM]";
case 0x86:
return "SET FEATURES [Disable Pwr-Up In Standby]";
case 0x88:
return "SET FEATURES [Disable ECC] [OBS-4]";
case 0x89:
return "SET FEATURES [Reserved (address offset)]";
case 0x8A:
return "SET FEATURES [Disable CFA power mode 1]";
case 0x90:
return "SET FEATURES [Disable SATA feature]"; // ACS-3
case 0x95:
return "SET FEATURES [Enable Media Status Notf] [OBS-8]";
case 0x99:
return "SET FEATURES [Enable retries] [OBS-4]";
case 0x9A:
return "SET FEATURES [Set max avg curr] [OBS-4]";
case 0xAA:
return "SET FEATURES [Enable read look-ahead]";
case 0xAB:
return "SET FEATURES [Set max prefetch] [OBS-4]";
case 0xBB:
return "SET FEATURES [4 bytes VS data] [OBS-4]";
case 0xC1:
return "SET FEATURES [Disable Free-fall Control]"; // ATA-8
case 0xC2:
return "SET FEATURES [Disable AAM] [OBS-ACS-2]";
case 0xC3:
return "SET FEATURES [Sense Data Reporting]"; // ACS-2
case 0xCC:
return "SET FEATURES [Enable revert to defaults]";
case 0xDD:
return "SET FEATURES [Disable release interrupt] [OBS-ACS-2]";
case 0xDE:
return "SET FEATURES [Disable SERVICE interrupt] [OBS-ACS-2]";
case 0xE0:
return "SET FEATURES [Vendor specific] [OBS-7]";
default:
if (f_reg >= 0xF0)
return "SET FEATURES [Reserved for CFA]";
else
return "SET FEATURES [Reserved subcommand]";
}
case 0xF9: /* SET MAX */
switch (f_reg) {
case 0x00:
return "SET MAX ADDRESS [OBS-6]";
case 0x01:
return "SET MAX SET PASSWORD [OBS-ACS-3]";
case 0x02:
return "SET MAX LOCK [OBS-ACS-3]";
case 0x03:
return "SET MAX UNLOCK [OBS-ACS-3]";
case 0x04:
return "SET MAX FREEZE LOCK [OBS-ACS-3]";
default:
return "SET MAX [Reserved subcommand] [OBS-ACS-3]";
}
default:
return command_table[c_code];
}
}
/*
* atacmdnames.h
*
* This module is based on the T13/1532D Volume 1 Revision 3 (ATA/ATAPI-7)
* specification, which is available from http://www.t13.org/#FTP_site
*
* Home page of code is: http://smartmontools.sourceforge.net
* Address of support mailing list: smartmontools-support@lists.sourceforge.net
*
* Copyright (C) 2003-8 Philip Williams
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
#ifndef ATACMDNAMES_H_
#define ATACMDNAMES_H_
#define ATACMDNAMES_H_CVSID "$Id$\n"
/* Returns the name of the command (and possibly sub-command) with the given
command code and feature register values. */
const char *look_up_ata_command(unsigned char c_code, unsigned char f_reg);
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* ataidentify.h
*
* Home page of code is: http://smartmontools.sourceforge.net
*
* Copyright (C) 2012 Christian Franke <smartmontools-support@lists.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef ATAIDENTIFY_H
#define ATAIDENTIFY_H
#define ATAIDENTIFY_H_CVSID "$Id$"
void ata_print_identify_data(const void * id, bool all_words, int bit_level);
#endif // ATAIDENTIFY_H
This diff is collapsed.
/*
* ataprint.h
*
* Home page of code is: http://smartmontools.sourceforge.net
*
* Copyright (C) 2002-9 Bruce Allen <smartmontools-support@lists.sourceforge.net>
* Copyright (C) 2008-12 Christian Franke <smartmontools-support@lists.sourceforge.net>
* Copyright (C) 1999-2000 Michael Cornwell <cornwell@acm.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); If not, see <http://www.gnu.org/licenses/>.
*
* This code was originally developed as a Senior Thesis by Michael Cornwell
* at the Concurrent Systems Laboratory (now part of the Storage Systems
* Research Center), Jack Baskin School of Engineering, University of
* California, Santa Cruz. http://ssrc.soe.ucsc.edu/
*
*/
#ifndef ATAPRINT_H_
#define ATAPRINT_H_
#define ATAPRINT_H_CVSID "$Id$\n"
#include <vector>
// Request to dump a GP or SMART log
struct ata_log_request
{
bool gpl; // false: SMART, true: GP
unsigned char logaddr; // Log address
unsigned page; // First page (sector)
unsigned nsectors; // # Sectors
ata_log_request()
: gpl(false), logaddr(0), page(0), nsectors(0)
{ }
};
// Options for ataPrintMain
struct ata_print_options
{
bool drive_info;
int identify_word_level, identify_bit_level;
bool smart_check_status;
bool smart_general_values;
bool smart_vendor_attrib;
bool smart_error_log;
bool smart_selftest_log;
bool smart_selective_selftest_log;
bool gp_logdir, smart_logdir;
unsigned smart_ext_error_log;
unsigned smart_ext_selftest_log;
bool retry_error_log, retry_selftest_log;
std::vector<ata_log_request> log_requests;
bool devstat_all_pages, devstat_ssd_page;
std::vector<int> devstat_pages;
bool sct_temp_sts, sct_temp_hist;
bool sct_erc_get;
bool sct_erc_set;
unsigned sct_erc_readtime, sct_erc_writetime;
bool sataphy, sataphy_reset;
bool smart_disable, smart_enable;
bool smart_auto_offl_disable, smart_auto_offl_enable;
bool smart_auto_save_disable, smart_auto_save_enable;
int smart_selftest_type; // OFFLINE_FULL_SCAN, ..., see atacmds.h. -1 for no test
bool smart_selftest_force; // Ignore already running test
ata_selective_selftest_args smart_selective_args; // Extra args for selective self-test
unsigned sct_temp_int;
bool sct_temp_int_pers;
enum { FMT_BRIEF = 0x01, FMT_HEX_ID = 0x02, FMT_HEX_VAL = 0x04 };
unsigned char output_format; // FMT_* flags
firmwarebug_defs firmwarebugs; // -F options
bool fix_swapped_id; // Fix swapped ID strings returned by some buggy drivers
ata_vendor_attr_defs attribute_defs; // -v options
bool ignore_presets; // Ignore presets from drive database
bool show_presets; // Show presets and exit
unsigned char powermode; // Skip check, if disk in idle or standby mode
bool get_set_used; // true if any get/set command is used
bool get_aam; // print Automatic Acoustic Management status
int set_aam; // disable(-1), enable(1..255->0..254) Automatic Acoustic Management
bool get_apm; // print Advanced Power Management status
int set_apm; // disable(-1), enable(2..255->1..254) Advanced Power Management
bool get_lookahead; // print read look-ahead status
int set_lookahead; // disable(-1), enable(1) read look-ahead
int set_standby; // set(1..255->0..254) standby timer
bool set_standby_now; // set drive to standby
bool get_security; // print ATA security status
bool set_security_freeze; // Freeze ATA security
bool get_wcache; // print write cache status
int set_wcache; // disable(-1), enable(1) write cache
ata_print_options()
: drive_info(false),
identify_word_level(-1), identify_bit_level(-1),
smart_check_status(false),
smart_general_values(false),
smart_vendor_attrib(false),
smart_error_log(false),
smart_selftest_log(false),
smart_selective_selftest_log(false),
gp_logdir(false), smart_logdir(false),
smart_ext_error_log(0),
smart_ext_selftest_log(0),
retry_error_log(false), retry_selftest_log(false),
devstat_all_pages(false), devstat_ssd_page(false),
sct_temp_sts(false), sct_temp_hist(false),
sct_erc_get(false),
sct_erc_set(false),
sct_erc_readtime(0), sct_erc_writetime(0),
sataphy(false), sataphy_reset(false),
smart_disable(false), smart_enable(false),
smart_auto_offl_disable(false), smart_auto_offl_enable(false),
smart_auto_save_disable(false), smart_auto_save_enable(false),
smart_selftest_type(-1), smart_selftest_force(false),
sct_temp_int(0), sct_temp_int_pers(false),
output_format(0),
fix_swapped_id(false),
ignore_presets(false),
show_presets(false),
powermode(0),
get_set_used(false),
get_aam(false), set_aam(0),
get_apm(false), set_apm(0),
get_lookahead(false), set_lookahead(0),
set_standby(0), set_standby_now(false),
get_security(false), set_security_freeze(false),
get_wcache(false), set_wcache(0)
{ }
};
int ataPrintMain(ata_device * device, const ata_print_options & options);
#endif
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment