From owner-freebsd-scsi Sun Apr 26 21:18:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA06182 for freebsd-scsi-outgoing; Sun, 26 Apr 1998 21:17:13 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA06137 for ; Sun, 26 Apr 1998 21:16:10 -0700 (PDT) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt1-118.HiWAAY.net [208.147.147.118]) by fly.HiWAAY.net (8.8.8/8.8.6) with ESMTP id XAA27738 for ; Sun, 26 Apr 1998 23:16:07 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by nospam.hiwaay.net (8.8.8/8.8.4) with ESMTP id SAA06542 for ; Sun, 26 Apr 1998 18:25:52 -0500 (CDT) Message-Id: <199804262325.SAA06542@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: freebsd-scsi@FreeBSD.ORG From: David Kelly Subject: Re: does CAM do this? In-reply-to: Message from Harlan Stenn of "Sat, 25 Apr 1998 21:33:00 EDT." <15923.893554380@brown.pfcs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 26 Apr 1998 18:25:52 -0500 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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