From owner-freebsd-current Mon Dec 14 19:21:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA00779 for freebsd-current-outgoing; Mon, 14 Dec 1998 19:21:59 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA00773 for ; Mon, 14 Dec 1998 19:21:56 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id NAA28300; Tue, 15 Dec 1998 13:51:46 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id NAA15840; Tue, 15 Dec 1998 13:51:45 +1030 (CST) Message-ID: <19981215135145.A15815@freebie.lemis.com> Date: Tue, 15 Dec 1998 13:51:45 +1030 From: Greg Lehey To: mjacob@feral.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: Tape Driver Changes Proposed: Tape Early Warning Behaviour References: <19981215132513.I15633@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Matthew Jacob on Mon, Dec 14, 1998 at 07:17:24PM -0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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