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: Mon, 09 Sep 2013 23:40:02 +0200
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
Received on Mon Sep 09 2013 - 19:40:33 UTC

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