From owner-freebsd-fs@FreeBSD.ORG Tue Sep 18 15:39:42 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6A8F16A419 for ; Tue, 18 Sep 2007 15:39:42 +0000 (UTC) (envelope-from astrodog@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by mx1.freebsd.org (Postfix) with ESMTP id BE55A13C46A for ; Tue, 18 Sep 2007 15:39:42 +0000 (UTC) (envelope-from astrodog@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1511849rvb for ; Tue, 18 Sep 2007 08:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xwfqS5QrmfgE9WjVCr83fOS1aqXpehucbHk60RosuDU=; b=kYjFDlFvu0LyvZo1tWBAwI0fGhQLCTb+U7HFXZKL7kd0BiIiC2OfimkLKuSlNIP+HFw7/IZK+M9INcYIL6EwxuFnCKdaEXJ/Bhj/6vdSq3xbLz/+Yes915IvRFaKH99qHT/xkkxtSE9O5Pt6EMb27Zjw1gQ1DlREN63EDkouadU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uRWqGUpKakqOHZ4RU0krG4dUUg2sbSUQ+jXHq7ZM4YSJy2MD+Iz1B3rRvT0mLs/MHr4D34tcnMpHN8Z/99JtXr2xJWVj3tURY08G3wfnnu+BG+uP45lh6m043bsyguNFTWLk1zwEdw/kxVUPfQeEdE2Ce9bm6U5NQnAqU/wNuSk= Received: by 10.141.50.17 with SMTP id c17mr1142414rvk.1190128510127; Tue, 18 Sep 2007 08:15:10 -0700 (PDT) Received: by 10.141.74.5 with HTTP; Tue, 18 Sep 2007 08:15:10 -0700 (PDT) Message-ID: <2fd864e0709180815y4c261252tfe9ce5c5a7130462@mail.gmail.com> Date: Tue, 18 Sep 2007 10:15:10 -0500 From: Astrodog To: "Bruce Evans" In-Reply-To: <20070918224545.Y75789@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200709180037.l8I0bJb1003933@freefall.freebsd.org> <20070918211449.A75529@besplex.bde.org> <2fd864e0709180453l756d37c6y7dac8fa5fa8fcf15@mail.gmail.com> <2fd864e0709180514w627bb198r46f4ddecb212fd77@mail.gmail.com> <20070918224545.Y75789@besplex.bde.org> Cc: freebsd-fs@freebsd.org, linimon@freebsd.org Subject: Re: amd64/74811: [nfs] df, nfs mount, negative Avail -> 32/64-bit confusion X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2007 15:39:43 -0000 > I cannot see how to get the correct result non-accidentally without > using the hack of passing negative values as large unsigned ones. > Passing negative values as the difference of two unsigned values works > with NetBSD's extension to statvfs (f_bresvd), but it doesn't work for > nfs because it requires an extra value which the protocol doesn't > support AFAIK (not far). > > Bruce > >From the above, it doesn't appear that NFS can support negative values, in any reasonable way... and I suppose that saying "There are zero blocks avalible for non-privileged users" is accurate, when bavail <= 0. I'm going to dig through the RFCs and see if there's an otherwise unused or underused variable that could be used to store bresvd, for clients that could support it. Thanks for the detailed explaination, --- Harrison