Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2000 18:27:17 -0500
From:      "Shawn Barnhart" <swb@grasslake.net>
To:        "Dan Nelson" <dnelson@emsphone.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Media changer relative movement?
Message-ID:  <003001c02748$250dbdc0$b8209fc0@marlowe>
References:  <001f01c02735$406f9ba0$b8209fc0@marlowe> <20000925171823.A29921@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----
From: "Dan Nelson" <dnelson@emsphone.com>

> In the last episode (Sep 25), Shawn Barnhart said:
> > Does chio(1) offer any relative movement options when working with a
> > media changer?
>
> Nope.

As I suspected.

> I had the same problem, and compiled "mtx" off of Sourceforge.  It's
> got its own share of problems, but does have automatic
> "load/unload/next" commands, which really helps in scripts

> ... and I realize I should read more than one paragraph at a time :)
> Just compile MTX for FreeBSD.

Heh.  I didn't realize it was available for FreeBSD, but then again the last
version I saw I downloaded from Leonard Zubkoff's web page and was meant
specifically for Linux.  Cool.  Cooler yet in ports..

> The functionality exists in /dev/ch, but only partially.  "chio status
> -S" will show what slot a particular tape came from, but only if the
> underlying hardware supports it.  Ideally, /dev/ch should store
> "current slot" information for autoloaders that don't support it, and
> it should also provide CHIOLOAD, CHIOUNLOAD, and CHIONEXT ioctls.
> Patches welcome, if you're desperate enough to code it yourself :)

I'd code it myself if I could, but I lack the skills to do so.  I was
thinking of a perl script that could do this by capturing the output of
"chio status" and Doing The Right Thing, but that'd only work if there was
just one empty slot.  A magazine with only two tapes, one of them loaded,
would make returning the tape to the "right" slot and getting the "next"
tape a little tricky.






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003001c02748$250dbdc0$b8209fc0>