History log of /freebsd-10-stable/bin/chio/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
307403 16-Oct-2016 sevan

MFC r267667:
use .Mt to mark up email addresses consistently (part1)

PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>


chio.1
/freebsd-10-stable/bin/freebsd-version/freebsd-version.1
/freebsd-10-stable/bin/pkill/pkill.1
/freebsd-10-stable/bin/setfacl/setfacl.1
/freebsd-10-stable/games/morse/morse.6
/freebsd-10-stable/games/random/random.6
/freebsd-10-stable/sbin/adjkerntz/adjkerntz.8
/freebsd-10-stable/sbin/atm/atmconfig/atmconfig.8
/freebsd-10-stable/sbin/camcontrol/camcontrol.8
/freebsd-10-stable/sbin/dhclient/dhclient-script.8
/freebsd-10-stable/sbin/dhclient/dhclient.8
/freebsd-10-stable/sbin/dhclient/dhclient.conf.5
/freebsd-10-stable/sbin/dhclient/dhclient.leases.5
/freebsd-10-stable/sbin/dhclient/dhcp-options.5
/freebsd-10-stable/sbin/ffsinfo/ffsinfo.8
/freebsd-10-stable/sbin/fsirand/fsirand.8
/freebsd-10-stable/sbin/gbde/gbde.8
/freebsd-10-stable/sbin/geom/class/cache/gcache.8
/freebsd-10-stable/sbin/geom/class/concat/gconcat.8
/freebsd-10-stable/sbin/geom/class/eli/geli.8
/freebsd-10-stable/sbin/geom/class/journal/gjournal.8
/freebsd-10-stable/sbin/geom/class/label/glabel.8
/freebsd-10-stable/sbin/geom/class/mirror/gmirror.8
/freebsd-10-stable/sbin/geom/class/mountver/gmountver.8
/freebsd-10-stable/sbin/geom/class/multipath/gmultipath.8
/freebsd-10-stable/sbin/geom/class/nop/gnop.8
/freebsd-10-stable/sbin/geom/class/part/gpart.8
/freebsd-10-stable/sbin/geom/class/raid/graid.8
/freebsd-10-stable/sbin/geom/class/raid3/graid3.8
/freebsd-10-stable/sbin/geom/class/sched/gsched.8
/freebsd-10-stable/sbin/geom/class/shsec/gshsec.8
/freebsd-10-stable/sbin/geom/class/stripe/gstripe.8
/freebsd-10-stable/sbin/geom/class/virstor/gvirstor.8
/freebsd-10-stable/sbin/geom/core/geom.8
/freebsd-10-stable/sbin/ggate/ggatec/ggatec.8
/freebsd-10-stable/sbin/ggate/ggated/ggated.8
/freebsd-10-stable/sbin/ggate/ggatel/ggatel.8
/freebsd-10-stable/sbin/growfs/growfs.8
/freebsd-10-stable/sbin/gvinum/gvinum.8
/freebsd-10-stable/sbin/hastctl/hastctl.8
/freebsd-10-stable/sbin/hastd/hast.conf.5
/freebsd-10-stable/sbin/hastd/hastd.8
/freebsd-10-stable/sbin/ipfw/ipfw.8
/freebsd-10-stable/sbin/kldconfig/kldconfig.8
/freebsd-10-stable/sbin/kldload/kldload.8
/freebsd-10-stable/sbin/kldstat/kldstat.8
/freebsd-10-stable/sbin/kldunload/kldunload.8
/freebsd-10-stable/sbin/md5/md5.1
/freebsd-10-stable/sbin/mdconfig/mdconfig.8
/freebsd-10-stable/sbin/mount/mount.conf.8
/freebsd-10-stable/sbin/mount_cd9660/mount_cd9660.8
/freebsd-10-stable/sbin/mount_msdosfs/mount_msdosfs.8
/freebsd-10-stable/sbin/mount_unionfs/mount_unionfs.8
/freebsd-10-stable/sbin/natd/natd.8
/freebsd-10-stable/sbin/newfs_msdos/newfs_msdos.8
/freebsd-10-stable/sbin/newfs_nandfs/newfs_nandfs.8
/freebsd-10-stable/sbin/nos-tun/nos-tun.8
/freebsd-10-stable/sbin/nvmecontrol/nvmecontrol.8
/freebsd-10-stable/sbin/rcorder/rcorder.8
/freebsd-10-stable/sbin/reboot/nextboot.8
/freebsd-10-stable/sbin/recoverdisk/recoverdisk.1
/freebsd-10-stable/sbin/sconfig/sconfig.8
/freebsd-10-stable/share/examples/mdoc/example.1
/freebsd-10-stable/share/examples/mdoc/example.3
/freebsd-10-stable/share/examples/mdoc/example.4
/freebsd-10-stable/share/examples/mdoc/example.9
/freebsd-10-stable/share/examples/scsi_target/scsi_target.8
/freebsd-10-stable/tools/tools/ether_reflect/ether_reflect.1
/freebsd-10-stable/tools/tools/fixwhite/fixwhite.1
/freebsd-10-stable/tools/tools/mcgrab/mcgrab.1
/freebsd-10-stable/tools/tools/mctest/mctest.1
/freebsd-10-stable/tools/tools/sysdoc/sysdoc.sh
/freebsd-10-stable/tools/tools/vimage/vimage.8
306971 10-Oct-2016 sevan

MFC r306714:
Document where chio(1) originated from & which version of FreeBSD first
included it.

PR: 211776
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D8104

306968 10-Oct-2016 sevan

MFC r306584:
Move the description of CHANGER variable to ENVIRONMENT section rather than
in the DESCRIPTION section.
From OpenBSD src/bin/chio/chio.1 r1.23

PR: 212158
Approved by: bjk
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D8117

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


249658 19-Apr-2013 ken

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


228423 11-Dec-2011 ed

Add static keywords to chio(1).

All other global variables are already marked static, so for consistency
sake, add them to these three arrays as well.


208730 02-Jun-2010 uqs

Zero struct before reading from it

PR: 140384
Found by: clang static analyzer
MFC after: 3 weeks


184484 30-Oct-2008 joerg

When running a "chio return" operation using a physical source unit
rather than a voltag name, do not set the CESR_VOLTAGS flags in the
CHIOGSTATUS command requesting the current status. As voltags are an
optional feature that must be handled as "reserved" by media changers
not implementing the feature, always setting CESR_VOLTAGS resulted in
the command being aborted with an `Invalid field in CDB', and
consequently the "chio return" failed, for media changers that do not
support voltags.

MFC after: 1 week


140902 27-Jan-2005 delphij

Don't specify SRCS= when it can be obtained from PROGS=


140353 16-Jan-2005 ru

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


140169 13-Jan-2005 ru

Removed harmful empty lines that crept in during the copyright
header update.


139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


131484 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


114433 01-May-2003 obrien

Quiet warnings about copyright[].


112544 24-Mar-2003 charnier

The .Nm utility


108533 01-Jan-2003 schweikh

Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.


99205 01-Jul-2002 dwmalone

Remove double #include <sys/cdef.h> and __FBSDID.

PR: 40053
Submitted by: Dan Lukes <dan@obluda.cz>


99109 30-Jun-2002 obrien

Consistently use __FBSDID


93101 24-Mar-2002 markm

Replace use of __progname with the functionally identical and more
acceptable getprogname(3).


91665 05-Mar-2002 imp

Use ANSI-99 int names (uintXX_t) over traditional BSD int names
(u_intXX_t).


91086 22-Feb-2002 markm

Fix a boatload of warnings inspired by lint, a commercial lint
and WARNS=4.


90107 02-Feb-2002 imp

Modernization effort for bin/c*:

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.

Approved by: arch@, new style(9)


87323 04-Dec-2001 obrien

Default to WARNS=2. Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by: mike


81462 10-Aug-2001 ru

mdoc(7) police: join split punctuation to macro calls.


79754 15-Jul-2001 dd

Remove whitespace at EOL.


79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


79253 04-Jul-2001 mikeh

Fix warnings on alpha and re-enable WARNS=2.

Submitted by: Mike Barcroft <mike@q9media.com>


79122 03-Jul-2001 mikeh

Argh...this isn't ready for WARNS=2 on alpha.


79121 03-Jul-2001 mikeh

Constify and lockdown with WARNS=2.

Submitted by: Mike Barcroft <mike@q9media.com>
MFC after: 2 weeks


76812 18-May-2001 ru

Removed -I${.CURDIR}/.../sys from CFLAGS.


70249 21-Dec-2000 ru

mdoc(7) police: simplify construct.


69026 22-Nov-2000 ru

log


68754 15-Nov-2000 ben

more removal of trailing periods from SEE ALSO.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


66073 19-Sep-2000 ru

Use .Cm macro where appropriate.


66064 19-Sep-2000 sheldonh

Fix horrendous abuse of the Nm and Pa mdoc macros, and remove troff
bold markers \fB and \fR.


66019 18-Sep-2000 ken

Add two new features to chio(1):
- The ability to specify elements by volume tag instead of their actual
physical location. e.g., instead of:
chio move slot 3 slot 4
you would now use:
chio move voltag FOO slot 4

- The ability to return an element to its previous location, as specified
by the source element. e.g., instead of:
chio move drive 0 slot 4
you would now use:
chio return drive 0
or
chio return voltag FOO

These features will obviously only work with changers that support volume
tags and/or source element IDs. chio(1) should fail gracefully if the user
attempts to use these new features and the source element ID or volume tag
are not found.

PR: bin/21178
Submitted by: "C. Stephen Gunn" <csg@waterspout.com>
Reviewed by: ken


64692 16-Aug-2000 imp

Don't explicitly declare optarg and optind. These are declared in
unistd.h, which is already included.


50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


48983 22-Jul-1999 kris

Correct some style issues in my previous commit.

Submitted by: bde


48073 21-Jun-1999 kris

Undo some of the reversions from previous revisions, and attempt to
minimize diffs with {Net,Open}BSD

Hinted-More-Or-Less-By: bde


47816 07-Jun-1999 kris

Changes from OpenBSD:
* Better usage() - correct syntax, display available commands
instead of examples
* Accept command abbreviations
* sprintf -> snprintf (for paranoia)
* manpage capitalisation tweak

Obtained from: OpenBSD


47442 23-May-1999 imp

getopt(3) returns -1 not EOF.


46073 25-Apr-1999 imp

First set of fixes to keep egcs happy. These include {} around single
statement if blocks[*] when the else could be ambiguous, not defaulting
to int type and removal of some unused variables.

[*] This is explicitly allowed by style(9) when the single statement
spans more than one line.

Reviewed by: obrien, chuckr


41579 07-Dec-1998 bde

Fixed printf format errors (new bugs in rev.1.7). Fixed a spelling error
(rev.1.7 blew away most of rev.1.2-1.6; I'm only fixing blowing away of
rev.1.4).


41432 30-Nov-1998 billf

superceded -> superseded, which after some debate on #FreeBSD is in
fact the proper spelling.

PR: docs/8697
Submitted by: Sascha Blank <blank@fox.uni-trier.de>


39876 01-Oct-1998 ken

Fix 'chio params' so that it actually prints out the current picker.
(This was broken when the volume tag changes went in.)

Submitted by: Josef Karthauser <joe@pavilion.net>


39227 15-Sep-1998 gibbs

Updated the ch(4) driver and chio(1) command to include volume
tag support. These changes have been tested with a Breeze Hill
Q47 DLT and a DEC DLT2500 media changer. The latter has no
volume tag support.

The chio(1) command was updated to include various flags to the
status subcommand. These flags can be used to select additional
information to be displayed (like volume tags).

A new chio(1) subcommand named 'voltag' has been added which allows
for changes to volume tags inside the media changer controller.
This could not be tested as the Q47 does not provide the functio-
nality.

Submitted by: Hans Huebner


36649 04-Jun-1998 steve

Fix a bunch of spelling errors.

PR: 6856
Submitted by: Josh Gilliam <josh@quick.net>


36001 13-May-1998 charnier

Do not remove include of <sys/param.h> and <sys/types.h>. They should
be here before including almost any POSIX header.
Requested by: Bruce


35773 06-May-1998 charnier

Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.


34668 19-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS
Use .An/.Aq


33238 11-Feb-1998 eivind

spelling

Obtained from: OpenBSD (src/bin/chio/chio.c rev 1.7) by todd@openbsd.org


29329 13-Sep-1997 wosch

spelling corrections.

PR: docs/4450
Submitted by: josh@quick.net


29315 12-Sep-1997 jkh

This command doesn't need to be setuid root, it's only asking
for potential trouble.
Reviewed by: security officers.
Noted by: OpenBSD


26464 06-Jun-1997 charnier

Do not use __progname.


26394 02-Jun-1997 max

Add X-reference to ch(4).


26361 02-Jun-1997 charnier

Remove unused variables. Suppress -Wall warnings. Check for potential buffer
overflow. Display available command in usage string.
Obtained from: {Net|Open}BSD


23450 06-Mar-1997 joerg

This commit was generated by cvs2svn to compensate for changes in r23449,
which included commits to RCS files with non-trunk default branches.