[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: du reports different results for "." (proposed patch)
From: |
Paul Eggert |
Subject: |
Re: du reports different results for "." (proposed patch) |
Date: |
Wed, 20 Feb 2008 15:45:47 -0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Bauke Jan Douma <address@hidden> writes:
> Still, I cannot still quite fathom the difference
> I am getting with * . and . * , even given that
> there's a hard link in one of the subdirectries.
I see that this aspect of 'du' is not documented. Here's a proposed patch
to the documentation, which I hope improves things.
commit 134240f6411dd396854ed78a2a0a10ae0c74649f
Author: Paul Eggert <address@hidden>
Date: Wed Feb 20 15:34:33 2008 -0800
(du invocation): Document default behavior on hard links, and why
argument order matters.
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 40aee6f..a6a6c62 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -9657,6 +9657,11 @@ directory. Normally the disk space is printed in units
of
1024 bytes, but this can be overridden (@pxref{Block size}).
Non-integer quantities are rounded up to the next higher unit.
+If two or more hard links point to the same file, only one of the hard
+links is counted. The @var{file} argument order affects which links
+are counted, and changing the argument order may change the numbers
+that @command{du} outputs.
+
The program accepts the following options. Also see @ref{Common options}.
@table @samp
- du reports different results for ".", Richard Ems, 2008/02/20
- Re: du reports different results for ".", James Youngman, 2008/02/20
- Re: du reports different results for ".", Mike Frysinger, 2008/02/20
- Re: du reports different results for ".", Bauke Jan Douma, 2008/02/20
- Re: du reports different results for ".", Bauke Jan Douma, 2008/02/20
- Re: du reports different results for ".", Mike Frysinger, 2008/02/20
- Re: du reports different results for ".", Bauke Jan Douma, 2008/02/20
- Re: du reports different results for "." (proposed patch),
Paul Eggert <=
- Re: du reports different results for "." (proposed patch), Bob Proulx, 2008/02/20
- Re: du reports different results for "." (proposed patch), Andreas Schwab, 2008/02/21
- Re: du reports different results for "." (proposed patch), Jim Meyering, 2008/02/21
- Re: du reports different results for "." (proposed patch), Jim Meyering, 2008/02/21
- Re: du reports different results for "." (proposed patch), Andreas Schwab, 2008/02/21
- Re: du reports different results for "." (proposed patch), Andreas Schwab, 2008/02/21
- Re: du reports different results for "." (proposed patch), Paul Eggert, 2008/02/29
- Re: du reports different results for "." (proposed patch), Jim Meyering, 2008/02/21
Re: du reports different results for ".", Bob Proulx, 2008/02/20