[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21926: du --summarize prunes subdirectories from output.
From: |
Michaël Cadilhac |
Subject: |
bug#21926: du --summarize prunes subdirectories from output. |
Date: |
Tue, 17 Nov 2015 11:22:29 +0530 |
On Tue, Nov 17, 2015 at 4:22 AM, Pádraig Brady <address@hidden> wrote:
> On 15/11/15 08:41, Michaël Cadilhac wrote:
>> $ mkdir -p a/b
>> $ du -s a a/b
>> 0 a
>> $
>>
>> It is either a bug of du or of its man.
>
> Yes it's not ideal.
Thanks for the pointer. Is it conceivable to separate the behaviors
of --summarize and of --max-depth=0? After all, I'm expecting some
things to be stripped out with --max-depth=0, but certainly not with
--summarize (based on the man). This would require to store the size
of every dev,ino pair, though.
M.