From owner-freebsd-arch Wed Jan 16 8:47:50 2002 Delivered-To: freebsd-arch@freebsd.org Received: from enigma.trueimpact.net (enigma.trueimpact.net [209.82.45.201]) by hub.freebsd.org (Postfix) with ESMTP id 44E9537B41F for ; Wed, 16 Jan 2002 08:47:43 -0800 (PST) Received: from spirit.jaded.net (unknown [24.141.6.76]) by enigma.trueimpact.net (Postfix) with ESMTP id 4AB5266B09; Wed, 16 Jan 2002 11:47:31 -0500 (EST) Received: (from dan@localhost) by spirit.jaded.net (8.11.6/8.11.6) id g0GGm5I17260; Wed, 16 Jan 2002 11:48:05 -0500 (EST) (envelope-from dan) Date: Wed, 16 Jan 2002 11:48:05 -0500 From: Dan Moschuk To: Poul-Henning Kamp Cc: arch@FreeBSD.ORG Subject: Re: M_SHORTWAIT, the md driver and errno Message-ID: <20020116114805.L7831@spirit.jaded.net> References: <20020116012950.C7831@spirit.jaded.net> <43818.1011165127@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <43818.1011165127@critter.freebsd.dk>; from phk@critter.freebsd.dk on Wed, Jan 16, 2002 at 08:12:07AM +0100 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG | >I'm fixing up the md driver to use the M_SHORTWAIT flag when allocating | >memory. In the event that our request times out, what errno should the | >driver return? | | Good question, I guess EIO is the "make sure not to break anything" | choice, but obviously ENOMEM would make more sense. ENOMEM would make the most sense, I just wasn't sure you were "allowed" to return that for write calls. EIO kind of sucks; seeing an "Input/output error" while writing to a memory disk will probably result in people incorrectly thinking that they have bad ram. Cheers, -Dan -- Build a man a fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message