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
lukem
925bd672b3
Ensure that "setcache <mode>" doesn't use random data for "byte2"
...
("setcache <mode> save" DTRT).
Found by gcc -Wuninitialized.
Appease other -Wuninitialized warnings.
2005-06-02 00:13:10 +00:00
thorpej
df9803ce96
Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name
...
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding. Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes. Place items described
by the SCSI Primary Commands document into scsi_spc.h.
2005-02-21 00:29:06 +00:00
xtraeme
9bab889d46
Kill __P(), use ANSI function declarations; WARNS=3.
2005-02-05 13:37:39 +00:00
wiz
38b227d18c
New sentence, new line. Simplify macro usage.
2005-01-07 02:13:13 +00:00
ginsbach
661eb28d4c
Add command to read the defect data from a direct access device.
2005-01-07 02:08:34 +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
fair
76b92d1ae9
Increase the SCSI command timeout for device start & stop from 10
...
to 30 seconds, per PR 25734. I've seen this problem myself. I think
that scsictl should:
1. accept a timeout flag/parameter to set the timeout to an arbitrary
value other than the default.
2. support a verbose mode that would report the timeout value before
the command is started, and then report how long the command actually
took to complete, though I suppose the latter could also be done
by using time(1).
2004-06-01 02:40:00 +00:00
jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc
76b6c930a4
Make this compile after the recent changes to the kernel.
2003-09-08 09:05:08 +00:00
wiz
feb417a0db
Bump date for last.
2003-09-01 04:43:32 +00:00
mycroft
46743e2182
Add prevent/allow commands.
2003-09-01 04:34:16 +00:00
mycroft
4950c2c904
Add a flushcache command -- I need it for my DVD+RW.
2003-09-01 04:24:55 +00:00
agc
c2a3b5ec84
Add NetBSD RCS Ids.
2003-06-23 11:53:35 +00:00
itojun
fe09a0efcb
use strlcpy
2003-05-17 23:03:28 +00:00
soren
d7a359db41
Add missing \n in error.
2002-10-08 20:17:06 +00:00
wiz
09cbac4e7f
New sentence, new line. From Robert Elz.
2002-10-03 15:41:44 +00:00
petrov
1b08fb1305
Added debug command to support SCIOCDEBUG.
2002-09-26 06:15:38 +00:00
thorpej
0683880e19
* Add "getcache" and "setcache" commands to get/set basic cache
...
parameters (enables, really).
* Fix an error in the manpage.
* Shuffle some code to group things together better.
2002-09-03 16:56:05 +00:00
grant
6742cb1812
sweep of errx/warnx, remove unnecessary trailing \n
2002-07-20 08:36:17 +00:00
wiz
5081d82d22
Punctuation vs. markup nits, and use .Dq instead of double quotes.
2002-06-26 18:07:21 +00:00
mjacob
41194c0e70
Add a bunch of stuff from Bob Nestor that fixes format to allow one to
...
specify device logical blocksize.
Furthermore, it also adds an 'immediate' option, which then sends more modern
devices into formatting in the background. scsictl still waits around and
sends a TEST UNIT READY every 10 seconds and, based upon the sense data
it gets back after the invariable CHECK CONDITION, prints out a progress
indicator (based upon SKSV progress in the sense data).
While we're at it, add a 'tur', 'reserve', 'release', 'start' and 'stop'
functions to the device commands.
Fix a long standing bug in scsi_command- the value in retsts is an integral
value- not a bitmask.
2002-06-26 16:04:11 +00:00
tsutsui
93fc30d106
21600000 -> 6*60*60*1000 (timeout in six hours for format command)
2002-04-14 03:24:42 +00:00
wiz
875bfce8db
Sort sections, use standard section headers.
2001-11-16 11:26:53 +00:00
thorpej
b92e8081fa
Fixup scsi_mode_select().
2001-09-05 16:25:17 +00:00
wiz
e6b5422235
Fix a typo, and capitalize SCSI in one place.
2001-07-18 23:16:20 +00:00
bouyer
03fd5e671e
Add and document a 'detach' command.
2001-07-18 20:36:36 +00:00
wiz
73f545bb5b
Drop arguments of .Os.
2001-06-05 11:22:41 +00:00
bouyer
1047a6a764
Adapt for MODE SENSE/SELECT changes in kernel.
2001-05-15 15:11:02 +00:00
ad
bd8e0b62fb
Let '\377' be whitespace.
2001-04-17 13:31:00 +00:00
jdolecek
4fe147ddbf
xref se(4) now that the manpage is built and installed
2001-04-03 11:51:33 +00:00
wiz
dd7acb43b8
Don't xref nonexisting se(4).
2001-04-03 11:18:53 +00:00
ad
93e3741265
Remove superfluous newlines in calls to errx().
2001-04-01 14:59:56 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
ad
a42efe450c
Fix typo.
2001-02-11 13:04:22 +00:00
kleink
141d219082
Use .Pa.
2000-07-08 10:28:17 +00:00
jdolecek
5aa5c9fa83
Add a note about what and where is printed for 'scan' command.
...
Addresses bin/9227 by <johnr@spimageworks.com>
2000-03-07 19:27:11 +00:00
mycroft
3d346bb5e5
Increase the format timeout to 6 hours.
1999-10-27 22:29:06 +00:00
mycroft
f6624fbbee
Make `reassign' actually work.
1999-10-04 17:10:56 +00:00
ad
2829eb17d7
Make all' a synonym for the
any' keyword.
1999-09-28 23:32:04 +00:00
mjl
89fa8aef99
Clarify usage message.
1999-08-13 21:12:18 +00:00
hubertf
958ed46f74
Collect all little usage-messages spread around into one place,
...
and as a side effect, print the available commands (and their
usage) if no command is given on the command line.
Approved by Jason Thorpe.
1999-07-30 02:29:04 +00:00
thorpej
d6f9f0986b
Remove some extra spaces.
1999-03-15 23:20:23 +00:00
jwise
d3c740d725
Code to check if a cooked device was specified was failing even if the
...
cooked device was opened successfully. Also fix a typo.
Fixes second part of PR bin/6883 for Soren S. Jorvang <soren@t.dk>
1999-02-24 18:51:39 +00:00
thorpej
c1425134ae
Simple support for formatting a SCSI disk. This will be enhanced in
...
the near future.
1998-11-12 01:16:08 +00:00
thorpej
f5c016eea6
yoops, build manpage (duh)
1998-10-18 01:14:28 +00:00
thorpej
c0b197f941
Fix a thinko in the device opening code.
1998-10-17 05:08:27 +00:00
thorpej
d937146240
Oops, finish the description of the "scan" bus command.
1998-10-15 21:51:23 +00:00
thorpej
3c5483a351
Fix a couple of usage strings.
1998-10-15 21:49:09 +00:00
thorpej
c9a47c223b
scsictl(8) - a program to manipulate SCSI devices and busses. Currently
...
supports:
Devices: identify, reassign blocks, reset
Busses: reset, scan for devices
Coming soon, device formatting, mode page editing, device freeze/thaw, etc.
1998-10-15 21:44:39 +00:00