From owner-freebsd-current Sat Nov 28 08:45:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA25636 for freebsd-current-outgoing; Sat, 28 Nov 1998 08:45:15 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA25630; Sat, 28 Nov 1998 08:45:11 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id DAA25934; Sun, 29 Nov 1998 03:44:07 +1100 Date: Sun, 29 Nov 1998 03:44:07 +1100 From: Bruce Evans Message-Id: <199811281644.DAA25934@godzilla.zeta.org.au> To: a0074@netcologne.de, freebsd-bugs@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: Correction of nfsstat in 3.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I've a 3.0 RELEASE on my box and it works well. Today I want use nfsstat but I g >ot an error message. Here is the patch I make in nfsstat.c . > > >172c172 >< name[1] = vfc.vfc_typenum; >--- >> name[1] = VFS_GENERIC; vfc_typenum was broken in some (old, almost as old as 3.0) versions of the kernel. VFS_GENERIC isn't correct here. It only works if nfs's vfc_typenum happens to be VFS_GENERIC (= 0). This should never happen for current kernels, because the type numbers start at 1. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message