bug-coreutils
[Top][All Lists]
Advanced

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

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


From: Jim Meyering
Subject: Re: du reports different results for "." (proposed patch)
Date: Thu, 21 Feb 2008 11:01:11 +0100

Andreas Schwab <address@hidden> wrote:
> address@hidden (Bob Proulx) writes:
>
>> Fun how the total directory size just keeps getting smaller and
>> smaller.  With enough hard links the directory has disappeared!  I
>> will add this to my list of stupid filesystem tricks.
>>
>> This doesn't seem a particularly satisfying result as it doesn't seem
>> like a reasonable outcome.
>
> Perhaps we should reset the list of encountered hard links with every
> file argument?

du used to do that in some cases, but I changed it a few years ago:

  http://thread.gmane.org/gmane.comp.gnu.fileutils.bugs/881
  
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=ca6d256f125ea496cdb059a201f92f77f1ce0c69

--count-links makes it count *all* hard links,
even the ones in the same command-line-specified directory.

If people think this is important/useful enough
it might deserve a new option.




reply via email to

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