From owner-cvs-src-old@FreeBSD.ORG Thu Sep 23 01:24:49 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9AFC106566B for ; Thu, 23 Sep 2010 01:24:49 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D81958FC27 for ; Thu, 23 Sep 2010 01:24:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o8N1OnZX006978 for ; Thu, 23 Sep 2010 01:24:49 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8N1OnVN006977 for cvs-src-old@freebsd.org; Thu, 23 Sep 2010 01:24:49 GMT (envelope-from delphij@repoman.freebsd.org) Message-Id: <201009230124.o8N1OnVN006977@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to delphij@repoman.freebsd.org using -f From: Xin LI Date: Thu, 23 Sep 2010 01:24:33 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/gzip gzip.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2010 01:24:50 -0000 delphij 2010-09-23 01:24:33 UTC FreeBSD src repository Modified files: usr.bin/gzip gzip.c Log: SVN rev 213044 on 2010-09-23 01:24:33Z by delphij In the past gunzip(1) write()'s after each inflate return. This is not optimal from a performance standpoint since the write buffer is not necessarily be filled up when the inflate rountine reached the end of input buffer and it's not the end of file. This problem gets uncovered by trying to pipe gunzip -c output to a GEOM device directly, which enforces the writes be multiple of sector size. Sponsored by: iXsystems, Inc. Reported by: jpaetzel MFC after: 2 weeks Revision Changes Path 1.20 +2 -0 src/usr.bin/gzip/gzip.c