The NetBSD Project

CVS log for src/sbin/atactl/atactl.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / atactl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.76.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:48:55 2016 UTC (6 months, 3 weeks ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Tue Oct 4 21:37:46 2016 UTC (7 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored)

add SMART 249: Total Raw NAND Writes (1GiB units), sourced from
intel spec sheets.

Revision 1.76 / (download) - annotate - [select for diffs], Tue May 10 08:08:59 2016 UTC (12 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored)

update the micron smart codes for 247/248 to match data i found in
micron's "TN-FD-33: M510DC SSD SMART Implementation Introduction"
document.

these two values can be used to calculate the write amplication
factor:

   WAF = ( A247 + A248 ) / A247

Revision 1.75 / (download) - annotate - [select for diffs], Mon Sep 21 06:05:00 2015 UTC (20 months, 1 week ago) by mrg
Branch: MAIN
Changes since 1.74: +6 -2 lines
Diff to previous 1.74 (colored)

add smart IDs 210, 246, 247 and 248 (Micron):
+       { 210,          "Successful RAIN Recovery Count", NULL },
+       { 246,          "Total Host Sector Writes", NULL },
+       { 247,          "Contact Factory (Micron)", NULL },
+       { 248,          "Contact Factory (Micron)", NULL },

(eek i hope 247 and 248 don't move.)

Revision 1.66.4.2 / (download) - annotate - [select for diffs], Sun Dec 7 16:25:40 2014 UTC (2 years, 5 months ago) by martin
Branch: netbsd-6
Changes since 1.66.4.1: +32 -7 lines
Diff to previous 1.66.4.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by mrg in ticket #1206):
	sbin/atactl/atactl.c: revision 1.70 and 1.74

Don't use \t to align text columns.
Add a few attribute descriptions.
Add various S.M.A.R.T. status attributes.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Sun Nov 9 19:23:04 2014 UTC (2 years, 6 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.73: +24 -2 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Pull up following revision(s) (requested by mrg in ticket #196):
	sbin/atactl/atactl.c: revision 1.74
add a whole bunch of S.M.A.R.T. status i found around various sources.
now nothing on my new SSD is unknown, except #249.

Revision 1.74 / (download) - annotate - [select for diffs], Wed Oct 15 06:54:04 2014 UTC (2 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.73: +24 -2 lines
Diff to previous 1.73 (colored)

add a whole bunch of S.M.A.R.T. status i found around various sources.

now nothing on my new SSD is unknown, except #249.

Revision 1.66.8.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:24 2014 UTC (2 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.66.8.2: +21 -13 lines
Diff to previous 1.66.8.2 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.66.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:37:26 2014 UTC (3 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.66.2.2: +22 -13 lines
Diff to previous 1.66.2.2 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.73 / (download) - annotate - [select for diffs], Mon Dec 9 09:35:16 2013 UTC (3 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Fix typo ("then" instead of "than")

Revision 1.72 / (download) - annotate - [select for diffs], Wed Oct 30 15:37:49 2013 UTC (3 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.71: +11 -6 lines
Diff to previous 1.71 (colored)

-recognize CF cards by the magic value in inquiry data
-kill CFG_ATAPI_MASK, didn't see anything in the specs supporting
 that it exists

Revision 1.71 / (download) - annotate - [select for diffs], Tue Aug 6 19:13:13 2013 UTC (3 years, 9 months ago) by soren
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

TRIM showed up sometime between ATA-7 and ATA-8.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Aug 3 18:35:31 2013 UTC (3 years, 9 months ago) by soren
Branch: MAIN
Changes since 1.69: +10 -7 lines
Diff to previous 1.69 (colored)

Don't use \t to align text columns.
Add a few attribute descriptions.

Revision 1.66.8.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:03 2013 UTC (4 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.66.8.1: +160 -37 lines
Diff to previous 1.66.8.1 (colored) to branchpoint 1.66 (colored)

resync with head

Revision 1.66.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 19:06:10 2013 UTC (4 years, 3 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #830):
	sbin/atactl/atactl.c: revision 1.69
Decode 6Gbps signaling SATA capability in IDENTIFY DEVICE data.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Feb 8 03:58:36 2013 UTC (4 years, 3 months ago) by jakllsch
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored)

Decode 6Gbps signaling SATA capability in IDENTIFY DEVICE data.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:28 2013 UTC (4 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.66.2.1: +159 -37 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored)

sync with head

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jan 9 21:58:23 2013 UTC (4 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.67: +159 -37 lines
Diff to previous 1.67 (colored)

Add some ATA SECURITY commands to atactl(8).

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:48 2012 UTC (4 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.66: +7 -2 lines
Diff to previous 1.66 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:24 2012 UTC (4 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.66: +7 -2 lines
Diff to previous 1.66 (colored)

sync with head

Revision 1.67 / (download) - annotate - [select for diffs], Fri Oct 19 17:09:07 2012 UTC (4 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.66: +7 -2 lines
Diff to previous 1.66 (colored)

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.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Oct 31 15:26:11 2011 UTC (5 years, 6 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6
Changes since 1.65: +9 -9 lines
Diff to previous 1.65 (colored)

Constify structure pointed to by getataparams() return value.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Oct 31 14:50:10 2011 UTC (5 years, 6 months ago) by jakllsch
Branch: MAIN
Changes since 1.64: +2 -5 lines
Diff to previous 1.64 (colored)

Remove write-only variable.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Oct 31 14:44:07 2011 UTC (5 years, 6 months ago) by jakllsch
Branch: MAIN
Changes since 1.63: +21 -12 lines
Diff to previous 1.63 (colored)

Wrap or shorten lines longer than 80 columns.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Oct 24 19:15:42 2011 UTC (5 years, 7 months ago) by jakllsch
Branch: MAIN
Changes since 1.62: +35 -35 lines
Diff to previous 1.62 (colored)

use C99 fixed-width integer types

Revision 1.62 / (download) - annotate - [select for diffs], Mon Oct 24 19:13:03 2011 UTC (5 years, 7 months ago) by jakllsch
Branch: MAIN
Changes since 1.61: +40 -40 lines
Diff to previous 1.61 (colored)

constify

Revision 1.61 / (download) - annotate - [select for diffs], Mon Oct 24 15:56:17 2011 UTC (5 years, 7 months ago) by jakllsch
Branch: MAIN
Changes since 1.60: +23 -23 lines
Diff to previous 1.60 (colored)

change lines containing only whitespace to empty lines,
remove trailing whitespace

Revision 1.60 / (download) - annotate - [select for diffs], Sat Aug 27 16:12:54 2011 UTC (5 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.59: +65 -65 lines
Diff to previous 1.59 (colored)

staticfy. Use __dead.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jan 19 07:55:12 2011 UTC (6 years, 4 months ago) by nisimura
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

fix mislabelled S.M.A.R.T. lifetime temperature record reading.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 14 06:02:57 2011 UTC (6 years, 4 months ago) by nisimura
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

fix a mysterious indent lossage roaming around for last couple of years.

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:26:33 2010 UTC (7 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.52: +5 -5 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

sync to netbsd-5

Revision 1.57 / (download) - annotate - [select for diffs], Sat Mar 13 19:49:50 2010 UTC (7 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored)

add SMART code 187: "Reported uncorrect".  from smartmontools.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jan 25 01:24:11 2010 UTC (7 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.55: +60 -15 lines
Diff to previous 1.55 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jun 8 23:26:13 2009 UTC (7 years, 11 months ago) by jakllsch
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.54: +48 -15 lines
Diff to previous 1.54 (colored)

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.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 22:14:31 2009 UTC (7 years, 11 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.52: +5 -5 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #794):
	sbin/atactl/atactl.c: revision 1.54
make space for a trailing \0 in model,revision and serial buffers.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jun 6 09:18:55 2009 UTC (7 years, 11 months ago) by mlelstv
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

make space for a trailing \0 in model,revision and serial buffers.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:59 2009 UTC (8 years ago) by jym
Branch: jym-xensuspend
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.53 / (download) - annotate - [select for diffs], Mon Mar 16 12:52:32 2009 UTC (8 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

fix sign-compare issues

Revision 1.49.4.2 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:10 2008 UTC (8 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49.4.1: +55 -42 lines
Diff to previous 1.49.4.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

Sync with HEAD.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:21 2008 UTC (8 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.50: +57 -44 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Aug 25 00:45:56 2008 UTC (8 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.51: +6 -3 lines
Diff to previous 1.51 (colored)

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.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jul 24 05:21:12 2008 UTC (8 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.50: +53 -43 lines
Diff to previous 1.50 (colored)

Fix this to not need -Wno-pointer-sign. Make it pass -Wsign-compare too,
while I'm at it.

Revision 1.49.4.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:20 2008 UTC (8 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49: +2 -9 lines
Diff to previous 1.49 (colored)

Sync with HEAD.

Revision 1.49.6.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:50 2008 UTC (9 years ago) by yamt
Branch: yamt-pf42
Changes since 1.49: +2 -9 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

sync with head.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:07 2008 UTC (9 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.49: +2 -9 lines
Diff to previous 1.49 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:38:01 2008 UTC (9 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.46.2.1: +38 -5 lines
Diff to previous 1.46.2.1 (colored) next main 1.47 (colored)

sync with HEAD

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:55 2007 UTC (9 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Sync with HEAD.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Dec 15 16:03:29 2007 UTC (9 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored)

replace instances of __attribute__((__packed__)) with __packed

Revision 1.48 / (download) - annotate - [select for diffs], Sun Nov 18 17:48:21 2007 UTC (9 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs
Changes since 1.47: +36 -3 lines
Diff to previous 1.47 (colored)

From Marco Trillo (marcotrillo at gmail dot com):
Add Advanced power management in atactl(8)

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:12:28 2007 UTC (9 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

sync with HEAD

Revision 1.47 / (download) - annotate - [select for diffs], Sun Nov 4 02:34:27 2007 UTC (9 years, 6 months ago) by xtraeme
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Fix typo in SATA features: Perservation -> Preservation.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Aug 21 16:53:18 2007 UTC (9 years, 9 months ago) by bouyer
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.45: +34 -3 lines
Diff to previous 1.45 (colored)

Improved SATA support, from Jonathan A. Kollasch in PR bin/36772:
* use full 5-bit command queue depth that SATA supports
* decode SATA bits

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 16 00:45:19 2006 UTC (10 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, hpcarm-cleanup
Changes since 1.44: +45 -45 lines
Diff to previous 1.44 (colored)

add missing initializers

Revision 1.44 / (download) - annotate - [select for diffs], Sun Sep 24 08:33:30 2006 UTC (10 years, 8 months ago) by xtraeme
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

It's WDCC_SECURITY_FREEZE not WCDD_SECURITY_FREEZE.

Noticed by Sergey Svishchev.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Sep 23 15:24:24 2006 UTC (10 years, 8 months ago) by xtraeme
Branch: MAIN
Changes since 1.42: +45 -39 lines
Diff to previous 1.42 (colored)

Do not print "SMART not supported" when SMART was disabled, this
fixes PR bin/18666.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Feb 25 02:28:55 2006 UTC (11 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Fix some typos.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 29 08:47:22 2005 UTC (11 years, 6 months ago) by dbj
Branch: MAIN
Changes since 1.40: +7 -5 lines
Diff to previous 1.40 (colored)

fix byteswap of log revision structure check, improve error printout

Revision 1.40 / (download) - annotate - [select for diffs], Tue Nov 29 08:06:13 2005 UTC (11 years, 6 months ago) by dbj
Branch: MAIN
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

add newline termination on error message

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jun 27 01:00:05 2005 UTC (11 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Fri Apr 15 22:07:53 2005 UTC (12 years, 1 month ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.37: +66 -30 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Pull up revision 1.38 (requested by drochner in ticket #156):
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.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Apr 12 11:40:46 2005 UTC (12 years, 1 month ago) by drochner
Branch: MAIN
Changes since 1.37: +66 -30 lines
Diff to previous 1.37 (colored)

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.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jan 20 15:36:02 2005 UTC (12 years, 4 months ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.36: +3 -4 lines
Diff to previous 1.36 (colored)

Kill __P(), remove main() prototype; WARNS=2

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jan 17 13:00:32 2005 UTC (12 years, 4 months ago) by dogcow
Branch: MAIN
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

Add missing SMART attribute (6, Read channel margin)

Revision 1.35 / (download) - annotate - [select for diffs], Wed Nov 17 15:40:50 2004 UTC (12 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.34: +14 -14 lines
Diff to previous 1.34 (colored)

* 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.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 8 18:53:42 2004 UTC (12 years, 7 months ago) by soren
Branch: MAIN
Changes since 1.33: +6 -3 lines
Diff to previous 1.33 (colored)

Add offline command to usage() and man page.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Oct 8 17:19:50 2004 UTC (12 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +213 -37 lines
Diff to previous 1.32 (colored)

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.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Sep 10 04:11:09 2004 UTC (12 years, 8 months ago) by atatat
Branch: MAIN
Changes since 1.31: +37 -14 lines
Diff to previous 1.31 (colored)

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.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 10 03:43:52 2004 UTC (12 years, 8 months ago) by atatat
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

White space police

Revision 1.30 / (download) - annotate - [select for diffs], Sun Aug 1 21:41:49 2004 UTC (12 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.29: +57 -14 lines
Diff to previous 1.29 (colored)

Add infrastructure for ATA bus commands, and implement the reset bus command.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Mar 28 01:23:15 2004 UTC (13 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.28: +13 -12 lines
Diff to previous 1.28 (colored)

Print the raw SMART values always.  These are important in a bunch of cases --
e.g. for the load cycle count and power-cycle count.

Also, consistently treat the raw values as unsigned.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 14 20:11:24 2004 UTC (13 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

It's extension, not extention. From Miod Vallat (miod at online fr).

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:32 2004 UTC (13 years, 4 months ago) by jmmv
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Dec 30 19:31:06 2003 UTC (13 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

No longer need to include <dev/ic/wdcreg.h>

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 30 19:12:35 2003 UTC (13 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

Don't need to include atavar.h

Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 20 20:03:20 2003 UTC (13 years, 5 months ago) by lha
Branch: MAIN
Changes since 1.23: +198 -32 lines
Diff to previous 1.23 (colored)

Extend SMART status to print temperature. Add support for printing
selftest log (but no code it start selftest yet).

Revision 1.23 / (download) - annotate - [select for diffs], Sun Nov 30 14:07:49 2003 UTC (13 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.22: +35 -2 lines
Diff to previous 1.22 (colored)

display more capabilities for "identify" command.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 21 02:30:03 2003 UTC (13 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.21: +7 -7 lines
Diff to previous 1.21 (colored)

Fix various uses of NULL that should have been 0.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 23 11:53:35 2003 UTC (13 years, 11 months ago) by agc
Branch: MAIN
Changes since 1.20: +7 -1 lines
Diff to previous 1.20 (colored)

Add NetBSD RCS Ids.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Sep 13 18:31:41 2002 UTC (14 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.19: +19 -25 lines
Diff to previous 1.19 (colored)

Allow the enable command if SMART is not enabled.  Duh.
Also, just blindly allow the disable command.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 15 19:17:04 2002 UTC (14 years, 9 months ago) by soren
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Typo.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 15 18:57:51 2002 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Correct the check for whether SMART is enabled.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 6 01:16:56 2002 UTC (14 years, 9 months ago) by soren
Branch: MAIN
Changes since 1.16: +33 -5 lines
Diff to previous 1.16 (colored)

Print symbolic names for SMART STATUS attributes.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Aug 6 00:00:21 2002 UTC (14 years, 9 months ago) by soren
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

s/smart info/smart status/ to better fit in with the standard's feature set.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Aug 5 23:29:29 2002 UTC (14 years, 9 months ago) by soren
Branch: MAIN
Changes since 1.14: +214 -1 lines
Diff to previous 1.14 (colored)

Add ATA SMART reporting support from Ben Collver in kern/12787.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 7 16:33:50 2001 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Use the command set/feature *enabled* words when displaying what
command sets and features are enabled.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Sep 7 02:17:30 2001 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.12: +18 -32 lines
Diff to previous 1.12 (colored)

ANSIfy.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Aug 28 15:36:54 2001 UTC (15 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

errx() prints the newline for you.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:17 2001 UTC (16 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -4 lines
Diff to previous 1.10 (colored)

convert to use getprogname()

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Wed Oct 18 00:39:42 2000 UTC (16 years, 7 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.6: +11 -11 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pullup sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Tue Oct 10 22:24:34 2000 UTC (16 years, 7 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.4: +11 -11 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up revision 1.10 (requested by is):
  Format string cleanup.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 10 20:24:50 2000 UTC (16 years, 7 months ago) by is
Branch: MAIN
Changes since 1.9: +11 -11 lines
Diff to previous 1.9 (colored)

Format string cleanups by Bill Sommerfeld.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 13 11:24:40 2000 UTC (16 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Back out previous two - didn't follow the code properly.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 13 11:19:54 2000 UTC (16 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Fix previous. From Micheal Eriksson <eramore@era-t.ericsson.se>.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 6 14:01:06 2000 UTC (16 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

printf fmt string without %s, from OpenBSD.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:21 1999 UTC (17 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.4: +26 -30 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up to last week's -current.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 1 02:30:58 1999 UTC (17 years, 7 months ago) by soren
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Fix typo.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 29 23:07:43 1999 UTC (17 years, 7 months ago) by soren
Branch: MAIN
Changes since 1.4: +25 -29 lines
Diff to previous 1.4 (colored)

Sync with scsictl: rearrange usage() and print list of commands.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 24 18:49:14 1999 UTC (18 years, 3 months ago) by jwise
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: wrstuden-devbsize, netbsd-1-4
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Code to check for cooked device names was failing even if it succeeded in
opening the cooked device.  Also some typos.

Fixes part of PR bin/6883 from Soren S. Jorvang.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 23 23:02:58 1998 UTC (18 years, 6 months ago) by kenh
Branch: MAIN
Changes since 1.2: +48 -1 lines
Diff to previous 1.2 (colored)

Implement a new command: "checkpower".  Returns the current power management
mode of an ATA device.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 20 18:27:40 1998 UTC (18 years, 6 months ago) by kenh
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix a warning that shows up on big-endian machines.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 19 23:55:00 1998 UTC (18 years, 6 months ago) by kenh
Branch: MAIN

wdctl -> atactl

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>