Subject: CVS commit: basesrc/sbin/scsictl
To: None <source-changes@netbsd.org>
From: Matthew Jacob <mjacob@netbsd.org>
List: source-changes
Date: 06/26/2002 19:04:16
Module Name:	basesrc
Committed By:	mjacob
Date:		Wed Jun 26 16:04:15 UTC 2002

Modified Files:
	basesrc/sbin/scsictl: extern.h scsi_subr.c scsictl.8 scsictl.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 basesrc/sbin/scsictl/extern.h
cvs rdiff -r1.5 -r1.6 basesrc/sbin/scsictl/scsi_subr.c
cvs rdiff -r1.13 -r1.14 basesrc/sbin/scsictl/scsictl.8
cvs rdiff -r1.15 -r1.16 basesrc/sbin/scsictl/scsictl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.