From owner-freebsd-current@FreeBSD.ORG Mon Sep 9 23:21:33 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E5958476; Mon, 9 Sep 2013 23:21:33 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id A7C722B2F; Mon, 9 Sep 2013 23:21:33 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id 4EA464097; Mon, 9 Sep 2013 23:21:32 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id 96AE136157; Tue, 10 Sep 2013 01:21:02 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: christos@zoulas.com (Christos Zoulas) Subject: Re: [PATCH] mtree should not output size if the file is not a regular file References: <20130909230456.03A8A97129@rebar.astron.com> Date: Tue, 10 Sep 2013 01:21:02 +0200 In-Reply-To: <20130909230456.03A8A97129@rebar.astron.com> (Christos Zoulas's message of "Mon, 9 Sep 2013 19:04:55 -0400") Message-ID: <86zjrleg4h.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Current , d@delphij.net, Brooks Davis , Tim Kientzle X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 09 Sep 2013 23:21:34 -0000 Christos Zoulas writes: > Xin Li writes: > > I think it doesn't make sense to emit size information for non-regular > > files like directories, symlinks, etc. although both our and NetBSD's > > mtree would emit it. > We could change that, but what's the harm? Roll a large tarball (e.g. a complete FreeBSD installation). Copy it to different machines with different filesystems. Untar and run mtree on the result. Notice that you get different output on each machine because they report different sizes for directories; one might report the actual on-disk size (which might vary depending on past contents) while the other might report the number of entries. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no