Subject: Funny df output
To: NetBSD current-users <current-users@NetBSD.org>
From: Bjoern Labitzke <hermit@labitzke.isdn.cs.tu-berlin.de>
List: current-users
Date: 10/28/1999 14:33:46
Hello...

I am running -current/i386 from yesterday. I think there is a
problem with df output of union mounts for some time now:

~/ 63: df -k
Filesystem                     1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a                        3886444  2322757  1369364    62%    /
/dev/wd0c                        3991560  1285116  2506866    33%    /usr/local/audio
/dev/wd0a                        2047936  1354656   693280    66%    /mnt/dos1
kernfs                                 1        1        0   100%    /kern
procfs                                 4        4        0   100%    /proc
mfs:108                            47551        9    45164     0%    /tmp
<below>:/usr/cvs.netbsd/src      6209201  4645514  1369364    77%    /usr/src
<below>:/usr/cvs.netbsd/pkgsrc   6209201  4645514  1369364    77%    /usr/pkgsrc
<below>:/usr/cvs.netbsd/xsrc     6209201  4645514  1369364    77%    /usr/xsrc
pid116@labitzke:/cd                    0        0        0   100%    /cd

The count of used blocks seems to be the double of the correct
number of 1K blocks. But how the overall number is calculated
is beyond my understanding. Is this some kind of user error I
don't see or a bug?

In my /etc/fstab I have:

/dev/sd0a               /                       ffs     rw      1 1
/dev/sd0b               none                    swap    sw      0 0
/dev/wd0c               /usr/local/audio        ffs     rw      1 2
/dev/wd0a               /mnt/dos1               msdos   rw      0 2
#/dev/wd0b              /mnt/dos2               msdos   rw      0 2
/kern                   /kern                   kernfs  rw      0 0
proc                    /proc                   procfs  rw      0 0
swap                    /tmp                    mfs     rw,-s98304,async,nodev,nosuid 0 0
/usr/cvs.netbsd/src     /usr/src                union   rw,-b   0 0
/usr/cvs.netbsd/pkgsrc  /usr/pkgsrc             union   rw,-b   0 0
/usr/cvs.netbsd/xsrc    /usr/xsrc               union   rw,-b   0 0

Thanks in advance...

Bjoern
 
-- 
Bjoern Labitzke  <hermit@cs.tu-berlin.de>
   Use PGP! (Don't you use envelopes for your letters?)