[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10282: change in behavior of du with multiple arguments (commit efe5
From: |
Eric Blake |
Subject: |
bug#10282: change in behavior of du with multiple arguments (commit efe53cc) |
Date: |
Tue, 13 Dec 2011 11:03:54 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 |
On 12/13/2011 10:37 AM, Kamil Dudka wrote:
> 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?
Fewer forks.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- bug#10281: change in behavior of du with multiple arguments (commit efe53cc), (continued)
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Eric Blake, 2011/12/12
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Eric Blake, 2011/12/12
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Paul Eggert, 2011/12/12
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Jim Meyering, 2011/12/13
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Kamil Dudka, 2011/12/13
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Paul Eggert, 2011/12/13
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Eric Blake, 2011/12/13
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Kamil Dudka, 2011/12/13
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc),
Eric Blake <=
- bug#10282: change in behavior of du with multiple arguments (commit efe53cc), Paul Eggert, 2011/12/13