From owner-freebsd-current@FreeBSD.ORG Wed Sep 3 13:14:45 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 BE85A1065680 for ; Wed, 3 Sep 2008 13:14:45 +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 0C77B8FC18 for ; Wed, 3 Sep 2008 13:14:44 +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 m83DEV5E028711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 3 Sep 2008 16:14:36 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id m83DEU0C092214 for ; Wed, 3 Sep 2008 16:14:30 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id m83DEUc1092196; Wed, 3 Sep 2008 16:14:30 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: freebsd-current@freebsd.org Date: Wed, 03 Sep 2008 16:14:30 +0300 Message-ID: <87hc8x74nd.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: m83DEV5E028711 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.288, 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 Subject: 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 13:14:45 -0000 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 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 MfP4: Verify correct interaction with umask: Add another file with different permissions and set a non-zero umask during the actual copy tests. The extra entry increases the size of the test archives of course, so adjust the expected sizes. ------------------------------------------------------------------------ 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. Is anyone else seeing similar/bogus cpio block counts?