Date: Sun, 10 Sep 2000 18:40:02 -0700 (PDT) From: csg@waterspout.com (C. Stephen Gunn) To: freebsd-bugs@FreeBSD.org Subject: Re: bin/21178: voltag selector, and unload support for chio(1) Message-ID: <200009110140.SAA90471@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/21178; it has been noted by GNATS.
From: csg@waterspout.com (C. Stephen Gunn)
To: mjacob@feral.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/21178: voltag selector, and unload support for chio(1)
Date: Sun, 10 Sep 2000 20:35:53 -0500
On Sun, 10 Sep 2000 16:40:33 MST, Matthew Jacob wrote:
> Why doesn't somebody just merge the equivalent fixes from NetBSD's chio in
> to FreeBSD? Or where they already done?
This isn't actually a fix. It allows you to select a media unit
to move by voltag. It should make it easier for products like
amanda to drive a tape-changer with barcode reader on FreeBSD.
You can simply ask for a specific tape by voltag:
chio move voltag VOLUME-03 drive 0
The other feature is the "unload" command which checks the source
parameter returned in the changer_element_status record. If there's
a source parameter, we "unload" the media by moving it back where
the drive reports it came from.
This the logic to request a certain tape (if you have a barcode
reader or equivalent):
chio unload drive <target-drive>
chio move voltag <label> drive <target-drive>
If the second one fails, the tape isn't in the changer, raccoons
have eaten your barcodes, or the kids put bubblegum on the barcode
reader optics. ;-)
- Steve
PS. the patch URL was incorrect before, I've fixed it (on my end).
--
C. Stephen Gunn URL: http://www.waterspout.com/
WaterSpout Communications, Inc. Email: csg@waterspout.com
427 North 6th Street Phone: +1 765.742.6628
Lafayette, IN 47901 Fax: +1 765.742.0646
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009110140.SAA90471>
