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

Dag-Erling Smørgrav des at des.no
Mon Sep 9 23:21:34 UTC 2013


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


More information about the freebsd-current mailing list