freebsd-nq/share
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
..
colldef Fix code names according to KOI8-U RFC 2000-05-04 18:03:47 +00:00
dict Removed ex script left over from incomplete backout in previous commit. 1999-12-26 10:31:29 +00:00
doc Add the bufbio paper to the build. 2000-07-30 11:02:54 +00:00
examples Mention the non-English docs as well as ports. 2000-08-05 18:34:17 +00:00
info Update skeleton dir file from the latest install-info(1). 2000-01-24 16:18:12 +00:00
isdn Added $FreeBSD$ tags. 1999-11-16 17:16:18 +00:00
man Document three new control messages. 2000-08-07 18:53:42 +00:00
me $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
misc This is an overhaul of the mode page handling in camcontrol as well as 2000-08-08 06:24:17 +00:00
mk Add ${.CURDIR}/../../../.. to the list of places we look for the 2000-07-07 05:12:33 +00:00
mklocale Correct uk_UA.KOI8-U locale ALPHAs specification 2000-04-23 15:07:51 +00:00
skel o Apply asmodai's spelling commit from /etc/root to dot.cshrc in /share/skel 2000-07-15 03:24:18 +00:00
syscons Add versions of the UK keymaps with the key marked "Caps Lock" 2000-07-02 18:39:10 +00:00
tabset $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
termcap Fix linux console color capabilities 2000-08-01 20:56:21 +00:00
timedef Fix alt months 2000-07-05 21:02:45 +00:00
zoneinfo Merge from vendor branch. 2000-03-29 14:01:46 +00:00
Makefile Add a knob to turn off the mostly static docs (src/share/doc/). 2000-03-21 09:24:09 +00:00
Makefile.inc $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00