🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #521

GNU Tar 1.07 'W' (verify) option

#521
From: Mark Costlow
Date: Wed, 25 Oct 1989 16:23
41 lines
2061 bytes
Greetings,

  I'm trying to use GNU tar's W option to verify archives as they are created.
The manual says that this option will only work on a device that supports 
backspacing.  My Sun Cartridge tape and my Exabyte both support backspacing,
but I can't get the W option to work on anything other than plain files.  A 
small example output:

jupiter# ./tar cvWf /dev/nrst0 .
./
... <lots of files> ...
getdate.o
rtape_lib.o
rmt
./tar: read error on /dev/nrst0 : I/O error
./tar: read error on /dev/nrst0 : I/O error
... <message repeated about 10 more times> ...
./tar: Too many errors, quitting.
jupiter#

This happens with any tape drive that I try to use.  

One interesting thing about the Sun SCSI tape driver and tar:

   If I tar a file off the tape, and immediately execute a tar x on the same 
tape, then I get the same file the second time as the first time.  I think 
this is because tar doesn't actually read the past the file mark.  So, if you 
want to get the second file, you have to mt fsf 1 to get the tape past the file
mark.  Another aspect of this is that the backspace file operation (mt bsf 1)
will not work immediately following a tar (it dies with "I/O error").  You have
to fsf the tape past the file mark before the bsf function will work.  I don't
know if this is related to my problem or not, but I thought it curious.

This is all on a Sun4/280 running SunOS 4.0.3.  The Exabyte is using the same
driver as the cartridge tape, and so far none of the other programs we've 
used have had problems with it.

Thanks in advance for any info. 

Mark
cheeks@edsr.eds.com     or     ...uunet!edsr!cheeks
Technical Details
Message-ID: <8910251623.AA01386@argon.eds.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!edsr!jupiter!cheeks

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!edsr!jupiter!cheeks
From: edsr!jupiter!cheeks@UUNET.UU.NET (Mark Costlow)
Newsgroups: gnu.utils.bug
Subject: GNU Tar 1.07 'W' (verify) option
Message-ID: <8910251623.AA01386@argon.eds.com>
Date: 25 Oct 89 16:23:44 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 41