[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: du reports different results for "." (proposed patch)

From: Andreas Schwab
Subject: Re: du reports different results for "." (proposed patch)
Date: Thu, 21 Feb 2008 11:37:33 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> Jim Meyering <address@hidden> writes:
>> address@hidden (Bob Proulx) wrote:
>>> This doesn't seem a particularly satisfying result as it doesn't seem
>>> like a reasonable outcome.
>> Have you looked at the --count-links option?
>>   -l, --count-links     count sizes many times if hard linked
> That goes too far.  What I would naïvely expect is that "du -s a b" and
> "du -s a; du -s b" produces the same output.

I just checked various *BSD manpages, and they explicitly say to count
hard links only once per invocation, so it is probably better to stay
compatible here.  (POSIX is not that clear in this point, but it appears
to be a valid interpretation.)


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]