Date: Mon, 14 Dec 1998 19:17:24 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: Greg Lehey <grog@lemis.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Tape Driver Changes Proposed: Tape Early Warning Behaviour Message-ID: <Pine.LNX.4.04.9812141916280.2563-100000@feral-gw> In-Reply-To: <19981215132513.I15633@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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). -matt 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?Pine.LNX.4.04.9812141916280.2563-100000>