From owner-freebsd-hackers Sun Sep 7 07:22:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA19848 for hackers-outgoing; Sun, 7 Sep 1997 07:22:09 -0700 (PDT) Received: from usr09.primenet.com (tlambert@usr09.primenet.com [206.165.6.209]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA19842 for ; Sun, 7 Sep 1997 07:22:06 -0700 (PDT) Received: (from tlambert@localhost) by usr09.primenet.com (8.8.5/8.8.5) id HAA08365; Sun, 7 Sep 1997 07:22:02 -0700 (MST) From: Terry Lambert Message-Id: <199709071422.HAA08365@usr09.primenet.com> Subject: Re: Tape question To: joerg_wunsch@uriah.heep.sax.de Date: Sun, 7 Sep 1997 14:22:01 +0000 (GMT) Cc: hackers@FreeBSD.ORG, handy@sag.space.lockheed.com In-Reply-To: <19970907103022.YU02721@uriah.heep.sax.de> from "J Wunsch" at Sep 7, 97 10:30:22 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > - The Exabyte tapes to be read have a variable (logical) block size, > > it typically is 8192 bytes, but often shorter. > > > > - My original c program always attempted to read a 8192 byte block: > > > > nn = read(unit,buffer,8192); > > > > - On the sun this worked, it would read one (logical) block, and > > return the actual number of bytes read. > > > > - In FreeBSD this created unpredictable results, if the logical block > > was shorter than 8192. > > This must be a problem with the Exabyte then. It works fine for me, > with a Tandberg TDC4222, and a QIC-525 cartridge (QIC-150, of course, > doesn't work since it's fixed-length blocking). > > Also, i know that restore(8) basically relies on this feature in order > to determine the tape block size. ISTR that this once was broken, but > that's been quite some time ago. I think it is a driver issue. I would hesitate to actually call it a problem, however. Effectively, one driver does a "sync" for you, and the other does not: man dd /osync ...then read about the "osync" and "sync" options to "conv=". So it's not the driver *OR* the controller (at least IMO). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.