Subject: Re: df -k incorrect results?
To: Colin Wood <cwood@ichips.intel.com>
From: Frederick Bruckman <fredb@fb.sa.enteract.com>
List: port-mac68k
Date: 04/29/1998 10:26:23
On Wed, 29 Apr 1998, Colin Wood wrote:
> Wenchi Liao wrote:
> > Hello.
>
> Hi!
>
> > I have a Centris 605 with bsd 1.3.1 generic. 32M ram, 1.25G hard
> > drive. When I run disklabel, I get this (slightly edited):
> > c: 2503872 0 unused 0 0 # (Cyl. 0 - 6841*)
> > So the entire drive is roughly 1G. Minus a tiny mac partition, and the
> > total netbsd usable drive space is under a gig. I'm assuming "size" is
> > given in sectors, and disklabel reports 512 bytes/sector. Which
> > corresponds nicely to the known hard drive size (or at least according
> > to hd sc setup).
> >
> > I've briefly skimmed the archived mailing list. Is this a known
> > problem? or am I just missing something really obvious?
>
> This is a known problem. What's not quite known is what is actually
> causing it :-( Needless to say, df's output for anything beyond the
> first partition is probably wrong. I'm not sure if there is a PR filed on
> this or not. I really need to add this to the FAQ, I guess.
df appears to be fixed in -current.
fredb-> unset BLOCKSIZE ; df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/sd0a 1889896 1129490 571416 66% /
/dev/sd1g 97566 3540 84268 4% /var
mfs:84 83106 14 78936 0% /tmp
/dev/sd1e 659738 329610 264154 55% /usr/xsrc
kernfs 2 2 0 100% /kern
procfs 8 8 0 100% /proc
fredb-> df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 944948 564745 285708 66% /
/dev/sd1g 48783 1770 42134 4% /var
mfs:84 41553 7 39468 0% /tmp
/dev/sd1e 329869 164805 132077 55% /usr/xsrc
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
fredb-> export BLOCKSIZE=1k ; df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 944948 564745 285708 66% /
/dev/sd1g 48783 1770 42134 4% /var
...