From robert@thithle.watson.org  Tue Feb 17 11:13:53 1998
Received: from thithle.watson.org (THITHLE.RES.CMU.EDU [128.2.91.54])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA28345
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Feb 1998 11:13:49 -0800 (PST)
          (envelope-from robert@thithle.watson.org)
Received: (from root@localhost)
	by thithle.watson.org (8.8.8/8.8.8) id OAA04808;
	Tue, 17 Feb 1998 14:08:21 -0500 (EST)
	(envelope-from robert)
Message-Id: <199802171908.OAA04808@thithle.watson.org>
Date: Tue, 17 Feb 1998 14:08:21 -0500 (EST)
From: robert@cyrus.watson.org
Reply-To: robert+freebsd@cyrus.watson.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: -stable nfsstat problem
X-Send-Pr-Version: 3.2

>Number:         5772
>Category:       misc
>Synopsis:       nfsstat does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    peter
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 17 11:20:04 PST 1998
>Closed-Date:    Tue Jan 5 12:39:01 PST 1999
>Last-Modified:  Tue Jan  5 12:40:29 PST 1999
>Originator:     Robert Watson
>Release:        FreeBSD 2.2.5-STABLE i386
>Organization:
>Environment:
default -stable install; i486 w/NFS client

	

>Description:

Running nfsstat returns:

nfsstat: sysctl: No such file or directory

This occurs on all of our -stable machines, both NFS clients and servers.
Occurs even after a fresh install from releng22.

	

>How-To-Repeat:

nfsstat

	

>Fix:

	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Tue Feb 17 20:54:29 PST 1998 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Tue Feb 17 21:17:13 PST 1998 
State-Changed-Why:  
Can't reproduce this.  Can only assume that user's PATH is 
somehow mangled. 
State-Changed-From-To: closed->open 
State-Changed-By: steve 
State-Changed-When: Tue Feb 17 21:45:58 PST 1998 
State-Changed-Why:  
This appears to be a problem with the NFS lkm not having the 
appropriate sysctl variable present. 

From: Poul-Henning Kamp <phk@FreeBSD.ORG>
To: freebsd-gnats-submit@freebsd.org, robert+freebsd@cyrus.watson.org
Cc:  Subject: Re: misc/5772: nfsstat does not work
Date: Sat, 11 Apr 1998 22:53:48 +0200

 This is indeed because LKMs cannot publish sysctl variables.  This is an
 "XXX" feature of
 the sysctl implementation which hopefully one day will be fixed.
 
 The workaround for you is to include NFS in your kernel, instead of
 relying on it as an LKM.
 
 This has other advantages too.
 
 Poul-Henning
 
 
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Sat Apr 11 14:32:25 PDT 1998 
State-Changed-Why:  
redesign of sysctl needed.  dog-wash priority assigned. 
Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: peter 
Responsible-Changed-When: Sat Apr 25 22:23:52 PDT 1998 
Responsible-Changed-Why:  
I'll see if I can do something about this.. 
State-Changed-From-To: suspended->closed 
State-Changed-By: dt 
State-Changed-When: Tue Jan 5 12:39:01 PST 1999 
State-Changed-Why:  
Fixed by bde in rev.1.33 of src/sys/kern/vfs_init.c 
>Unformatted:
