Bug 4712

Summary: du-k-works test fails
Product: Busybox Reporter: Anders Ossowicki <aowi>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.19.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Patch if this is intended behaviour

Description Anders Ossowicki 2012-01-17 13:20:32 UTC
The du-k-works test seems to assume that du -k on a directory with two files totaling 80 kilobytes should report either 80k or 88k. In some cases however, both busybox' du -k and coreutils' du -k reports a size of 84k which causes the test to fail. I can reproduce this with the latest git HEAD, make defconfig, make, make test on ext3 and ext4 filesystems.

Build output of 1.9.3 attached.
Comment 1 Anders Ossowicki 2012-01-17 13:27:32 UTC
Created attachment 3980 [details]
Patch if this is intended behaviour

The attached patch can be applied if du reports the right size. I think it does, given that it agrees with coreutils but I'm not the right guy to make that call.