From owner-freebsd-questions@FreeBSD.ORG Mon Apr 21 13:26:28 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0072737B40A for ; Mon, 21 Apr 2003 13:26:25 -0700 (PDT) Received: from freshaire.wiz.com (freshaire.wiz.com [66.143.183.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id C125043FEA for ; Mon, 21 Apr 2003 13:26:24 -0700 (PDT) (envelope-from marc@wiz.com) Received: from freshaire.wiz.com (localhost [127.0.0.1]) by freshaire.wiz.com (8.12.6/8.12.6) with ESMTP id h3LKQNc1030636 for ; Mon, 21 Apr 2003 15:26:23 -0500 (CDT) (envelope-from marc@freshaire.wiz.com) Received: (from marc@localhost) by freshaire.wiz.com (8.12.6/8.12.6/Submit) id h3LKQNbH030635 for freebsd-questions@freebsd.org; Mon, 21 Apr 2003 15:26:23 -0500 (CDT) Date: Mon, 21 Apr 2003 15:26:23 -0500 From: Marc Wiz To: freebsd-questions@freebsd.org Message-ID: <20030421202623.GB29927@freshaire.wiz.com> References: <20030421191537.GG28595@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030421191537.GG28595@dan.emsphone.com> User-Agent: Mutt/1.4i Subject: Re: nfs filesystem size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 20:26:28 -0000 On Mon, Apr 21, 2003 at 02:15:37PM -0500, Dan Nelson wrote: > In the last episode (Apr 21), Jesse Geddis said: > > We have a NetApp FAS940 with a current storage size of 1.266 TB. FreeBSD is > > reporting the following: > > > > Filesystem Size Used Avail Capacity Mounted on > > /dev/da0s1a 2.0G 56M 1.8G 3% / > > /dev/da0s1f 9.8G 1.9G 7.1G 21% /usr > > /dev/da0s1g 5.2G 82M 4.7G 2% /usr/home > > /dev/da0s1e 15G 161M 13G 1% /var > > procfs 4.0K 4.0K 0B 100% /proc > > 10.0.0.100:/vol/www01 -811.2G 465G 771G -57% /www > > > > is this a limitation of how large a filesystem freebsd can report or > > are we running into something else that is fixable here? Thanks in > > advance. > > I think I traced it to a variable overflow in nfs_vfsops.c:nfs_statfs(). > I have a 1.4TB filesystem that occasionally (but not always) goes > negative too. It just affects the results of the statfs/statvfs() > calls, so the only thing it really hurts is 'df'. According the to the NFS v3 spec from "NFS Illustrated" page 212 the return from FSSTATE (Get Dynamic Filesystem Information) states that the total size of the file system and the amount of free space (both in bytes) is an unsigned int 64. Marc -- Marc Wiz marc@wiz.com Yes, that really is my last name.