From owner-freebsd-stable@FreeBSD.ORG Mon Mar 21 09:06:38 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 B6D8B16A4CE for ; Mon, 21 Mar 2005 09:06:38 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30EBF43D54 for ; Mon, 21 Mar 2005 09:06:38 +0000 (GMT) (envelope-from des@des.no) Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IDP002562DWFCC0@bgo1smout1.broadpark.no> for freebsd-stable@freebsd.org; Mon, 21 Mar 2005 10:01:08 +0100 (CET) Received: from dsa.des.no ([80.203.228.37]) by bgo1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IDP00IEE2PVPINA@bgo1sminn1.broadpark.no> for freebsd-stable@freebsd.org; Mon, 21 Mar 2005 10:08:19 +0100 (CET) Received: by dsa.des.no (Pony Express, from userid 666) id B7458AC6ED; Mon, 21 Mar 2005 10:06:36 +0100 (CET) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 4509EAC6E9; Mon, 21 Mar 2005 10:06:32 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 2D11A33C1B; Mon, 21 Mar 2005 10:06:32 +0100 (CET) Date: Mon, 21 Mar 2005 10:06:31 +0100 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: <200503210217.j2L2H4C5005161@drjekyll.mkbuelow.net> To: Matthias Buelow Message-id: <86eke99xm0.fsf@xps.des.no> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on dsa.des.no References: <200503210217.j2L2H4C5005161@drjekyll.mkbuelow.net> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.0.2 X-Spam-Level: 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 09:06:38 -0000 Matthias Buelow writes: > Instead of trying to write the rest, the author decided to just print > a warning and that was it. That's bad. Short writes are perfectly valid, bdes should learn to handle them properly. > Amazingly, the message doesn't get printed in a "bdes|cat" pipeline. > Only when restore is being used does it seem to happen. Probably because cat uses a large enough buffer and reads fast enough to completely empty the pipe for every read, so bdes never gets a short write (caused by a partially full buffer). DES --=20 Dag-Erling Sm=F8rgrav - des@des.no