From owner-freebsd-stable@FreeBSD.ORG Mon Mar 21 14:02:30 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C767516A4CE for ; Mon, 21 Mar 2005 14:02:30 +0000 (GMT) Received: from luzifer.incubus.de (incubus.de [80.237.207.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 805B143D48 for ; Mon, 21 Mar 2005 14:02:30 +0000 (GMT) (envelope-from mkb@mkbuelow.net) Received: from drjekyll.mkbuelow.net (p3E9E25A0.dip.t-dialin.net [62.158.37.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by luzifer.incubus.de (Postfix) with ESMTP id 3994F2F009; Mon, 21 Mar 2005 15:02:28 +0100 (CET) Received: from drjekyll.mkbuelow.net (mkb@localhost.mkbuelow.net [127.0.0.1]) by drjekyll.mkbuelow.net (8.13.3/8.13.3) with ESMTP id j2LE3NnC011554; Mon, 21 Mar 2005 15:03:24 +0100 (CET) (envelope-from mkb@drjekyll.mkbuelow.net) Message-Id: <200503211403.j2LE3NnC011554@drjekyll.mkbuelow.net> To: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-Reply-To: Message from des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) of "Mon, 21 Mar 2005 10:06:31 +0100." <86eke99xm0.fsf@xps.des.no> X-Mailer: MH-E 7.82; nmh 1.0.4; GNU Emacs 21.3.1 Date: Mon, 21 Mar 2005 15:03:23 +0100 From: Matthias Buelow cc: freebsd-stable@freebsd.org Subject: Re: bdes (and other) problems on 5.3 fixit cd X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 14:02:30 -0000 des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) writes: >That's bad. Short writes are perfectly valid, bdes should learn to >handle them properly. Shouldn't write/fwrite block until all has been written? Especially since fwrite(3) says: The function fwrite() returns a value less than nmemb only if a write error has occurred. Plus, the error only appears on the fixit boot... Ok, the other machine I've tried it on is over 3x as fast but I doubt that really makes a difference. I think I'm going to build a bdes with some debugging code sprinkled in to see what's going on. mkb.