with Patch... Re: [BusyBox] Bug in human_readable.c???
Glenn McGrath
bug1 at optushome.com.au
Mon Sep 1 09:23:57 UTC 2003
On Mon, 1 Sep 2003 10:35:39 +0200
Thomas Fröhlich <bornland at gmx.at> wrote:
> Since I had this Problem!
> I wrote this in my email! ->
> >> I hope I didn't destroy "report a wrong file size for files larger
> >than> 4GBtye"-Patch, but I couldn't test it!
With your patch
# ./busybox df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 0 0 0 40% /
/dev/discs/disc0/part5 0 0 0 26% /var
/dev/discs/disc0/part6 0 0 0 93% /usr
/dev/discs/disc0/part7 0 0 0 55% /home
none 0 0 0 0% /dev/shm
Without your patch
# ./busybox df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 957.0M 385.8M 571.2M 40% /
/dev/discs/disc0/part5 1.9G 503.2M 1.4G 26% /var
/dev/discs/disc0/part6 3.7G 3.5G 277.5M 93% /usr
/dev/discs/disc0/part7 7.5G 4.1G 3.4G 55% /home
none 124.1M 0 124.1M 0% /dev/shm
coreutils version
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/discs/disc0/part2
957M 386M 572M 41% /
/dev/discs/disc0/part5
1.9G 504M 1.4G 27% /var
/dev/discs/disc0/part6
3.8G 3.5G 278M 93% /usr
/dev/discs/disc0/part7
7.5G 4.2G 3.4G 56% /home
none 125M 0 125M 0% /dev/shm
It looks to me there is/was two problem, one is the acuracy of result,
that is what human_readable revision 1.8 fixed, and an alignment problem
that i think your patch is supposed to fix, but it doesnt work for me.
Glenn
More information about the busybox
mailing list