From owner-cvs-src@FreeBSD.ORG Thu Apr 24 13:36:33 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25E6137B401; Thu, 24 Apr 2003 13:36:33 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B84E743FD7; Thu, 24 Apr 2003 13:36:32 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3OKaW0U026899; Thu, 24 Apr 2003 13:36:32 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3OKaWc6026895; Thu, 24 Apr 2003 13:36:32 -0700 (PDT) Message-Id: <200304242036.h3OKaWc6026895@repoman.freebsd.org> From: Peter Wemm Date: Thu, 24 Apr 2003 13:36:32 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/nfsclient nfs_vfsops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 20:36:33 -0000 peter 2003/04/24 13:36:32 PDT FreeBSD src repository Modified files: sys/nfsclient nfs_vfsops.c Log: Fix a bug with df on large (>1TB) nfsv3 file servers on 32 bit client machines where the 'long' number of blocks in struct statfs wont fit. Instead of chosing an artificial 512 byte block size, simply scale it up until we avoid an overflow. NFSv3 reports the sizes in bytes, and the blocksize is a figment of nfsclient's imagination. Revision Changes Path 1.133 +23 -11 src/sys/nfsclient/nfs_vfsops.c