From 6eb110bd6840eb7af7100261e50705539c5206fc Mon Sep 17 00:00:00 2001 From: gibbs Date: Tue, 15 Sep 1998 07:48:51 +0000 Subject: 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 --- bin/chio/Makefile | 4 +- bin/chio/chio.1 | 95 +++++++++-- bin/chio/chio.c | 487 ++++++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 443 insertions(+), 143 deletions(-) (limited to 'bin/chio') diff --git a/bin/chio/Makefile b/bin/chio/Makefile index fb05f5f..7f56f9e 100644 --- a/bin/chio/Makefile +++ b/bin/chio/Makefile @@ -1,6 +1,8 @@ -# $Id: Makefile,v 1.1.1.1 1997/03/06 15:30:06 joerg Exp $ +# $Id: Makefile,v 1.2 1997/09/12 15:00:06 jkh Exp $ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +CFLAGS+=-I${.CURDIR}/../../sys + PROG= chio SRCS= chio.c diff --git a/bin/chio/chio.1 b/bin/chio/chio.1 index 056c43a..e1cbad9 100644 --- a/bin/chio/chio.1 +++ b/bin/chio/chio.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: $ +.\" $NetBSD: chio.1,v 1.4 1997/10/02 00:41:25 hubertf Exp $ .\" .\" Copyright (c) 1996 Jason R. Thorpe .\" All rights reserved. @@ -30,18 +30,19 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: chio.1,v 1.5 1998/05/06 06:49:52 charnier Exp $ +.\" $Id: chio.1,v 1.6 1998/06/04 21:05:19 steve Exp $ .\" -.Dd April 2, 1996 +.Dd May 14, 1998 .Dt CHIO 1 .Os .Sh NAME .Nm chio .Nd medium changer control utility .Sh SYNOPSIS -.Nm chio +.Nm .Op Fl f Ar changer .Ar command +.Op Fl .Ar arg1 .Ar arg2 .Oo @@ -49,7 +50,7 @@ .Oc .Oc .Sh DESCRIPTION -.Nm Chio +.Nm is used to control the operation of medium changers, such as those found in tape and optical disk jukeboxes. .Pp @@ -92,7 +93,7 @@ would be .Pp .Sh SUPPORTED COMMANDS .Bl -tag -width indent -.It Xo Nm chio move +.It Xo Nm move .Ar .Op Ar inv .Xc @@ -103,7 +104,7 @@ to If the optional modifier .Pa inv is specified, the media unit will be inverted before insertion. -.It Xo Nm chio exchange +.It Xo Nm exchange .Ar .Op Ar .Op Ar inv1 @@ -133,10 +134,10 @@ and respectively. .Pp Note that not all medium changers support the -.Nm exchange +.Ic exchange operation; The changer must have multiple free pickers or emulate multiple free pickers with transient storage. -.It Xo Nm chio position +.It Xo Nm position .Ar .Op Ar inv .Xc @@ -147,23 +148,82 @@ If the optional modifier is specified, the media unit will be inverted before insertion. .Pp Note that not all changers behave as expected when issued this command. -.It Nm chio params +.It Nm params Report the number of slots, drives, pickers, and portals in the changer, and which picker unit the changer is currently configured to use. -.It Nm chio getpicker +.It Nm getpicker Report which picker unit the changer is currently configured to use. -.It Xo Nm chio setpicker +.It Xo Nm setpicker .Ar .Xc Configure the changer to use picker .Pa . -.It Xo Nm chio status +.Pp +.It Xo Nm ielem +.Op Pa +.Xc +Perform an \fBINITIALIZE ELEMENT STATUS\fR +operation on the changer. The optional +.Pa +parameter may be given to specify a timeout in seconds for the +operations. This may be used if the operation takes unusually long +because of buggy firmware or the like. +.It Xo Nm voltag +.Op Fl fca +.Ar +.Ar +.Op Ar