From owner-freebsd-bugs Mon May 29 10:55: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id C10F137B714 for ; Mon, 29 May 2000 10:55:02 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9EE6F6.dip0.t-ipconnect.de [62.158.230.246]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id TAA14015 for ; Mon, 29 May 2000 19:55:25 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 3ECBBAC30 for ; Mon, 29 May 2000 19:55:01 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id TAA07221 for freebsd-bugs@FreeBSD.ORG; Mon, 29 May 2000 19:54:41 +0200 (CEST) (envelope-from alex) Date: Mon, 29 May 2000 19:54:41 +0200 From: Alexander Langer To: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/18874: 32bit NFS servers export wrong negative values to 64bit clients Message-ID: <20000529195441.A7207@cichlids.cichlids.com> References: <200005291750.KAA60167@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200005291750.KAA60167@freefall.freebsd.org>; from alex@big.endian.de on Mon, May 29, 2000 at 10:50:02AM -0700 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake Alexander Langer (alex@big.endian.de): > > it to long. Then it'll hold the real negative value which must be correctly > > converted into long. I know that you can point out that Alpha's long was > > bigger than i386's long -- but there's not much you can do about *that*, > > since you have to start from struct statfs on Alpha and finish with struct > > statfs on i386, and f_bavail is long on both. You'll just have to hope that > > the underlying filesystem restricts this value to 32 bits or something. > What about taking quad_t and not u_quat_t? I mean quad_t instead of long, of course. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message