From nobody@FreeBSD.org  Tue Nov  1 17:31:29 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DE7DE16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Nov 2005 17:31:29 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ABE5643D68
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Nov 2005 17:31:29 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jA1HVTK4070102
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 1 Nov 2005 17:31:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jA1HVTH2070034;
	Tue, 1 Nov 2005 17:31:29 GMT
	(envelope-from nobody)
Message-Id: <200511011731.jA1HVTH2070034@www.freebsd.org>
Date: Tue, 1 Nov 2005 17:31:29 GMT
From: "Michael P. Soulier" <msoulier@digitaltorque.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: df reports negative drive space
X-Send-Pr-Version: www-2.3

>Number:         88355
>Category:       misc
>Synopsis:       df reports negative drive space
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 01 17:40:13 GMT 2005
>Closed-Date:    Tue Nov 01 19:32:52 GMT 2005
>Last-Modified:  Tue Nov 01 19:32:52 GMT 2005
>Originator:     Michael P. Soulier
>Release:        5.4
>Organization:
>Environment:
FreeBSD kanga.digitaltorque.ca 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386         
>Description:
I have a 200Gig Maxtor drive. It is partitioned in several pieces, but the bulk of the space is mounted at /usr. Oddly, df reports negative space on the / partition. 

msoulier@kanga$ df
Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/ad0s1a    253678   249376    -15992   107%    /
devfs               1        1         0   100%    /dev
/dev/ad0s1e    253678       16    233368     0%    /tmp
/dev/ad0s1f 191645218 10722808 165590794     6%    /usr
/dev/ad0s1d    253678    23066    210318    10%    /var

msoulier@kanga$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a    248M    244M    -16M   107%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s1e    248M     16K    228M     0%    /tmp
/dev/ad0s1f    183G     10G    158G     6%    /usr
/dev/ad0s1d    248M     23M    205M    10%    /var

Any reason why this would happen?
>How-To-Repeat:
In my case, install Maxtor 200Gig drive with FreeBSD 5.4, and run df. 
>Fix:
              
>Release-Note:
>Audit-Trail:

From: David Taylor <davidt@yadt.co.uk>
To: "Michael P. Soulier" <msoulier@digitaltorque.ca>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/88355: df reports negative drive space
Date: Tue, 1 Nov 2005 18:51:24 +0000

 On Tue, 01 Nov 2005, Michael P. Soulier wrote:
 > 
 > msoulier@kanga$ df -h
 > Filesystem     Size    Used   Avail Capacity  Mounted on
 > /dev/ad0s1a    248M    244M    -16M   107%    /
 > devfs          1.0K    1.0K      0B   100%    /dev
 > /dev/ad0s1e    248M     16K    228M     0%    /tmp
 > /dev/ad0s1f    183G     10G    158G     6%    /usr
 > /dev/ad0s1d    248M     23M    205M    10%    /var
 > 
 > Any reason why this would happen?
 
 See the -m option to newfs(8).
 
 Some space (default 8%) is reserved for use by root only, and
 is not shown as free space.
 
 -- 
 David Taylor
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Tue Nov 1 19:30:34 GMT 2005 
State-Changed-Why:  
This is expected UFS behavior, not a bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88355 
>Unformatted:
