[BusyBox] df with post 2.4.18 kernels
Jacques Nilo
jnilo at users.sourceforge.net
Sun Jan 12 11:01:03 UTC 2003
The ouput of df (busybox 0.63) for a LEAF "Bering" distro with a 2.4.20
kernel gives:
# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 6144 4916 1228 80% /
/dev/root 6144 4916 1228 80% /
tmpfs 15288 164 15124 1% /tmp
tmpfs 2048 192 1856 9% /var/log
The corresponding /proc/mounts is:
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / tmpfs rw 0 0
/proc /proc proc rw 0 0
tmpfs /tmp tmpfs rw 0 0
tmpfs /var/log tmpfs rw 0 0
The ouput of df (busybox 0.63) for the same distro with a 2.4.18 kernel gives:
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 6144 4916 1228 80% /
tmpfs 15288 164 15124 1% /tmp
tmpfs 2048 192 1856 9% /var/log
The corresponding /proc/mounts is:
# cat /proc/mounts
/dev/root / tmpfs rw 0 0
/proc /proc proc rw 0 0
tmpfs /tmp tmpfs rw 0 0
tmpfs /var/log tmpfs rw 0 0
The reason is that apparently A. Viro decided to show rootfs in /proc/mounts
startting with the 2.4.19 kernel. The thread is here:
http://www.uwsg.iu.edu/hypermail/linux/kernel/0204.3/0290.html
Any fix/patch planned for df wich could work for all types of 2.4 kernels ?
Thanks
Jacques
More information about the busybox
mailing list