freebsd-nq/sys
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
..
amd64 Print RDSEED, ADX, and SMAP. 2013-04-18 01:21:44 +00:00
arm - Correct mispellings of word resource 2013-04-17 11:47:32 +00:00
boot The CELL fields can be various integer types depending on the platform 2013-04-07 05:53:42 +00:00
bsm Implement chflagsat(2) system call, similar to fchmodat(2), but operates on 2013-03-21 22:59:01 +00:00
cam Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
cddl DTrace: Revert r249367 2013-04-17 02:20:17 +00:00
compat Regen. 2013-04-02 05:30:52 +00:00
conf Implement a very basic multi-PHY aware switch device. 2013-04-19 17:50:38 +00:00
contrib Forcibly defining _KERNEL is bad idea. Toss some code so that ip_var.h 2013-04-08 19:20:27 +00:00
crypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
ddb
dev Implement a very basic multi-PHY aware switch device. 2013-04-19 17:50:38 +00:00
fs When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
gdb
geom Comment typo fix. 2013-04-16 22:42:40 +00:00
gnu/fs/reiserfs Garbage collect XFS bits which are now already completely disconnected 2013-03-02 15:33:54 +00:00
i386 - Correct spelling in comments 2013-04-17 11:56:11 +00:00
ia64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
isa
kern Include PID in the error message which is printed when the maxproc limit 2013-04-19 15:19:29 +00:00
kgssapi Piete.Brooks at cl.cam.ac.uk reported via email a crash which was 2012-12-18 00:25:48 +00:00
libkern Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
mips Add the static kernel boot environment, needed to actually boot this thing. 2013-04-17 18:26:01 +00:00
modules Fix the uart(4) module build. Without uart_dev_lpc the module cannot be loaded. 2013-04-19 05:46:16 +00:00
net Recover missing arp_ifinit() call. 2013-04-18 20:13:33 +00:00
net80211 Implement a utility function to return the current TX power cap for 2013-04-16 20:36:32 +00:00
netatalk
netgraph - Correct mispellings of the word necessary 2013-04-17 11:42:40 +00:00
netinet - Corrrect mispellings of word useful 2013-04-17 11:45:15 +00:00
netinet6 Fix build after r249543. 2013-04-16 16:59:29 +00:00
netipsec Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
netipx
netnatm
netpfil Fix ipfw rule validation partially broken by r248552. 2013-04-01 11:28:52 +00:00
netsmb Call make_dev_credf() rather than using the couple make_dev()/dev_ref(). 2013-03-09 16:58:19 +00:00
nfs Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nfsclient When an NFS unmount occurs, once vflush() writes the last dirty 2013-04-18 23:20:16 +00:00
nfsserver Move the NFS FHA (File Handle Affinity) code from sys/nfsserver to 2013-04-17 22:42:43 +00:00
nlm
ofed Check for SS_NBIO in the socket state field rather than socket buffer 2013-04-03 20:31:10 +00:00
opencrypto When porting XTS-related code from OpenBSD I forgot to update copyright (only 2013-02-20 22:59:53 +00:00
pc98 - Correct mispellings of word resource 2013-04-17 11:47:32 +00:00
pci - Corrrect mispellings of word useful 2013-04-17 11:45:15 +00:00
powerpc Generate a LINT for powerpc and for powerpc64. 2013-04-11 22:18:20 +00:00
rpc Fix a potential socket leak in the NFS server. If a client closes its 2013-04-08 19:03:01 +00:00
security Switch the vm_object mutex to be a rwlock. This will enable in the 2013-03-09 02:32:23 +00:00
sparc64 Remove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE' 2013-04-12 16:25:03 +00:00
sys Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
teken
tools Further refine the handling of stop signals in the NFS client. The 2013-02-21 19:02:50 +00:00
ufs - Correct mispellings of the word occurrence 2013-04-17 11:40:10 +00:00
vm When calculating the number of reserved nodes, discount the pages that will 2013-04-18 05:34:33 +00:00
x86 Introduce kern.timecounter.smp_tsc_adjust tunable (disabled by default) and 2013-04-18 17:07:04 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen
Makefile Remove netncp cscope entry missed in r248097 2013-03-12 14:21:52 +00:00