Commit Graph

88 Commits

Author SHA1 Message Date
soren
2d96a254f8 TRIM showed up sometime between ATA-7 and ATA-8. 2013-08-06 19:13:13 +00:00
soren
35985c7122 Don't use \t to align text columns.
Add a few attribute descriptions.
2013-08-03 18:35:31 +00:00
jakllsch
8c9dbb49b1 Decode 6Gbps signaling SATA capability in IDENTIFY DEVICE data. 2013-02-08 03:58:36 +00:00
riastradh
50ce00ea5e Add some ATA SECURITY commands to atactl(8). 2013-01-09 21:58:23 +00:00
drochner
5724e77fda Implement experimental support to pass notifications that a file
was deleted from the filesystem to the disk driver, commonly
known as "discard" or "trim".
fs/driver support is in ffs and ata wd for now.
This is what was posted here:
http://mail-index.netbsd.org/tech-kern/2012/02/28/msg012813.html
with minor cleanup, and the global switch replaced by a mount option.
2012-10-19 17:09:06 +00:00
jakllsch
b052e03160 Constify structure pointed to by getataparams() return value. 2011-10-31 15:26:11 +00:00
jakllsch
bfe1863ea2 Remove write-only variable. 2011-10-31 14:50:10 +00:00
jakllsch
58fe39198a Wrap or shorten lines longer than 80 columns. 2011-10-31 14:44:07 +00:00
jakllsch
34ce9c94ba use C99 fixed-width integer types 2011-10-24 19:15:42 +00:00
jakllsch
fbc01b29da constify 2011-10-24 19:13:03 +00:00
jakllsch
44a52e4ad8 change lines containing only whitespace to empty lines,
remove trailing whitespace
2011-10-24 15:56:17 +00:00
joerg
1a61ef5ea6 staticfy. Use __dead. 2011-08-27 16:12:54 +00:00
nisimura
ba19dd6c6f fix mislabelled S.M.A.R.T. lifetime temperature record reading. 2011-01-19 07:55:12 +00:00
nisimura
819cda4abe fix a mysterious indent lossage roaming around for last couple of years. 2011-01-14 06:02:57 +00:00
mrg
a597c96c7d add SMART code 187: "Reported uncorrect". from smartmontools. 2010-03-13 19:49:50 +00:00
jakllsch
ce12229e40 Add display of Long Physical Sector and Long Logical Sectors feature set
information to atactl identify output.

Also:
- remove caddr_t cast
- warn about invalid IDENTIFY data checksum (when possible)
- humanize capacity in power-of-10 format
- remove semi-pointless ATAPI check
- slightly rework command queue depth output to be less conversational
2010-01-25 01:24:11 +00:00
jakllsch
7a9caa1f87 Improve "identify" output slightly:
- Capitialize "Name" in World Wide Name.
 - Print the World Wide Name if it exists.
 - Use LBA48 maximum address when available for "total sectors" output.
 - So that geometry will display on more drives, don't be as strict when
   checking for non-ATAPI devices.  (This seemed to be an issue on at least
   one instance of a Caviar SE16 drive.)
 - Check more carefully for valid/relevant queue depth before printing it.
 - Increment the queue depth by one for display.

While here, wrap some long lines that I should have had wrapped before they
were commited in rev. 1.46.
2009-06-08 23:26:13 +00:00
mlelstv
3479599edd make space for a trailing \0 in model,revision and serial buffers. 2009-06-06 09:18:55 +00:00
lukem
c1237301b3 fix sign-compare issues 2009-03-16 12:52:07 +00:00
dholland
992b45040f Add two missing SMART attributes; PR 37967 from Henry Bent. Also add a
third I found while digging around, and fix one whose name was typoed.
2008-08-25 00:45:56 +00:00
dholland
8bc7b72389 Fix this to not need -Wno-pointer-sign. Make it pass -Wsign-compare too,
while I'm at it.
2008-07-24 05:21:12 +00:00
gmcgarry
8d54263568 Add HAVE_PCC tests for -Wno-pointer-sign. 2008-07-21 11:38:44 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
perry
4d096031f0 replace instances of __attribute__((__packed__)) with __packed 2007-12-15 16:03:29 +00:00
christos
eb90df6853 From Marco Trillo (marcotrillo at gmail dot com):
Add Advanced power management in atactl(8)
2007-11-18 17:48:21 +00:00
xtraeme
51f434b0bb Fix typo in SATA features: Perservation -> Preservation. 2007-11-04 02:34:27 +00:00
bouyer
bd627359dd Improved SATA support, from Jonathan A. Kollasch in PR bin/36772:
* use full 5-bit command queue depth that SATA supports
* decode SATA bits
2007-08-21 16:53:18 +00:00
christos
7e3b870a41 add missing initializers 2006-10-16 00:45:19 +00:00
xtraeme
91254d0d23 It's WDCC_SECURITY_FREEZE not WCDD_SECURITY_FREEZE.
Noticed by Sergey Svishchev.
2006-09-24 08:33:30 +00:00
xtraeme
e2e3ea2b19 Do not print "SMART not supported" when SMART was disabled, this
fixes PR bin/18666.
2006-09-23 15:24:24 +00:00
mrg
aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
wiz
5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
dbj
5a25538485 fix byteswap of log revision structure check, improve error printout 2005-11-29 08:47:22 +00:00
dbj
1aeda8c1bc add newline termination on error message 2005-11-29 08:06:13 +00:00
christos
2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
wiz
5c35c1667a Improve formatting. 2005-04-12 11:50:29 +00:00
drochner
e69243d0ea document the "security" command 2005-04-12 11:41:14 +00:00
drochner
48eac6e41a Implement a "security" command with subcommands to query the status of
the "security" extension and to "freeze" it. With the security extension
frozen, disk passwords cannot be set anymore, until the next hard reset.
Normally, this is the business of the BIOS, but older/buggy/embedded
BIOSes don't care. This leaves the (theoretical) possibility that a
malicious program in posession of superuser rights sets a disk password,
rendering the disk useless (or at least uneconomical to recover from).
Inspired by an article in the german "ct" magazine.
Being here, consolidate the implementations of IDENTIFY into one, and
fix an obvious alignment problem.
2005-04-12 11:40:46 +00:00
xtraeme
76500fc2f9 WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz) 2005-01-20 16:39:22 +00:00
xtraeme
743ce43fbc Kill __P(), remove main() prototype; WARNS=2 2005-01-20 15:36:02 +00:00
dogcow
72e5ae587b Add missing SMART attribute (6, Read channel margin) 2005-01-17 13:00:32 +00:00
fvdl
08d19d088d * don't swap the WDSMART_CYL value, it isn't needed
* swap the 16- and 32 bit fields of the SMART structures (where used)

Makes SMART commands work on big-endian systems.
2004-11-17 15:40:50 +00:00
wiz
67bfa4e06f Bump date for "offline" description. 2004-10-10 09:45:10 +00:00
soren
d353df2fed Add offline command to usage() and man page. 2004-10-08 18:53:42 +00:00
mycroft
82f913eae9 Combine the listing of enabled/disabled features with the general listing of
features.
Add an "smart error-log" command to display the SMART error-log.
Add an "offline" command to run offline selftests.
2004-10-08 17:19:50 +00:00
erh
4ed261aea9 Add a couple cross-references to make similar ctl commands easier to find. 2004-09-16 18:02:27 +00:00
atatat
d96c6bad93 Add some more attribute "names", taken from
http://freepgs.com/smart/attributes.php

which gets them from smartmontools as maintained by Bruce Allen.

Note that some of these attributes should be "named" differently
depending on the drive (point for future work?), but at least now
there are names for some of the one that were missing them.
2004-09-10 04:11:09 +00:00
atatat
2a3ef0e821 White space police 2004-09-10 03:43:52 +00:00
wiz
2e3cdda09c No leading zeroes in date string. 2004-08-02 23:16:02 +00:00