From owner-freebsd-current@FreeBSD.ORG Wed Sep 3 16:04:47 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F33BE1069121 for ; Wed, 3 Sep 2008 16:04:47 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 45B478FC1C for ; Wed, 3 Sep 2008 16:04:47 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.128] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id m83G4ctv080984; Wed, 3 Sep 2008 09:04:38 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <48BEB5E1.8080906@freebsd.org> Date: Wed, 03 Sep 2008 09:05:53 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Giorgos Keramidas References: <87hc8x74nd.fsf@kobe.laptop> In-Reply-To: <87hc8x74nd.fsf@kobe.laptop> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: cpio reporting too many 'blocks' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 16:04:48 -0000 Giorgos Keramidas wrote: > In a CURRENT snapshot built at: > FreeBSD 8.0-CURRENT #0: Mon Sep 1 03:13:59 EEST 2008 > > bsdcpio is reporting _very_ large block counts: > > keramida@kobe:/ws/bsd/doc$ find * | cpio -p -dmu /hg/doc/bsd-import > 757935406 blocks > keramida@kobe:/ws/bsd/doc$ du -sh . > 24M . > keramida@kobe:/ws/bsd/doc$ env | fgrep BLOCK > BLOCKSIZE=K What does 'find * | xargs cat | wc -c' show? > I haven't tried building cpio from earlier versions yet, because an > mpsafetty test patch is building as I type this. The last few commits > seem related though: > > ------------------------------------------------------------------------ > r182151 | kientzle | 2008-08-25 09:39:29 +0300 (Mon, 25 Aug 2008) | 6 lines This is just a change to the regression tests. Certainly not relevant. > ------------------------------------------------------------------------ > r182102 | kientzle | 2008-08-24 09:21:00 +0300 (Sun, 24 Aug 2008) | 5 lines > > Update the total archive byte counters when writing entries to disk using > archive_write_disk. > Update cpio to use this to emit block counts in -p mode. > Update cpio tests to verify these block counts. Prior to this commit, cpio didn't emit block counts in -p mode at all. I suppose reversing this commit might qualify as "fixing" the problem, but I'd like to do better. ;-) I'll take a look... Tim