🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mark Costlow Wed, 25 Oct 1989 16:23
GNU Tar 1.07 'W' (verify) option
#521
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads