From owner-cvs-all@FreeBSD.ORG Mon Apr 12 06:02:22 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1021D16A4CE; Mon, 12 Apr 2004 06:02:22 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA21843D2F; Mon, 12 Apr 2004 06:02:21 -0700 (PDT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3CD2LGe030802; Mon, 12 Apr 2004 06:02:21 -0700 (PDT) (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3CD2LUX030798; Mon, 12 Apr 2004 06:02:21 -0700 (PDT) (envelope-from mux) Message-Id: <200404121302.i3CD2LUX030798@repoman.freebsd.org> From: Maxime Henrion Date: Mon, 12 Apr 2004 06:02:21 -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/nfsserver nfs_serv.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 13:02:22 -0000 mux 2004/04/12 06:02:21 PDT FreeBSD src repository Modified files: sys/nfsserver nfs_serv.c Log: Don't send the available space as is in the FSSTAT call. Under FreeBSD, we can have a negative available space value, but the corresponding fields in the NFS protocol are unsigned. So trnucate the value to 0 if it's negative, so that the client doesn't receive absurdly high values. Tested by: cognet Revision Changes Path 1.140 +14 -2 src/sys/nfsserver/nfs_serv.c