On Tuesday 26 February 2008 22:31, Clem Taylor wrote:
> On Thu, Nov 15, 2007 at 3:44 AM, Denys Vlasenko
> <[EMAIL PROTECTED]> wrote:
> >  I removed special-casing of rootfs and /dev/root from df.
> 
> This is causing problems for my startup scripts in my attempted move
> to 1.9.1. I was using df to map '/' to the mounted device
> (/dev/mtdblock0 or /dev/mtdblock1). With the new df, '/' shows up
> twice once as rootfs and once as /dev/root. I think the device lookup
> and special case handling of '/' was actually useful. I still haven't
> found an acceptable workaround to discover this mapping.

Will "find the latest line for '/'" work?

> busybox 1.9.1 df:
> Filesystem                Size      Used Available Use% Mounted on
> rootfs                   14.0M     11.1M      2.9M  79% /
> /dev/root                14.0M     11.1M      2.9M  79% /
> /dev/mtdblock3          164.0k    164.0k         0 100% /identity
> /dev/mtdblock4            3.3M    320.0k      2.9M  10% /nv
> 
> busybox 1.5.0.svn df:
> Filesystem                Size      Used Available Use% Mounted on
> /dev/mtdblock0           14.0M     10.6M      3.4M  76% /
> /dev/mtdblock3          164.0k    164.0k         0 100% /identity
> /dev/mtdblock4            3.3M    292.0k      3.0M   9% /nv

It was done to match coreutils:

bash-3.2# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                  964500    448052    467452  49% /
/dev/root               964500    448052    467452  49% /
/dev/sda6             15622696   6911148   8711548  44% /.share
/dev/sda7             97656112  92049784   5606328  94% /.1
/dev/sda8            171930376 140166436  31763940  82% /.2
/dev/sda6             15622696   6911148   8711548  44% /.local

bash-3.2# /usr/bin/df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                  964500    448052    467452  49% /
/dev/root               964500    448052    467452  49% /
/dev/sda6             15622696   6911148   8711548  45% /.share
/dev/sda7             97656112  92049784   5606328  95% /.1
/dev/sda8            171930376 140166428  31763948  82% /.2
/dev/sda6             15622696   6911148   8711548  45% /.local

bash-3.2# df --help
BusyBox v1.9.0.svn (2007-12-20 23:47:50 GMT) multi-call binary
...

bash-3.2# /usr/bin/df --version
df (GNU coreutils) 6.8
...

--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to