freebsd-dev/bin
Kenneth D. Merry 21b6ee96fc Update chio(1) and ch(4) to support reporting element designators.
This allows mapping a tape drive in a changer (as reported by
'chio status') to a sa(4) driver instance by comparing the
serial numbers.

The designators can be ASCII (which is printed out directly), binary
(which is printed in hex format) or UTF-8, which is printed in either
native UTF-8 format if the terminal can support it, or in %XX notation
for non-ASCII characters.  Thanks to Hiroki Sato <hrs@> for the
explaining UTF-8 printing and example UTF-8 printing code.

chio.h:		Modify the changer_element_status structure to add new
		fields and definitions from the SMC3r16 spec.

		Rename the original CHIOGSTATUS ioctl to OCHIOGTATUS and
		define a new CHIOGSTATUS ioctl.

		Clean up some tab/space issues.

chio.c: 	For the 'status' subcommand, print the designator field
		if it is supplied by a device.

scsi_ch.h:	Add new flags for DVCID and CURDATA to the READ
		ELEMENT STATUS command structure.

		Add a read_element_status_device_id structure
		for the data fields in the new standard. Add new
		unions, dt_or_obsolete and voltage_devid, to hold
		and address data from either SCSI-2 or newer devices.

scsi_ch.c:	Implement support for fetching device IDs with READ
		ELEMENT STATUS data.

		Add new arguments to scsi_read_element_status() to
		allow the user to request the DVCID and CURDATA bits.
		This isn't compiled into libcam (it's only an internal
		kernel interface), so we don't need any special
		handling for the API change.

		If the user issues the new CHIOGSTATUS ioctl, copy all of
		the available element status data out.  If he issues the
		OCHIOGSTATUS ioctl, we don't copy the new fields in the
		structure.

		Fix a bug in chopen() that would result in the peripheral
		never getting unheld if chgetparams() failed.

Sponsored by:	Spectra Logic
Submitted by:	Po-Li Soong
MFC After:	1 week
2013-04-19 20:03:51 +00:00
..
cat Fix date. 2013-01-29 20:01:47 +00:00
chflags - Make 'flags' argument to chflags(2), fchflags(2) and lchflags(2) of type 2013-03-21 22:44:33 +00:00
chio Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
chmod Update sticky(7) cross references. 2011-05-13 16:29:57 +00:00
cp Add a few examples. 2013-03-15 20:12:54 +00:00
csh Update to tcsh 6.18.01. 2012-02-22 03:36:15 +00:00
date Fix socket calls on error post-r243965. 2012-12-21 15:54:13 +00:00
dd IFP4 change 222074. 2013-04-03 19:19:45 +00:00
df Don't time travel back and use a present date. 2013-01-25 18:47:16 +00:00
domainname
echo echo(1): Clarify portability and mention literal "--" handling. 2010-11-12 22:43:40 +00:00
ed Fix compiling ed w/ WITHOUT_ED_CRYPTO... These variables aren't 2013-03-23 19:04:57 +00:00
expr Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
getfacl Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
hostname
kenv I forgot to bump the manpage date. 2012-05-12 02:49:40 +00:00
kill kill: Note that this is used both as a normal program and a shell builtin. 2011-03-01 21:48:22 +00:00
ln Fix wording nit. 2012-12-28 22:06:33 +00:00
ls Add a few examples. 2013-03-15 20:12:54 +00:00
mkdir Add a few examples. 2013-03-15 20:12:54 +00:00
mv - Make 'flags' argument to chflags(2), fchflags(2) and lchflags(2) of type 2013-03-21 22:44:33 +00:00
pax Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
pkill Make sys_signame upper case. 2011-02-04 16:40:50 +00:00
ps Add a few examples. 2013-03-15 20:12:54 +00:00
pwait Use a different way to silence clang analyzer as done in r245494 by 2013-01-16 18:15:25 +00:00
pwd
rcp Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
realpath Make `realpath'' behave like `realpath .''. 2011-06-21 19:34:57 +00:00
rm Add a few examples. 2013-03-15 20:12:54 +00:00
rmail
rmdir Add a few examples. 2013-03-15 20:12:54 +00:00
setfacl Mention that read_attributes, write_attributes, read_acl and write_acl 2013-04-01 13:17:28 +00:00
sh sh: Don't modify exit status when break/continue/return passes !. 2013-04-12 15:19:35 +00:00
sleep Document the new argument parser for sleep(1) and SIGINFO behaviour. 2010-08-02 10:59:23 +00:00
stty stty: Mark usage() __dead2. 2012-07-15 21:12:22 +00:00
sync
test Enhance test(1) by adding provision to compare any combination of the 2013-02-25 19:05:40 +00:00
uuidgen Mention the upper hard limit for -n option. Patch slightly modified 2012-05-23 16:19:19 +00:00
Makefile Merge from tbemd: 2010-09-13 01:29:51 +00:00
Makefile.inc