df -a
Clem Taylor
clem.taylor at gmail.com
Wed Feb 27 17:08:40 UTC 2008
On Wed, Feb 27, 2008 at 9:41 AM, Denys Vlasenko
<vda.linux at googlemail.com> wrote:
> Will "find the latest line for '/'" work?
The work around I initially tried was to parse /proc/cmdline and map
'root=[0-9a-f]+' to a device. I didn't really like doing this, so I
just backed out the df change as a patch to my buildroot.
> It was done to match coreutils.
I hadn't noticed this with coreutils 6.9:
$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / xfs rw,sunit=512,swidth=1536,ikeep,noquota 0 0
/proc /proc proc rw 0 0
....
$ /bin/df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 2.1T 1.9T 194G 91% /
/dev/sda1 130M 41M 82M 34% /boot
...
$ /bin/df --version
df (GNU coreutils) 6.9
--Clem
More information about the busybox
mailing list