From joe@tao.org.uk  Mon Oct  8 05:07:08 2001
Return-Path: <joe@tao.org.uk>
Received: from tao.org.uk (genius.tao.org.uk [212.135.162.51])
	by hub.freebsd.org (Postfix) with ESMTP id 4923137B408
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Oct 2001 05:07:08 -0700 (PDT)
Received: by tao.org.uk (Postfix, from userid 100)
	id 83CAB334; Mon,  8 Oct 2001 13:06:27 +0100 (BST)
Message-Id: <20011008120627.83CAB334@tao.org.uk>
Date: Mon,  8 Oct 2001 13:06:27 +0100 (BST)
From: Joe Karthauser <joe@tao.org.uk>
Reply-To: Joe Karthauser <joe@tao.org.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /bin/df reporting 'NaNB' as a Size.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31135
>Category:       bin
>Synopsis:       /bin/df reporting 'NaNB' as a Size.
>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:   Mon Oct 08 05:10:01 PDT 2001
>Closed-Date:    Wed Aug 07 14:38:22 PDT 2002
>Last-Modified:  Wed Aug 07 14:38:22 PDT 2002
>Originator:     Joe Karthauser
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD genius.tao.org.uk 5.0-CURRENT FreeBSD 5.0-CURRENT #27: Fri Sep 28 21:44:58 BST 2001 joe@genius.tao.org.uk:/usr/obj/usr/src/sys/GENIUS i386

>Description:
	I've just had the strangest output from 'df':

	% while test /tmp; do df -h /data; sleep 5; done
	[cut]
	Filesystem     Size   Used  Avail Capacity  Mounted on
	/dev/ad0s2h     10G   9.5G    72M    99%    /data
	Filesystem     Size   Used  Avail Capacity  Mounted on
	/dev/ad0s2h    NaNB   9.5G    69M    99%    /data
	               ^^^^
	Filesystem     Size   Used  Avail Capacity  Mounted on
	/dev/ad0s2h     10G   9.5G    72M    99%    /data
	[cut]

>How-To-Repeat:
	Unknown.  This is the first time I've seen this.

>Fix:

	I've not looked for a fix yet.  I don't know where the problem
	lies, I'm just recording that there is one.
>Release-Note:
>Audit-Trail:

From: "Crist J. Clark" <cristjc@earthlink.net>
To: Joe Karthauser <joe@tao.org.uk>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/31135: /bin/df reporting 'NaNB' as a Size.
Date: Wed, 10 Oct 2001 01:23:50 -0700

 On Mon, Oct 08, 2001 at 01:06:27PM +0100, Joe Karthauser wrote:
 > >Description:
 > 	I've just had the strangest output from 'df':
 > 
 > 	% while test /tmp; do df -h /data; sleep 5; done
 > 	[cut]
 > 	Filesystem     Size   Used  Avail Capacity  Mounted on
 > 	/dev/ad0s2h     10G   9.5G    72M    99%    /data
 > 	Filesystem     Size   Used  Avail Capacity  Mounted on
 > 	/dev/ad0s2h    NaNB   9.5G    69M    99%    /data
 > 	               ^^^^
 > 	Filesystem     Size   Used  Avail Capacity  Mounted on
 > 	/dev/ad0s2h     10G   9.5G    72M    99%    /data
 > 	[cut]
 
 Can you reproduce this? Looking through src/bin/df/df.c, I can't see
 what type of exceptional condition could sneak through. There are some
 checks for "impossible" conditions. It's hard to see how the 'size'
 can be messed up and yet the 'used' is OK since 'size' is used to
 calculate 'used.' And obviously, the size of your file system is not
 changing between df(1) runs.
 -- 
 Crist J. Clark                           cjclark@alum.mit.edu
                                          cjclark@jhu.edu
                                          cjc@freebsd.org

From: Josef Karthauser <joe@tao.org.uk>
To: cjclark@alum.mit.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/31135: /bin/df reporting 'NaNB' as a Size.
Date: Wed, 10 Oct 2001 13:49:08 +0100

 --1yeeQ81UyVL57Vl7
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, Oct 10, 2001 at 01:23:50AM -0700, Crist J. Clark wrote:
 > On Mon, Oct 08, 2001 at 01:06:27PM +0100, Joe Karthauser wrote:
 > > >Description:
 > > 	I've just had the strangest output from 'df':
 > >=20
 > > 	% while test /tmp; do df -h /data; sleep 5; done
 > > 	[cut]
 > > 	Filesystem     Size   Used  Avail Capacity  Mounted on
 > > 	/dev/ad0s2h     10G   9.5G    72M    99%    /data
 > > 	Filesystem     Size   Used  Avail Capacity  Mounted on
 > > 	/dev/ad0s2h    NaNB   9.5G    69M    99%    /data
 > > 	               ^^^^
 > > 	Filesystem     Size   Used  Avail Capacity  Mounted on
 > > 	/dev/ad0s2h     10G   9.5G    72M    99%    /data
 > > 	[cut]
 >=20
 > Can you reproduce this? Looking through src/bin/df/df.c, I can't see
 > what type of exceptional condition could sneak through. There are some
 > checks for "impossible" conditions. It's hard to see how the 'size'
 > can be messed up and yet the 'used' is OK since 'size' is used to
 > calculate 'used.' And obviously, the size of your file system is not
 > changing between df(1) runs.
 
 No I can't.  I did a:
 
 while true; df -h /data  | grep -i nan; done
 
 for several hours but didn't see anything.   Wierd isn't it?
 
 I definitely didn't dream this up though; the example above is cut and
 pasted from the console.
 
 Joe
 
 --1yeeQ81UyVL57Vl7
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iEYEARECAAYFAjvEQ8MACgkQXVIcjOaxUBaxXwCgxIMMhE8fywJPBfzWwvq3qXEC
 A1oAnibz/XV2MZo1Jvtv/dVJ5Q54EqS/
 =y2b+
 -----END PGP SIGNATURE-----
 
 --1yeeQ81UyVL57Vl7--
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Wed Aug 7 14:36:30 PDT 2002 
State-Changed-Why:  
Originator cannot reproduce behavior. Could have been a transient 
failure of HW (CPU, FP Register, RAM?). If it happens again, let us 
know and we reopen this PR. 

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