Date: Thu, 11 Dec 1997 00:59:04 +0100 From: J Wunsch <j@uriah.heep.sax.de> To: scsi@freebsd.org Subject: Re: Questions about mt and SCSI subsystem Message-ID: <19971211005904.40551@uriah.heep.sax.de> In-Reply-To: <348F08D6.63DABEB6@whistle.com>; from Julian Elischer on Wed, Dec 10, 1997 at 01:25:43PM -0800 References: <199712100037.SAA25972@nospam.hiwaay.net> <199712100243.TAA18226@narnia.plutotech.com> <19971210093732.48185@uriah.heep.sax.de> <348F08D6.63DABEB6@whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
As Julian Elischer wrote: > I'd offer to fix it if I could be told what he right thing to do is.. > but I don't have a tape drive here at all.. It's probably hard to fix without having a tape drive -- i gave up fixing it even with a drive. ;-) 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. 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. Basically, you need to be consistent with normal file IO (although there's no such thing like `EOM' for writing files). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971211005904.40551>