Commit Graph

74 Commits

Author SHA1 Message Date
mlelstv 100b2229a1 Add REPORT_LUNS command. 2022-08-21 12:44:16 +00:00
andvar 492c086f0a s/begining/beginning/ in comments and messages. 2022-01-24 09:14:36 +00:00
tsutsui 0ba0846790 Fix format. 2017-03-08 11:45:14 +00:00
wiz 34aff94565 Whitespace, sort. 2016-11-20 09:38:11 +00:00
dholland 24da7c40a9 Add crossreference to scsi(4) per note in PR 9627. 2016-11-20 07:04:14 +00:00
wiz 39a1754c2e Bump date for previous.
Use more and more appropriate markup while here.
2016-11-19 23:37:33 +00:00
flxd b0be1b67cd Add "getrealloc" and "setrealloc" commands to get/set automatic reallocation
parameters/enables for error recovery, similar to {get,set}cache.
Many old SCSI disks shipped with reallocation disabled, albeit supporting it.
Minor (cosmetic) fixup of scsi_disk_pages while there.
Based upon code in PR bin/29165 by Greg A. Woods.
OK christos@
2016-11-19 08:43:40 +00:00
snj f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
christos f27e0a25cc Document debug 2013-03-29 21:46:32 +00:00
jakllsch 7528c09b60 We supply data with the FORMAT UNIT command, so tell the kernel which
direction it is to go (write).
2013-01-12 02:52:59 +00:00
jakllsch 8c34b2a378 take sizeof actual symbol we are memsetting 2013-01-12 02:50:09 +00:00
jakllsch 9211d76436 make a bunch of globals static 2012-11-03 19:26:52 +00:00
jakllsch 7f13651aab drop write-only variable 2012-11-03 19:14:53 +00:00
jakllsch 68ceb36701 Prevent stack buffer overflow when copying too-large-CDB into request. 2012-02-21 02:22:54 +00:00
jakllsch 1355b3bb87 constify command data argument to scsi_command(). 2012-02-21 02:19:41 +00:00
joerg baa8e84b6f Use __dead 2011-08-29 14:34:58 +00:00
mrg d993dd3b69 when checking for SKSV data, use the same test as before. fixes an
always true conditional GCC 4.5 found, and is also a real bug fix.
2011-06-22 05:18:03 +00:00
joerg 39a0f733b0 Decide on printing an int as int and not as short. 2011-05-24 12:04:18 +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
dyoung a34525837f Do not #include <sys/device.h> from userland. 2008-02-11 20:29:15 +00:00
christos 18d6bea575 PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
fix buffer overflow
2008-02-02 17:07:04 +00:00
wiz a0ab6bc85b Bump date for previous. 2007-01-23 20:34:17 +00:00
bouyer e47fe82adf Kimura Fuyuki, bin/35216: add a setspeed command, to set the highest speed
that the optical drive should use for reading data.
2007-01-22 20:56:46 +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
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