summaryrefslogtreecommitdiff
path: root/bin/chio
AgeCommit message (Collapse)Author
2006-06-14Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. LongKenneth R Westerback
marked obsolete since the opendev() behaviour it turned on is now the default. 'it can go' deraadt@ 'no API of mine has ever made it into a standard' downsj@
2006-06-13make -avV only be suboptions of the status command, as documented, by usingTheo de Raadt
nested getopt() calls. ok beck
2006-06-03do chio.conf install from right placeTheo de Raadt
2006-06-02Add sample chio.conf to /etcBob Beck
ok deraadt@
2006-06-01fix stupid typo. mea culpaBob Beck
2006-06-01 Move mtio drive prep to a function, and makes the changerBob Beck
check it's notion of access, avoiding problems on more tightly coupled changers if the tape is already ejected - currently these stupid devices return "Initialization Command Required" sense codes but there is (as yet) no way to tell userland that. checking the ACCESS changer flag appears safe in both cases. Adds support for "voltag" type for the source for a move, so you can do "chio move voltag 0003B72 drive 0" to move a tape with the corresponding bar code. Documents the above, as well as status -vVa in the man page. partly from freebsd, man page tweaks by jmc@ ok krw@
2006-05-31prettierTheo de Raadt
2006-05-31 This adds support for retrieving volume tags in chio(8) with theBob Beck
status command and options -v to request the primary volume tag, -V for the alternate volume tag. Man page will follow shortly, along with move support by volume tag.
2006-05-29tweaks;Jason McIntyre
2006-05-29document the st(4) device to chio drive mapping, and the existence ofBob Beck
the /etc/chio.conf file. "You commit, then jmc cleans" deraadt@
2006-05-29oups, left one strdup unchecked, and some more error handling smalliesHenning Brauer
2006-05-29spacingTheo de Raadt
2006-05-29KNFHenning Brauer
2006-05-29de-beckify (KNF)Henning Brauer
2006-05-29Make chio have a connection between st(4) devices and "drives" in aBob Beck
changer - chio will then attempt to open the /dev/rstX device when doing a move from a source of drive X, and will attempt to unload the tape. this avoids issues where pickers madly attempt to grab a busy tape on completely decoupled libraries, or fail to grab an unloaded tape on tightly coupled libraries, the extra unload being harmless if the media has already been ejected. The mapping between st(4) devices and ch drives is by default a simple mapping between picker drive X being mapped to /dev/rstX, however for non-obvious or complicated configurations, we support a /etc/chio.conf file in which the drives for a changer may have their corresponding st(4) devices defined individually. chio will use the default mapping if the /etc/chio.conf file is not present, or does not define a st(4) device for a changer drive. (example chio.conf and man page changes to come) yacc parser for chio.conf written by henning@, ok henning@, krw@
2006-04-25various small lint cleanups; ok ottoTheo de Raadt
2005-11-25BINOWN and BINMODE is not needed hereTheo de Raadt
2005-02-08- rearrange EXAMPLESJared Yanovich
- move env var stuff to ENVIRONMENT - clarify "status" description - sort & simplify commands ok jmc
2003-05-29- section reorderJason McIntyre
- .An/.Aq for AUTHORS
2003-04-28typos;Jason McIntyre
suggestions, corrections and ok millert@
2003-03-12more .LiTheo de Raadt
2002-11-14use $ or # before commands in examplesTheo de Raadt
2002-07-04ansiTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2001-08-26remove excess XrTheo de Raadt
2001-03-21-WallArtur Grabowski
2000-11-09- Some section shuffling: conform to the standard order documented in mdoc(7)Aaron Campbell
- .Sh AUTHOR -> .Sh AUTHORS
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-03-17Remove hard sentence breaks.Aaron Campbell
1999-08-17consistencyAaron Campbell
1999-07-03remove redundant .Pp macrosAaron Campbell
1999-05-30repairsAaron Campbell
1999-03-03using a .Aq Ar combination is much nicerAaron Campbell
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28start killing redundant .Nm macro arguments (mandoc ``remembers'' the first oneAaron Campbell
it's given)
1998-09-14First complete sweep of man pages, bin/. Command/function names previouslyAaron Campbell
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS cleanups, other miscellaneous typos.
1998-06-23snprintf returns bytes it wanted to print, not the number it actually didTodd C. Miller
1997-11-08spellingTodd T. Fries
1997-10-01typos; khym@bga.comTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-06-03.Xr ch 4, someone create it please?Theo de Raadt
1996-12-14-Wall'ing.Michael Shalayeff
1996-11-02useful useage, abbreviateable commandsTheo de Raadt
1996-10-08Attempt at cleanup.michaels
1996-09-15sprintf -> snprintf paranoiaTodd C. Miller
1996-08-21Don't override BINOWN and BINGRPThorsten Lockert
1996-08-11bad setuid, bad, bad, badTheo de Raadt
1996-08-11Install with 4554 permissions.dm