GNU bug report logs -
#10282
du: hard-links counting with multiple arguments (commit
Previous Next
Reported by: Kamil Dudka <kdudka <at> redhat.com>
Date: Mon, 12 Dec 2011 20:05:02 UTC
Severity: wishlist
Tags: wontfix
Merged with 10281,
11526
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #31 received at 10282 <at> debbugs.gnu.org (full text, mbox):
On Tuesday 13 December 2011 18:16:12 Eric Blake wrote:
> I think the proposal is to add a new option that forces du to reset its
> duplicate inode hash table for each command line argument, to make
> behavior more like traditional du, even though it means -s can then
> output a larger usage by summing the first column than what you would
> get by the default behavior, when encountering command line arguments
> that are a duplicate with an inode already traversed earlier in the
> command line. --count-links isn't quite right, because you still want
> to elide links within a single directory of the command-line argument.
> Or maybe --count-links gains an optional argument, that says how to
> count links:
>
> --count-links=none -> POSIX behavior (if POSIX requires elision across
> command line arguments
> --count-links=per-directory -> traditional behavior, resetting hash
> between command line arguments
> --count-links == --count-links=all -> count every file on every encounter
What would be the difference between the 'per-directory' variant and invoking
du multiple times, giving it one argument at a time?
Kamil
This bug report was last modified 6 years and 303 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.