Date: Mon, 09 Sep 2013 23:40:02 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: d@delphij.net Cc: christos@NetBSD.org, FreeBSD Current <freebsd-current@freebsd.org>, 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: <86bo41fzd9.fsf@nine.des.no> In-Reply-To: <522E3F06.3090003@delphij.net> (Xin Li's message of "Mon, 09 Sep 2013 14:35:02 -0700") References: <522E3F06.3090003@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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 --=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?86bo41fzd9.fsf>