Date: Sat, 25 Apr 1998 21:14:32 -0400 From: "Louis A. Mamakos" <louie@TransSys.COM> To: Harlan Stenn <Harlan.Stenn@pfcs.com> Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: does CAM do this? Message-ID: <199804260114.VAA01065@whizzo.TransSys.COM> In-Reply-To: Your message of "Sat, 25 Apr 1998 20:41:46 EDT." <24055.893551306@brown.pfcs.com> References: <24055.893551306@brown.pfcs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > What is the blocksize of the current tape record? > > > > Unless you're tape drive is clairvoyant, you can't know that > > until you read the record (or attempt to). > > The problem is that a read() to the (default) tape drive under FreeBSD > returns exactly the number of bytes you asked for, so there is no way to > determine the actual number of bytes on the tape record. No, it returns no more than you asked for. That why you should do a read() of a record larger than you expect or can support, and it will return the number written in the tape record. > I just don't know enough about this stuff to understand why it worked on so > many platforms for so many years. I just know it worked. This is how it worked.. louie 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?199804260114.VAA01065>