[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 21:40:33 UTC 2013
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.
I agree. The size of a directory will vary from filesystem to
filesystem, while the size of a symlink is simply the length of its
target. There is no need for it, and in the case of a directory,
including it causes spurious diffs between mtree descriptions of
identical trees on different systems.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-current
mailing list