If it is a bug in df, it sure isn't a new one...

this is a RH5.2 box (I think all errata applied) fileutils is
3.16-10.

[root@tweedle /mnt]# mount
/dev/sda1 on / type ext2 (rw)
none on /proc type proc (rw)
[root@tweedle /mnt]# df /dev/sda1
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sda1             939573  628943   262093     71%   /
[root@tweedle /mnt]# df /dev/sda
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sda              939573  628943   262093     71%
[root@tweedle /mnt]# df /dev/sda3
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sda3             939573  628943   262093     71%
[root@tweedle /mnt]# df /dev/hda
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda              939573  628943   262093     71%
[root@tweedle /mnt]# df /dev/hda1
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda1             939573  628943   262093     71%

but then look at this...

[root@tweedle /mnt]# touch foo
[root@tweedle /mnt]# df foo
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sda1             939573  628943   262093     71%   /

together these show that it's accurately reporing the space on the
device that holds the files (special device files or otherwise) so
are you sure that isn't the sizing for your root partion? The other
thing seems to be that it isn't correctly translating the filesystem
for device files...

[root@tweedle /dev]# df /dev/random
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/random           939573  628943   262093     71%
[root@tweedle /dev]# df /dev/psaux
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/psaux            939573  628943   262093     71%

... like it does for normal files ...

[root@tweedle /root]# df 3c59x.o
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sda1             939573  628943   262093     71%   /
[root@tweedle /root]# df /root/mbox
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sda1             939573  628943   262093     71%   /


  cabbey at home dot net <*> http://members.home.net/cabbey
           I want a binary interface to the brain!
Today's opto-mechanical digital interfaces are just too slow!

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to