From owner-freebsd-current Sun Nov 29 15:01:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA12784 for freebsd-current-outgoing; Sun, 29 Nov 1998 15:01:32 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA12731; Sun, 29 Nov 1998 15:01:14 -0800 (PST) (envelope-from a0074@netcologne.de) Received: from bsd3.scs-koeln.de (dial4-80.netcologne.de [195.14.233.80]) by mail2.netcologne.de (8.9.1/8.9.1) with SMTP id AAA01553; Mon, 30 Nov 1998 00:00:29 +0100 (MET) X-Ncc-Regid: de.netcologne Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199811281644.DAA25934@godzilla.zeta.org.au> Date: Sun, 29 Nov 1998 23:57:02 +0100 (CET) From: "R. Luettgen" To: Bruce Evans Subject: Re: Correction of nfsstat in 3.0 Cc: freebsd-current@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Bruce. Thank you for your information. I made this changes in my code and nfsstat runs. If VFS_GENERIC is the wrong one, what's the right one. I also see thet xsysinfo is not able to schow NFS activities. Is this based on t he same problems? Ralf On 28 -Nov-98 Bruce Evans wrote: >>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 ---------------------------------- E-Mail: R. Luettgen Date: 29-Nov-98 Time: 23:57:02 This message was sent by XF-Mail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message