du: use long long for size field
authorIan Wienand <ianw@vmware.com>
Tue, 28 Feb 2012 02:10:31 +0000 (03:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 28 Feb 2012 02:10:31 +0000 (03:10 +0100)
commit694738f4eb26e8c46e72be7f9c0be64b3a785161
tree1555b74756eb6f15e264dc298f65b740252db43b
parentfc4ebd0d0b189813fa7f8866b0ef590f1ef44f74
du: use long long for size field

du has issues with files reporting large block counts on
32-bit systems with 4 byte longs.  From looking at the stat.c code, it
seems the preference is to use 'long long', rather than blkcnt_t.

function                                             old     new   delta
du                                                   420     444     +24
du_main                                              317     321      +4
print                                                 43      41      -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 28/-2)              Total: 26 bytes

Signed-off-by: Ian Wienand <ianw@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/du.c