Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Apr 1998 18:25:52 -0500
From:      David Kelly <dkelly@hiwaay.net>
To:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: does CAM do this? 
Message-ID:  <199804262325.SAA06542@nospam.hiwaay.net>
In-Reply-To: Message from Harlan Stenn <Harlan.Stenn@pfcs.com>  of "Sat, 25 Apr 1998 21:33:00 EDT." <15923.893554380@brown.pfcs.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Harlan Stenn writes:
> 
> I beg to differ.
> 
> I agree that the read will return no more than I ask for.
> 
> However...
> 
> With the default tape drive configuration (on the drives I've tested), if I 
> have a Large file on the tape blocked at, say, 10k bytes, if I issue a 
> read of "more than 10k but less than the size of the file" I'll get back 
> exactly what I asked for.
> 
> I cannot tell that the tape was blocked at 10k bytes.

How does your code to read tape differ from that of tcopy(1)? 
/usr/src/usr.bin/tcopy reads into a 64k buffer with the count set at
64k. Shorter reads are noted. When blocksize changes the fact is written
to stdout. Did this not work on older FreeBSD systems?


--
David Kelly N4HHE, dkelly@nospam.hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



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?199804262325.SAA06542>