From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 15:14:54 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D41CC106566B for ; Wed, 4 Feb 2009 15:14:54 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 8A6B28FC0C for ; Wed, 4 Feb 2009 15:14:54 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan-a.emsphone.com [199.67.51.107]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n14FErEf010648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 4 Feb 2009 09:14:53 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n14FEq2N030165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 4 Feb 2009 09:14:53 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n14FEprj030157; Wed, 4 Feb 2009 09:14:51 -0600 (CST) (envelope-from dan) Date: Wed, 4 Feb 2009 09:14:50 -0600 From: Dan Nelson To: perryh@pluto.rain.com Message-ID: <20090204151450.GQ75802@dan.emsphone.com> References: <158E6ABD-6BCF-4222-AD59-9B43FE6832D5@zog.net> <20090203215326.GN75802@dan.emsphone.com> <49894cf9.J2VbLPqLSoDq7yay%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49894cf9.J2VbLPqLSoDq7yay%perryh@pluto.rain.com> X-OS: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Wed, 04 Feb 2009 09:14:53 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: john@zog.net, freebsd-questions@freebsd.org Subject: Re: NFSv2 Wrong FS Size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 15:14:55 -0000 In the last episode (Feb 04), perryh@pluto.rain.com said: > > 1755708928*1024/512 = 3511417856 blocks. This number is larger than > > 2^31, which techinically isn't a problem because the NFSv2 spec says > > that the filesystem size is unsigned. FreeBSD treats it as signed, > > though, so it can display "negative" free space when root starts using > > its 8% reserve, so your unsigned 3511417856 gets printed as a signed > > -783549440, which messes everything up. > ... > > you could rebuild "df" to print its numbers as unsigned instead of > > signed. Just watch out if your local filesystems start eating into > > their 8% reserve, since they'll start reporting huge values. > > Or patch "df" to print local filesystem sizes as signed -- so that the > reserve reporting still works -- and NFS as unsigned to match the spec. That works as long as you don't NFS-mount other FreeBSD systems with overfull drives :) -- Dan Nelson dnelson@allantgroup.com