From owner-freebsd-current Mon Dec 14 19:17:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA00426 for freebsd-current-outgoing; Mon, 14 Dec 1998 19:17:42 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from feral-gw.feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA00412 for ; Mon, 14 Dec 1998 19:17:38 -0800 (PST) (envelope-from mjacob@feral.com) Received: from localhost (mjacob@localhost) by feral-gw.feral.com (8.8.7/8.8.7) with ESMTP id TAA04881; Mon, 14 Dec 1998 19:17:24 -0800 Date: Mon, 14 Dec 1998 19:17:24 -0800 (PST) From: Matthew Jacob X-Sender: mjacob@feral-gw Reply-To: mjacob@feral.com To: Greg Lehey cc: freebsd-current@FreeBSD.ORG Subject: Re: Tape Driver Changes Proposed: Tape Early Warning Behaviour In-Reply-To: <19981215132513.I15633@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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