Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 1999 12:45:58 -0500
From:      Charles Owens <owensc@enc.edu>
To:        cwt@FreeBSD.ORG, kingsled@enc.edu, nick.hibma@jrc.it, freebsd-scsi@FreeBSD.ORG
Subject:   fix for amanda chg-chio script to eject tape
Message-ID:  <36F681D6.E2234C61@enc.edu>
References:  <36F67829.6C6CB4CA@enc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
In order to get chg-chio from amanda 2.4.1p1 to work happily under
FreeBSD-3_stable I had to add a few statements to the Unload subroutine to
eject the tape prior to calling the chio command to move it back to its slot.

Did the ch(4) driver used to handle the tape ejection step itself?  If not,
then I'm not sure I understand how the chio-script ever worked, since
_somehow_ the st/sa tape driver needs to be told to release the tape before
the changer can play with it.

If this is true (that the ch(4) driver used to, but no longer does, handle
the eject step) then the chio-chg as present in the amanda distribution
probably should be patched... or at least the FreeBSD amanda port should
include the patch to be applied at build time.

Here's the diff to chg-chio:

240a241,244
>       system ("/usr/bin/mt -f $tapeDevice rew");
>       system ("/usr/bin/mt -f $tapeDevice offl");
>       sleep(1);
>

I'm not sure if the sleep or separate rewind and offl steps are needed, just
thought I'd be careful.

Thoughts?
---
-------------------------------------------------------------------------
  Charles N. Owens                               Email:  owensc@enc.edu
                                             http://www.enc.edu/~owensc
  Network & Systems Administrator
  Information Technology Services  "Outside of a dog, a book is a man's
  Eastern Nazarene College         best friend.  Inside of a dog it's
                                   too dark to read." - Groucho Marx
-------------------------------------------------------------------------




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36F681D6.E2234C61>