<div dir="ltr"><div>The du applet prints a ridiculously large size if the total size exceeds 2GB.<br><br>Reproduced on a Nexus5 with Android 6.0, but I don't think this is Android specific.<br></div><div>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><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">root@hammerhead:/cache # busybox du -hs /sdcard/2GBTestFile<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2.5G /sdcard/2GBTestFile<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">root@hammerhead:/cache # ./toybox-armv6l du -s /sdcard/2GBTestFile<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">18446744073707954404 /sdcard/2GBTestFile<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">root@hammerhead:/cache # ./toybox-armv6l du -hs /sdcard/2GBTestFile<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">16E /sdcard/2GBTestFile<br></blockquote><br>This ticket has more console logs showing the issue.<br><a href="https://github.com/landley/toybox/issues/51">https://github.com/landley/toybox/issues/51</a><br></div><div><pre><code></code><code></code></pre><br></div></div>