From owner-freebsd-current@FreeBSD.ORG Wed Sep 3 21:19:51 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 AB8391065676 for ; Wed, 3 Sep 2008 21:19:51 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 198888FC13 for ; Wed, 3 Sep 2008 21:19:50 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl83-19.kln.forthnet.gr [77.49.50.19]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m83LJcrt030002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 4 Sep 2008 00:19:44 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id m83LJaVe002624; Thu, 4 Sep 2008 00:19:37 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id m83LJaw4002623; Thu, 4 Sep 2008 00:19:36 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Tim Kientzle References: <87hc8x74nd.fsf@kobe.laptop> <48BEB5E1.8080906@freebsd.org> Date: Thu, 04 Sep 2008 00:19:35 +0300 In-Reply-To: <48BEB5E1.8080906@freebsd.org> (Tim Kientzle's message of "Wed, 03 Sep 2008 09:05:53 -0700") Message-ID: <87ej41rkpk.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m83LJcrt030002 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.286, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.11, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No 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 21:19:51 -0000 On Wed, 03 Sep 2008 09:05:53 -0700, Tim Kientzle wrote: > 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? This is a clean (but partial) checkout of out doc/ tree: keramida@kobe:/ws/bsd/doc$ find * | xargs cat | wc -c 20948320 keramida@kobe:/ws/bsd/doc$ ls -l total 12 drwxrwxr-x 2 keramida users - 512 Aug 21 22:02 CVS -rw-rw-r-- 1 keramida users - 1691 Apr 15 2007 Makefile -rw-rw-r-- 1 keramida users - 392 Oct 13 2001 README drwxrwxr-x 7 keramida users - 512 Aug 10 11:48 el_GR.ISO8859-7 drwxrwxr-x 8 keramida users - 512 Sep 3 18:28 en_US.ISO8859-1 drwxrwxr-x 12 keramida users - 512 Aug 3 19:22 share keramida@kobe:/ws/bsd/doc$ I'm using this to import snapshots of the CVS doc/ tree to the main translation tree we keep for Greek docs. >> ------------------------------------------------------------------------ >> 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. ;-) ACK. If you want me to run any tests or test patches, please feel free to send them this way :-)