bug#1113: [BusyBox] bug#1113: df reports 0-0-0 for MSDOS (FAT) volumes
David Douthitt
ssrat at mailbag.com
Fri Mar 2 00:40:57 UTC 2001
David Douthitt wrote:
>
> Package: busybox
> Version: 0.50pre
> Severity: normal
>
> df reports 0 for all values for an MSDOS FAT filesystem. Output and
> versions attached.
And now a fix....
And the original error output I forgot to attach.... (oops!)
-------------- next part --------------
--- busybox.h Thu Mar 1 18:38:26 2001
+++ busybox.new.h Thu Mar 1 18:36:19 2001
@@ -234,10 +234,10 @@
#ifdef BB_FEATURE_HUMAN_READABLE
const char *format(unsigned long val, unsigned long hr);
+#define KILOBYTE 1024.0
+#define MEGABYTE (KILOBYTE*1024.0)
+#define GIGABYTE (MEGABYTE*1024.0)
#endif
-#define KILOBYTE 1024
-#define MEGABYTE (KILOBYTE*1024)
-#define GIGABYTE (MEGABYTE*1024)
#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
-------------- next part --------------
df (GNU fileutils) 4.0p
Written by Torbjorn Granlund, David MacKenzie, Larry McVoy, and Paul Eggert.
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
OUTPUT:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda5 2353352 2130528 103280 95% /
/dev/hda1 50755 4959 43176 10% /boot
/dev/hdc 556608 556608 0 100% /mnt/cdrom
/dev/fd0u1680 1662 1623 39 98% /mnt/floppy
OUTPUT:
BusyBox v0.50pre (2001.03.01-23:15+0000) multi-call binary -- GPL2
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use, and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
busybox, cat, chgrp, chmod, chown, clear, cp, cut, date, dd, df,
dmesg, du, dutmp, false, fdflush, find, grep, gunzip, gzip, halt,
head, hostname, id, insmod, kill, killall, ln, loadkmap, logger,
ls, makedevs, md5sum, mkdir, mkfs.minix, mknod, mkswap, mktemp,
more, mount, mv, nslookup, ping, printf, rdate, renice, rm, rmdir,
rmmod, sort, swapoff, swapon, sync, tail, tar, tee, touch, tr,
true, umount, uname, uniq, update, uptime, usleep, wc, which,
whoami, xargs, zcat
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda5 2353352 2130528 103280 95% /
/dev/hda1 50755 4959 43176 10% /boot
/dev/cdrom 556608 556608 0 100% /mnt/cdrom
/dev/fd0u1680 0 0 0 98% /mnt/floppy
More information about the busybox
mailing list