Date: Tue, 15 Dec 1998 13:51:45 +1030 From: Greg Lehey <grog@lemis.com> To: mjacob@feral.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: Tape Driver Changes Proposed: Tape Early Warning Behaviour Message-ID: <19981215135145.A15815@freebie.lemis.com> In-Reply-To: <Pine.LNX.4.04.9812141916280.2563-100000@feral-gw>; from Matthew Jacob on Mon, Dec 14, 1998 at 07:17:24PM -0800 References: <19981215132513.I15633@freebie.lemis.com> <Pine.LNX.4.04.9812141916280.2563-100000@feral-gw>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 14 December 1998 at 19:17:24 -0800, Matthew Jacob wrote: >> I've probably missed something here, but what is the intention in (ii) >> or clearing EOM? What's wrong with: >> >> i) write(fd, buf, 1024) returns 1024 (1024 bytes written) [ EOM flagged ] >> ii) write(fd, buf, 1024) returns 0 (zero bytes moved) >> iii) write(fd, buf, 1024) will return -1 (ENOSPC or EIO - I don't care). > > So that the tape driver knows for #iii not to just return 0 (zero bytes > moved). Sure, it'll need another state bit. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981215135145.A15815>