Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Sep 2013 01:21:02 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        christos@zoulas.com (Christos Zoulas)
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, d@delphij.net, Brooks Davis <brooks@FreeBSD.org>, Tim Kientzle <kientzle@acm.org>
Subject:   Re: [PATCH] mtree should not output size if the file is not a regular file
Message-ID:  <86zjrleg4h.fsf@nine.des.no>
In-Reply-To: <20130909230456.03A8A97129@rebar.astron.com> (Christos Zoulas's message of "Mon, 9 Sep 2013 19:04:55 -0400")
References:  <20130909230456.03A8A97129@rebar.astron.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Christos Zoulas <christos@zoulas.com> writes:
> Xin Li <delphij@delphij.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zjrleg4h.fsf>