Re: [PATCH] mtree should not output size if the file is not a regular file

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Tue, 10 Sep 2013 01:21:02 +0200
Christos Zoulas <christos_at_zoulas.com> writes:
> Xin Li <delphij_at_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
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Mon Sep 09 2013 - 21:21:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC