Subject: Re: bug in df?
To: endgame <Brendan.D.Burns@williams.edu>
From: Paul Goyette <paul@whooppee.com>
List: port-mac68k
Date: 06/02/1998 17:49:13
I _thought_ that this was in the FAQ..

NetBSD, like most Unices, reserves between 5% and 10% of a file system,
so that the root user (under which many system utilities run) has a
chance to log errors, etc., when the file system gets full.  The df
program calculates the available space as a percentage of the rest of
the file system (i.e., the unreserved part).  So, it is entirely
possible for a file system to show up with > 100% capacity if the system
is "into" the reserved space!

On Tue, 2 Jun 1998, endgame wrote:

> I think I have found a bug in the df program.
> I have a 110 meg partition, however anytime I have over 100 megs it thinks
> I have greater than 100% capacity.  I assume that this happens because of
> the method for determining capacity. The output of df is as follows:
> 
> Filesystem	1k-blocks	Used	Avail	Capacity	Mounted on
> /dev/sd0a	106231		101080	-5473	106%		/
> 
> Should be easy to fix but I thought y'all should know.
> 
> 				brendan
> 
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> I do not enjoy running Steeplechase, but they do give medals for it don't they?
> 						-Kip Keino, 1972 Gold Medalist
> 				-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> 

-----------------------------------------------------------------------------
| Paul Goyette      | Public Key fingerprint:    | E-mail addresses:        |
| Network Engineer  |   0E 40 D2 FC 2A 13 74 A0  |  paul@whooppee.com       |
| and kernel hacker |   E4 69 D5 BE 65 E4 56 C6  |  paul.goyette@ascend.com |
-----------------------------------------------------------------------------