freebsd-nq/sys/cam/scsi
Kelly Yancey 7e32b20d95 This is an overhaul of the mode page handling in camcontrol as well as
related patches. These include:
	* Mode page editting can be scripted. This involves two
	  things: first, if stdin is not a tty, changes are read from
	  stdin rather than invoking $EDITOR. Second, and more
	  importantly, not all modepage entries must be included in the
	  change set. This means that camcontrol can now gracefully handle
	  more intrusive editting from the $EDITOR, including removal or
	  rearrangement of lines. It also means that you can do stuff
	  like:
		# echo "WCE: 1" | camcontrol modepage da3 -m 8 -e
		# newfs /dev/da3
		# echo "WCE: 0" | camcontrol modepage da3 -m 8 -e
	* Range-checking on user-supplied input values. modeedit.c now
	  uses the field width specifiers to determine the maximum
	  allowable value for a field. If the user enters a value larger
	  than the maximum, it clips the value to the max and warns the
	  user. This also involved patching cam_cmdparse.c to be more
	  consistent with regards to the "count" parameter to arg_put
	  (previously is was the length of strings and 1 for all integral
	  types). The cam_cdbparse(3) man page was also updated to reflect
	  the revised semantics.
	* In the process, I removed the 64 entry limit on mode pages (not
	  that we were even close to hitting that limit). This was a nice
	  side-effect of the other changes.
	* Technically, the new mode editting functionality allows editting
	  of character array entries in mode pages (type 'c' or 'z'),
	  however since buff_encode doesn't grok them it is currently
	  useless.
	* Camcontrol gained two new options related to mode pages: -l and
	  -b. The former lists all available mode pages for a given
	  device. The latter forces mode page display in binary format
	  (the default when no mode page definition was found in
	  scsi_modes).
	* Added support for mode page names to scsi_modes. Allows names to
	  be displayed alongside mode numbers in the mode page
	  listing. Updated scsi_modes to use the new functionality. This
	  also adds the semicolon into the scsi_modes syntax as an
	  optional mode page definition terminator. This is needed to name
	  pages without providing a page format definition.
	* Updated scsi_all.h to include a structure describing mode page
	  headers.
	* Added $FreeBSD$ line to scsi_modes.

Inspired by:	dwhite
Reviewed by:	ken
2000-08-08 06:24:17 +00:00
..
scsi_all.c scsi_all.c: 2000-07-18 19:48:58 +00:00
scsi_all.h This is an overhaul of the mode page handling in camcontrol as well as 2000-08-08 06:24:17 +00:00
scsi_cd.c Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
scsi_cd.h Add support for the DVD ioctl interface. 2000-05-12 03:36:02 +00:00
scsi_ch.c Remove unneeded <sys/buf.h> includes. 2000-04-18 15:15:39 +00:00
scsi_ch.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
scsi_da.c Support for the Panasonic / Matshita USB FDD. 2000-07-31 12:40:26 +00:00
scsi_da.h Implement a new camcontrol function, 'camcontrol format'. 2000-05-21 23:57:52 +00:00
scsi_message.h scsi_all.c: 2000-07-18 19:48:58 +00:00
scsi_pass.c Separate the struct bio related stuff out of <sys/buf.h> into 2000-05-05 09:59:14 +00:00
scsi_pass.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_pt.c Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
scsi_pt.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_sa.c Some prettifying for the quirk comments. 2000-05-09 04:54:10 +00:00
scsi_sa.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_ses.c Fix breakage where we never were attaching SES devices because inq_len 2000-06-18 04:19:08 +00:00
scsi_ses.h Move the kernel specific stuff into scsi_ses.c. Redo the ioctls 2000-01-15 22:40:04 +00:00
scsi_targ_bh.c Don't, when doing cam_fill_ctio, add a SIMPLE Q tag unless 2000-07-14 21:09:25 +00:00
scsi_target.c Preserve CAM_DIS_DISCONNECT as passed up from SIM (like 2000-07-17 01:45:51 +00:00
scsi_targetio.h Add a TARGIODEBUG ioctl to allow for CAM_DEBUG_PERIPH tracing on 2000-07-14 19:42:47 +00:00