Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ggs@ulysses.homer.nj.att.com (Griff Smith)
Subject: Re: TM78 (TU78) question: Read Opposite operation
Date: 22 Feb 88 15:57:15 GMT	[thread overview]
Message-ID: <10102@ulysses.homer.nj.att.com> (raw)
In-Reply-To: 2323@umd5.umd.edu

In article <2323@umd5.umd.edu>, chris@trantor.umd.edu (Chris Torek) writes:
> The TM78 User's Guide says that the proper response to a Read
> Opposite is to issue another read command using the opposite of
> the previous direction (forward if the last was a read reverse;
> reverse otherwise).  The 4.3BSD driver simply does a read reverse.
> Probably it is wrong.  It seems, however, that after one, or perhaps
> several, read reverse operations, the driver winds up re-reading
> a previously read block.
> 
> So the question:  Is the 4.3BSD driver wrong once or twice?

The driver, as released in 4.3BSD, does have a few bugs - not in error
recovery that I know of.  I posted fixes to comp.bugs.4bsd for the bugs
that I found.

I have tested the positioning code thoroughly with a tape that has
intermittent read errors; the contents always match, even though the
number of soft errors varies from run to run.  I have also tested it
with a tape that has a hard error in the middle of a block.  The tape
always ends up positioned after the damaged block.  After using the
driver for about 4 years I have seen no unexplained cases of
mis-positioning.

> That
> is, is there some reason to ignore the advice in the TM78 User's
> Guide, or to believe that a Read Opposite will only occur once per
> transfer?

I can't find my manual right now, but my impression is that it was
misleading.  My memory is that a trace of the commands from the
controller was "RETRY RETRY RETRY RETRY RETRY RETRY RETRY RETRY RETRY
RETRY RDOPP RDOPP RDOPP RDOPP RDOPP RDOPP RDOPP RDOPP RDOPP RDOPP
RETRY".  The "read opposite" refers to the sense of the original
command, not to that of the retry.  Since the driver does not support
"read reverse" as a user-specified command, "Read Opposite" can only
mean read backwards.

> In addition, is it necessary to issue a Forward Record
> operation after a successful reverse read, or will the controller
> do this automatically?

The controller will position automatically.

> -- 
> In-Real-Life: Chris Torek, Univ of MD Computer Science, +1 301 454 7163
> (hiding out on trantor.umd.edu until mimsy is reassembled in its new home)
> Domain: chris@mimsy.umd.edu		Path: not easily reachable

One likely explanation for your problem: you may have a one-way tape.
I have occasionally seen bad blocks that don't look like records when
read backward.  When the controller backs up to re-read the block, it
skips to the good block that preceeds the block in error.  This block
is then successfully read, and the error is assumed to be corrected.
When the drive hits the bad block again, the cycle start over.
-- 
Griff Smith	AT&T (Bell Laboratories), Murray Hill
Phone:		1-201-582-7736
UUCP:		{allegra|ihnp4}!ulysses!ggs
Internet:	ggs@ulysses.att.com


  reply	other threads:[~1988-02-22 15:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-02-19 12:39 TM78 (TU78) question: Read Opposite operation Chris Torek
1988-02-22 15:57 ` Griff Smith [this message]
1988-02-22 20:00   ` Chris Torek
1988-02-23 17:18     ` bug report etiquette Griff Smith
1988-02-24  5:10       ` Chris Torek
1988-02-27  6:03         ` Doug Alan
1988-02-27 17:42           ` Jeff Siegal
1988-03-10  8:22           ` Don Speck
1988-03-11  1:44             ` Doug Alan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox