OSDN Git Service

du: 32 bit systems were maxing out at 2GB when they should max out at 2TB
authorRob Landley <rob@landley.net>
Sat, 1 Oct 2016 23:19:45 +0000 (18:19 -0500)
committerElliott Hughes <enh@google.com>
Tue, 25 Oct 2016 18:39:46 +0000 (11:39 -0700)
commita801c5019b8f20600375370595fb5f9925180d89
tree4ef967386fb1391cb8bfe07d03d45a03044c25b4
parentf9a7ae754c273fc862a64781f17ce9c67470a8e0
du: 32 bit systems were maxing out at 2GB when they should max out at 2TB
(1<<32 blocks * 512 bytes, done with unsigned 64 bit math).

(cherry picked from commit 8d0f0b6ba864155914f88e39076213b4486efee4)

Bug: http://b/32331571
Test: du -sh /data/local/tmp after filling that directory
Change-Id: I8c8ad146f4c1c1daa6c2cf276ec01aa6e390cc91
generated/globals.h
toys/posix/du.c