Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2001 22:52:22 +1000
From:      Stephen McKay <mckay@thehub.com.au>
To:        Matthew Jacob <mjacob@feral.com>
Cc:        mckay@thehub.com.au, freebsd-scsi@freebsd.org, Norman Czarczinski <Norman.Czarczinski@t-online.de>
Subject:   Re: Trouble with SCSI Streamer 
Message-ID:  <200107101252.f6ACqMF26033@dungeon.home>
In-Reply-To: <Pine.BSF.4.21.0107041247130.11969-100000@beppo> from Matthew Jacob at "Wed, 04 Jul 2001 19:48:05 %2B0000"
References:  <01070421461600.00594@amd.local> <Pine.BSF.4.21.0107041247130.11969-100000@beppo>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 4th July 2001, Matthew Jacob wrote:

>On Wed, 4 Jul 2001, Norman Czarczinski wrote:
>
>> On Wednesday 04 July 2001 19:34, you wrote:
>> > Well, that's one theory shot down. Can you explicitly try changing the
>> > blocksize to 1k, test, back to 512 and test again?
>> 
>> That was it. With 1k it works. After switching back to 512 the problem came 
>> back.
>
>Okay- sounds like a bug in sa(4) then- and wierdness in the drive. It
>shouldn't allow you to set it to 512 bytes if that doesn't work.

This is deja vu time!  We had this discussion a couple of years ago,
if I recall correctly.  QIC tapes in fixed block mode at densities of
QIC-320 and above are in 1k blocks, and below that they are 512 byte blocks.
It is not linked to a drive type, but to the tape density.

Instead of getting to the bottom of this and making the sa driver know
everything there was to know about QIC drives, the resolution was to
use variable length blocks on QIC-320 and above.  At the time, I had
some philosophical quibbles with this approach, but it seems quite
practical in retrospect.

Indeed, checking the pre-cam st driver reveals the default is as I just
described.  But checking the cam sa driver reveals quirks that set 1024
byte fixed blocks on some drives, and more code that sets 512 byte
blocks for lots of densities, including ones that it shouldn't.  That's
not right.

I think a useful exercise would be to copy more of the QIC heuristics from
the old st driver into the sa driver.

Stephen.

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?200107101252.f6ACqMF26033>