summaryrefslogtreecommitdiffstats
path: root/bin/chio
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge head from 7/28sjg2014-08-191-7/+3
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2013-09-051-0/+70
| |\
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | use .Mt to mark up email addresses consistently (part1)bapt2014-06-201-5/+3
| | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | mdoc: remove superfluous paragraph macros.joel2014-06-151-2/+0
| |/ |/|
* | Update chio(1) and ch(4) to support reporting element designators.ken2013-04-191-0/+70
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add static keywords to chio(1).ed2011-12-111-3/+3
| | | | | All other global variables are already marked static, so for consistency sake, add them to these three arrays as well.
* Zero struct before reading from ituqs2010-06-021-0/+1
| | | | | | PR: 140384 Found by: clang static analyzer MFC after: 3 weeks
* When running a "chio return" operation using a physical source unitjoerg2008-10-301-4/+6
| | | | | | | | | | | | 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
* Don't specify SRCS= when it can be obtained from PROGS=delphij2005-01-271-1/+0
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-5/+5
| | | | Sort standard sections in the (documented) preferred order.
* Removed harmful empty lines that crept in during the copyrightru2005-01-131-1/+0
| | | | header update.
* /*- or .\"- or #- to begin license clauses.imp2005-01-104-4/+5
|
* Mechanically kill hard sentence breaks.ru2004-07-021-12/+24
|
* Quiet warnings about copyright[].obrien2003-05-011-0/+2
|
* The .Nm utilitycharnier2003-03-241-2/+3
|
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Remove double #include <sys/cdef.h> and __FBSDID.dwmalone2002-07-011-2/+0
| | | | | PR: 40053 Submitted by: Dan Lukes <dan@obluda.cz>
* Consistently use __FBSDIDobrien2002-06-301-0/+2
|
* Replace use of __progname with the functionally identical and moremarkm2002-03-241-15/+14
| | | | acceptable getprogname(3).
* Use ANSI-99 int names (uintXX_t) over traditional BSD int namesimp2002-03-051-5/+6
| | | | (u_intXX_t).
* Fix a boatload of warnings inspired by lint, a commercial lintmarkm2002-02-221-16/+14
| | | | and WARNS=4.
* Modernization effort for bin/c*:imp2002-02-022-89/+45
| | | | | | | | | | | | 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)
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-1/+0
| | | | | | set WARNS=0. Reviewed by: mike
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-2/+1
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-2/+0
|
* Fix warnings on alpha and re-enable WARNS=2.mikeh2001-07-042-13/+18
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Argh...this isn't ready for WARNS=2 on alpha.mikeh2001-07-031-1/+0
|
* Constify and lockdown with WARNS=2.mikeh2001-07-033-25/+26
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> MFC after: 2 weeks
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-2/+0
|
* mdoc(7) police: simplify construct.ru2000-12-211-4/+1
|
* logru2000-11-221-2/+4
|
* more removal of trailing periods from SEE ALSO.ben2000-11-151-1/+1
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-2/+3
|
* Use .Cm macro where appropriate.ru2000-09-191-8/+8
|
* Fix horrendous abuse of the Nm and Pa mdoc macros, and remove troffsheldonh2000-09-191-41/+43
| | | | bold markers \fB and \fR.
* Add two new features to chio(1):ken2000-09-182-15/+304
| | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Don't explicitly declare optarg and optind. These are declared inimp2000-08-161-1/+0
| | | | unistd.h, which is already included.
* $Id$ -> $FreeBSD$peter1999-08-275-5/+5
|
* Correct some style issues in my previous commit.kris1999-07-222-4/+4
| | | | Submitted by: bde
* Undo some of the reversions from previous revisions, and attempt tokris1999-06-211-52/+83
| | | | | | minimize diffs with {Net,Open}BSD Hinted-More-Or-Less-By: bde
* Changes from OpenBSD:kris1999-06-073-16/+27
| | | | | | | | | | * Better usage() - correct syntax, display available commands instead of examples * Accept command abbreviations * sprintf -> snprintf (for paranoia) * manpage capitalisation tweak Obtained from: OpenBSD
* getopt(3) returns -1 not EOF.imp1999-05-231-2/+2
|
OpenPOWER on IntegriCloud