From owner-freebsd-scsi Wed Dec 10 19:29:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA25376 for freebsd-scsi-outgoing; Wed, 10 Dec 1997 19:29:49 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA25357 for ; Wed, 10 Dec 1997 19:29:45 -0800 (PST) (envelope-from gibbs@narnia.plutotech.com) Received: (from gibbs@localhost) by narnia.plutotech.com (8.8.8/8.7.3) id UAA17646; Wed, 10 Dec 1997 20:27:55 -0700 (MST) Date: Wed, 10 Dec 1997 20:27:55 -0700 (MST) Message-Id: <199712110327.UAA17646@narnia.plutotech.com> Mime-Version: 1.0 X-Newsreader: knews 0.9.8 References: <199712100037.SAA25972@nospam.hiwaay.net> <199712100243.TAA18226@narnia.plutotech.com> <19971210093732.48185@uriah.heep.sax.de> <348F08D6.63DABEB6@whistle.com> <19971211005904.40551@uriah.heep.sax.de> In-Reply-To: <19971211005904.40551@uriah.heep.sax.de> From: gibbs@narnia.plutotech.com (Justin T. Gibbs) Subject: Re: Questions about mt and SCSI subsystem X-Original-Newsgroups: pluto.freebsd.scsi To: scsi@FreeBSD.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-scsi@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk In article <19971211005904.40551@uriah.heep.sax.de>, J Wunsch writes: > > The correct behaviour is that any read or write attempt, upon > encountering EOF (read) or EOM (write) should return a `short' > read/write (i.e., set b_resid accordingly), but shall not flag an > error condition. Are you sure about the behavior for write? > Offhand i'm not sure what should happen if you are exactly at EOF, > and try to read on, but still i think read(2) should just return 0 but > no error. On a tape, you will start reading the next file unless the EOF handling back spaces over the filemark after noticing it. -- Justin T. Gibbs =========================================== FreeBSD - Turning PCs into workstations ===========================================