FreeBSD src
Go to file
Kenneth D. Merry 492a2ef556 Add task attribute support to camcontrol(8).
Users can use the new generic argument, -Q task_attr, to specify a task
attribute (simple, ordered, head of queue, aca) for the commands issued.
The the default is simple, which works with all SCSI devices that support
tagged queueing.

This will mostly be useful for debugging target behavior in certain
situations.

You can try it out by compiling CTL with CTL_IO_DELAY turned on (in
sys/cam/ctl/ctl_io.h) and then do something like this with one of the CTL
LUNs:

ctladm delay 0:0 -l done -t 10
camcontrol tur da34 -v

And at then before the 10 second timer is up, in another terminal:

camcontrol inquiry da34 -Q ordered -v

The Inquiry should complete just after the TUR completes.  Ordinarily
it would complete first because of the delay injection, but because the
task attribute is set to ordered in this case, CTL holds it up until the
previous command has completed.

sbin/camcontrol/camcontrol.c:
	Add the new generic argument, -Q, which allows the user to specify
	a SCSI task attribute.  The user can specify task attributes by
	name or numerically.

	Add a new task_attr arguments to SCSI sub-functions.

sbin/camcontrol/attrib.c,
sbin/camcontrol/camcontrol.h,
sbin/camcontrol/fwdownload.c,
sbin/camcontrol/modeedit.c,
sbin/camcontrol/persist.c,
sbin/camcontrol/timestamp.c,
sbin/camcontrol/zone.c:
	Add the new task_attr argument to SCSI sub-functions.

sbin/camcontrol/camcontrol.8:
	Document the new -Q option, and add an example.

Sponsored by:	Spectra Logic
MFC after:	1 week
2017-02-17 20:04:22 +00:00
bin Use uintmax_t to print st_nlink. 2017-02-16 06:32:39 +00:00
cddl When patching USDT probes, use non-unique names for aliases of weak symbols. 2017-02-10 02:01:32 +00:00
contrib Pull in r285478 from upstream compiler-rt trunk (by Saleem Abdulrasool): 2017-02-16 21:03:43 +00:00
crypto Merge OpenSSL 1.0.2k. 2017-01-26 19:10:29 +00:00
etc MFhead@r313360 2017-02-07 01:33:39 +00:00
gnu Use SRCTOP/OBJTOP and simplify output using :H instead of "../" for directory 2017-02-11 20:12:54 +00:00
include Remove outdated claim. 2017-02-16 20:30:55 +00:00
kerberos5 Conditionalize adding ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et to ETSRCS 2017-01-02 19:03:01 +00:00
lib Publish fp[get][set]sticky() for ARMv6. 2017-02-17 13:49:46 +00:00
libexec Handle protected symbols in rtld. 2017-02-09 23:33:06 +00:00
release Fix the hardware.html build. 2017-02-16 22:29:37 +00:00
rescue Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
sbin Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
secure Remove bdes(1) 2017-02-06 08:27:19 +00:00
share Remove ahb references as well as 1640 info in aha.4 2017-02-17 06:49:54 +00:00
sys [asmc] Add support for MacBook Pro 11,2 2017-02-17 18:49:18 +00:00
targets Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
tests Revert r313565 -- :mmap__bad_arguments passes again after r313655 2017-02-11 20:31:57 +00:00
tools Update OLD_DIRS for various targets so that some of the branches of 2017-02-17 20:02:40 +00:00
usr.bin sort(1): Remove unneeded initializations. 2017-02-17 19:53:20 +00:00
usr.sbin Add 0-8 as shortcuts for jumping to menu items in the hardening menu. 2017-02-16 19:58:02 +00:00
.arcconfig callsign isn't required anymore 2016-09-29 06:19:45 +00:00
.arclint phabricator related changes: 2015-04-20 20:33:22 +00:00
COPYRIGHT Bump copyright year. 2016-12-31 12:41:42 +00:00
LOCKS
MAINTAINERS Remove myself from kern_timeout.c yeah! 2016-07-27 20:37:32 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
Makefile.inc1 Remove LOCAL_LIB_DIRS warning added in r275839. 2017-02-04 02:15:49 +00:00
Makefile.libcompat Use cross-NM (XNM) in compat32 build 2017-01-27 03:43:18 +00:00
ObsoleteFiles.inc Add ObsoleteFiles entries for bdes(1) missed in r313329 2017-02-06 10:51:53 +00:00
README Import OpenSSL 1.0.2k. 2017-01-26 18:32:12 +00:00
UPDATING Note EISA and MCA bus removal 2017-02-17 06:22:00 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html