🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #994

Re: ioctl for DAT compression

#994
From: Sherwood Botsford
Date: Fri, 21 Aug 1992 18:31
38 lines
1699 bytes
Mike Matthews writes
> 
> Also, is there a way to determine if a tape is in the  
drive and ready to go?
> I tried mt -f /dev/nrst0 status but it never gave  
consistent errors (returned
> 06, then 02, then 00 without me doing anything  -- and  
this was after the
> ready light came back on too).

6 means that the device has been reset or there has been a  
change of cartridge.

2 means that the device is not ready.

0 means everything is ok.

80 means that there is a tape loaded, and its at a  
filemark.

40 means that there is a tape loaded and its at Logical  
Beginning of tape.

Status remains set until the drive receives a command.   
Thus you could have changed the tape 10 minutes ago, and mt  
status will return 6.

Get TarChive.tar.Z if you want to see some samples of how  
to check status and decide what to do from there. (On  
sonata.)

I think you could modify the mtsense command in that same  
file to set compression on.

CAVEAT:  Using compression on a Tape drive is not a good  
plan.  If you have a glitch, the remainder of the  
compressed archive is usually undecipherable.  Don't do  
this unless you can't fit what you want on a single tape.
Technical Details
Message-ID: <1992Aug21.183100.16649@kakwa.ucs.ualberta.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!news
References: <15080@umd5.umd.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!news
From: sherwood@fenris.space.ualberta.ca (Sherwood Botsford)
Subject: Re: ioctl for DAT compression
Message-ID: <1992Aug21.183100.16649@kakwa.ucs.ualberta.ca>
Sender: news@kakwa.ucs.ualberta.ca
Nntp-Posting-Host: fenris.space.ualberta.ca
Organization: University Of Alberta, Edmonton Canada
References: <15080@umd5.umd.edu>
Date: Fri, 21 Aug 1992 18:31:00 GMT
Lines: 38