[Bug 443] df fails on "/"

bugzilla at busybox.net bugzilla at busybox.net
Sun Jul 5 21:09:53 UTC 2009


--- Comment #2 from Denys Vlasenko <vda.linux at googlemail.com>  2009-07-05 21:09:52 UTC ---


# ./busybox df -m /
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/root                  942       611       283  68% /

Please confirm that it works for you.

> root at pep:/bin # df -m /dev/root
> Filesystem           1M-blocks      Used Available Use% Mounted on
> df: /dev/root: can't find mount point

df (GNU coreutils) 6.9 can't do it too on my home machine.
It does not work if /dev/root actually does not exist. find_mount_point()
stat's /dev/root and matches its device number to each entry in /proc/mounts,
it does not do only textual match. So, if there is not /dev/root, stat fails
and nothing matches.

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the busybox-cvs mailing list