package: fileutils
version: 4.1-10

I just found out that df reports filesystem usage wrongly when /etc/mtab isn't 
correct. Is it possible/sane to change this so it reads the list of 
filesystems directly (e.g. from /proc/mounts) rather from mtab?

The way I found this bug is I have a machine which I have been trying to set 
up with a read only filesystem for booting from. This makes it hard to have 
it boot up with mtab set right, and I haven't got round to fixing it.

whale:~# cat /etc/mtab
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
whale:~# cat /proc/mounts
/dev/root / ext3 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/ram0 /tmp tmpfs rw 0 0
/dev/hda5 /var ext3 rw 0 0
/dev/hda3 /usr ext3 rw 0 0
/dev/hda6 /local ext3 rw 0 0
/dev/hda6 /home ext3 rw 0 0
/dev/hda6 /usr/local ext3 rw 0 0
/dev/hda7 /etc ext3 rw 0 0
whale:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             471M   35M  411M   8% /
whale:~# df -h /dev/hda6
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6             471M   35M  411M   8%
whale:~#

The relevant point is that the last df query actually shows the wrong usage 
for /dev/hda6, rather than nothing at all, which would be better.

andy baxter.

-- 
Please don't send me html mail or un-notified attachments. These will be 
automatically filed under 'probable spam' unless I'm expecting an email which 
hasn't come.
If you do need to send an attachment or html mail, put [attachment] or [html] 
in the subject line.
Thanks, andy.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to