From nobody@FreeBSD.ORG Tue Apr 20 09:53:09 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 42ACB14C81; Tue, 20 Apr 1999 09:53:09 -0700 (PDT)
Message-Id: <19990420165309.42ACB14C81@hub.freebsd.org>
Date: Tue, 20 Apr 1999 09:53:09 -0700 (PDT)
From: wayne@staff.msen.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: mountd fails to properly check for kernel-level NFS
X-Send-Pr-Version: www-1.0

>Number:         11236
>Category:       bin
>Synopsis:       mountd fails to properly check for kernel-level NFS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 20 10:00:00 PDT 1999
>Closed-Date:    Sun Aug 25 20:04:05 PDT 2002
>Last-Modified:  Sun Aug 25 20:04:05 PDT 2002
>Originator:     Michael R. Wayne
>Release:        3.1 STABLE
>Organization:
Msen, Inc.
>Environment:
FreeBSD twi1.msen.net 3.1-STABLE FreeBSD 3.1-STABLE #1: Tue Apr 13 00:09:05 GMT 1999
wayne@twi1.msen.net:/usr/src/sys/compile/MSEN  i386

>Description:
mountd appears unable to properly detect an nfs-free kernel.  If the 
config file contains the line:

options         NFS_NOSERVER            # Disable the NFS-server code

mountd runs happily until the first client atttempts to mount an
exported filesystem.  It then logs the message:

Apr 20 10:36:28 twi1 /kernel: pid 1322 (mountd), uid 0: exited on signal 12 (cor
e dumped)

dying at the getfh call:

#0  0x804f5a0 in getfh ()
#1  0x80487e4 in mntsrv (rqstp=0xefbfdb44, transp=0x8091000) at mountd.c:453
#2  0x80506de in svc_getreqset2 ()
#3  0x804b871 in svc_run ()
#4  0x80484f9 in main (argc=2, argv=0xefbfdc1c) at mountd.c:351
#5  0x80480e9 in _start ()

Building a new kernel with the above mentioned line commented out permits
NFS mounts to suceed


>How-To-Repeat:
Build a kernel with option NFS_NOSERVER defined, export a file system to a
remote machine, mount the filesystem.
>Fix:
mountd's check for kernel-level NFS needs updating.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: bmah 
State-Changed-When: Sat Jan 12 11:23:12 PST 2002 
State-Changed-Why:  
NFS is a kernel module now, and should get loaded automatically 
by mountd if needed.  Is this still a problem? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11236 
State-Changed-From-To: feedback->closed 
State-Changed-By: keramida 
State-Changed-When: Sun Aug 25 20:03:38 PDT 2002 
State-Changed-Why:  
Feedback timeout.  If this is still a problem, let us know by replying 
to this and the problem report can be reopened. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=11236 
>Unformatted:
