<div dir="ltr"><div>Why isn't `TT.total` the issue?<br></div><div><br></div><div>I couldn't find `dirtree::extra`, could you link me to that?<br><br>A patch would consist of changing one or more `long` into `long long`?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-29 20:22 GMT+02:00 enh <span dir="ltr"><<a href="mailto:enh@google.com" target="_blank">enh@google.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(looks like the real problem is dirtree::extra is long.)<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Sep 29, 2016 at 11:17 AM, enh <<a href="mailto:enh@google.com">enh@google.com</a>> wrote:<br>
> works for me on Nexus 9. looks like du.c's TT.total is a signed long,<br>
> so on LP32...<br>
><br>
> On Thu, Sep 29, 2016 at 11:07 AM, darken <<a href="mailto:darken@darken.eu">darken@darken.eu</a>> wrote:<br>
>> The du applet prints a ridiculously large size if the total size exceeds<br>
>> 2GB.<br>
>><br>
>> Reproduced on a Nexus5 with Android 6.0, but I don't think this is Android<br>
>> specific.<br>
>> It doesn't matter if it's multiple files or a single one.<br>
>> Could reproduce it by dd'ing a 2GB file full of zeros.<br>
>><br>
>>> root@hammerhead:/cache # busybox du -hs /sdcard/2GBTestFile<br>
>>><br>
>>> 2.5G    /sdcard/2GBTestFile<br>
>>><br>
>>> root@hammerhead:/cache # ./toybox-armv6l du -s /sdcard/2GBTestFile<br>
>>><br>
>>> 18446744073707954404    /sdcard/2GBTestFile<br>
>>><br>
>>> root@hammerhead:/cache # ./toybox-armv6l du -hs /sdcard/2GBTestFile<br>
>>><br>
>>> 16E     /sdcard/2GBTestFile<br>
>><br>
>><br>
>> This ticket has more console logs showing the issue.<br>
>> <a href="https://github.com/landley/toybox/issues/51" rel="noreferrer" target="_blank">https://github.com/landley/<wbr>toybox/issues/51</a><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Toybox mailing list<br>
>> <a href="mailto:Toybox@lists.landley.net">Toybox@lists.landley.net</a><br>
>> <a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer" target="_blank">http://lists.landley.net/<wbr>listinfo.cgi/toybox-landley.<wbr>net</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Elliott Hughes - <a href="http://who/enh" rel="noreferrer" target="_blank">http://who/enh</a> - <a href="http://jessies.org/~enh/" rel="noreferrer" target="_blank">http://jessies.org/~enh/</a><br>
> Android native code/tools questions? Mail me/drop by/add me as a reviewer.<br>
<br>
<br>
<br>
--<br>
Elliott Hughes - <a href="http://who/enh" rel="noreferrer" target="_blank">http://who/enh</a> - <a href="http://jessies.org/~enh/" rel="noreferrer" target="_blank">http://jessies.org/~enh/</a><br>
Android native code/tools questions? Mail me/drop by/add me as a reviewer.<br>
</div></div></blockquote></div><br></div>