From nobody@FreeBSD.org  Fri Jun 23 12:57:52 2006
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 CD1FC16A47C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jun 2006 12:57:52 +0000 (UTC)
	(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 2697943D7D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jun 2006 12:57:44 +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 k5NCvhGg091429
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jun 2006 12:57:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k5NCvh9r091428;
	Fri, 23 Jun 2006 12:57:43 GMT
	(envelope-from nobody)
Message-Id: <200606231257.k5NCvh9r091428@www.freebsd.org>
Date: Fri, 23 Jun 2006 12:57:43 GMT
From: Mark Jacobs <jacobsm@gate.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: df command shows negative space used
X-Send-Pr-Version: www-2.3

>Number:         99364
>Category:       bin
>Synopsis:       df(1) command shows negative space used
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 23 13:00:32 GMT 2006
>Closed-Date:    Wed Apr 25 00:59:10 GMT 2007
>Last-Modified:  Wed Apr 25 00:59:10 GMT 2007
>Originator:     Mark Jacobs
>Release:        6.1 Stable
>Organization:
>Environment:
FreeBSD primary.jacobs.org 6.1-STABLE FreeBSD 6.1-STABLE #0: Thu Jun  8 09:59:25 EDT 2006     mark@primary.jacobs.org:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Issue a df command

primary# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s2a    496M     63M    393M    14%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s2e    496M    -36K    456M    -0%    /tmp
/dev/ad0s2f     52G     39G    8.4G    82%    /usr
/dev/ad0s2d    1.9G     89M    1.7G     5%    /var

Notice space report for /tmp 


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Fri Jun 23 19:09:23 UTC 2006 
State-Changed-Why:  
This is expected and is the correct behaviour.    
Please read fsck(8) (look for "-m" option) and tunefs(8)  
("-m" as well).   


http://www.freebsd.org/cgi/query-pr.cgi?pr=99364 

From: Maxim Konovalov <maxim@macomnet.ru>
To: Matteo Riondato <matteo@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: bin/99364: df(1) command shows negative space used
Date: Fri, 23 Jun 2006 23:17:50 +0400 (MSD)

 On Fri, 23 Jun 2006, 19:10-0000, Matteo Riondato wrote:
 
 > Synopsis: df(1) command shows negative space used
 >
 > State-Changed-From-To: open->closed
 > State-Changed-By: matteo
 > State-Changed-When: Fri Jun 23 19:09:23 UTC 2006
 > State-Changed-Why:
 > This is expected and is the correct behaviour.
 > Please read fsck(8) (look for "-m" option) and tunefs(8)
 > ("-m" as well).
 
 Actually, it is not a correct behaviour and I fail to see how it
 correlates with MINFREE:
 
 Filesystem     Size    Used   Avail Capacity  Mounted on
 /dev/ad0s2e    496M    -36K    456M    -0%    /tmp
 
 Btw, fsck doesn't have -m key.  Do you mean newfs?
 
 -- 
 Maxim Konovalov
State-Changed-From-To: closed->open 
State-Changed-By: matteo 
State-Changed-When: Fri Jun 23 19:24:26 UTC 2006 
State-Changed-Why:  
Reopen this PR. It should not have been closed. 
I misread the df line. Sorry for the noise 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99364 

From: Matteo Riondato <matteo@freebsd.org>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: bin/99364: df(1) command shows negative space used
Date: Fri, 23 Jun 2006 21:24:07 +0200

 On Fri, Jun 23, 2006 at 11:17:50PM +0400, Maxim Konovalov wrote:
 > On Fri, 23 Jun 2006, 19:10-0000, Matteo Riondato wrote:
 > 
 > Actually, it is not a correct behaviour and I fail to see how it
 > correlates with MINFREE:
 > 
 > Filesystem     Size    Used   Avail Capacity  Mounted on
 > /dev/ad0s2e    496M    -36K    456M    -0%    /tmp
 
 You're obviously right. I misread the df line. Sorry for the noise and
 thank you for having pointed this out.
 
 > Btw, fsck doesn't have -m key.  Do you mean newfs?
 Yes, I meant newfs but doesn't matter anymore.
 Best Regards
 -- 
 Matteo Riondato
 FreeBSD Committer (http://www.freebsd.org)
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)

From: Giorgos Keramidas <keramida@freebsd.org>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: bin/99364: df(1) command shows negative space used
Date: Sat, 24 Jun 2006 00:19:22 +0300

 On 2006-06-23 19:20, Maxim Konovalov <maxim@macomnet.ru> wrote:
 >On Fri, 23 Jun 2006, 19:10-0000, Matteo Riondato wrote:
 >> Synopsis: df(1) command shows negative space used
 >> State-Changed-From-To: open->closed
 >> State-Changed-By: matteo
 >> State-Changed-When: Fri Jun 23 19:09:23 UTC 2006
 >> State-Changed-Why:
 >> This is expected and is the correct behaviour.
 >> Please read fsck(8) (look for "-m" option) and tunefs(8)
 >> ("-m" as well).
 >
 >Actually, it is not a correct behaviour and I fail to see how it
 >correlates with MINFREE:
 >
 >Filesystem     Size    Used   Avail Capacity  Mounted on
 >/dev/ad0s2e    496M    -36K    456M    -0%    /tmp
 >
 >Btw, fsck doesn't have -m key.  Do you mean newfs?
 
 It looks like your /tmp filesystem needs an fsck.
 Can you boot in single user mode and `fsck -y /tmp'?
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Tue Apr 24 03:49:01 UTC 2007 
State-Changed-Why:  
To submitter: does this problem still recur? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99364 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Apr 25 00:58:54 UTC 2007 
State-Changed-Why:  
Submitter noted that an fsck fixed this problem. 

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