From nobody@FreeBSD.org  Tue Mar 27 12:02:19 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9066E106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Mar 2012 12:02:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6C55E8FC27
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Mar 2012 12:02:19 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q2RC2IkJ066124
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Mar 2012 12:02:18 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q2RC2IHm066123;
	Tue, 27 Mar 2012 12:02:18 GMT
	(envelope-from nobody)
Message-Id: <201203271202.q2RC2IHm066123@red.freebsd.org>
Date: Tue, 27 Mar 2012 12:02:18 GMT
From: Beeblebrox <zaphod@berentweb.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nfsd error when not compiled into kernel
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166442
>Category:       kern
>Synopsis:       [build] nfsd error when not compiled into kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 27 12:10:11 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Apr 02 06:19:41 UTC 2012
>Originator:     Beeblebrox
>Release:        9.0-STABLE
>Organization:
>Environment:
FreeBSD 9.0-STABLE #0 r233503: Mon Mar 26 23:53:01 EEST 2012
>Description:
In Kernel config file, options:
options         NFSCLIENT               # Network Filesystem Client
#options        NFSSERVER               # Network Filesystem Server
#options        NFSLOCKD                # Network Lock Manager
options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT
buildkernel with these settings results in a kernel which CANNOT KLDLOAD nfsd, and result in error message: "Version Mismatch" or "Exec Format Error"

Commenting out NFSCLIENT results in a kernel which is able to load and start nfsd, while the PXE terminal client is still able to boot and mount root from NFS (provided nfscl_enable="YES" is specified in the /boot/loader.conf of PXE's root). so NFS_ROOT does not necessarily require NFSCLIENT, but NFSCLIENT certainly seems to require NFSSERVER.
>How-To-Repeat:
already explained
>Fix:
Comment out NFSCLIENT

>Release-Note:
>Audit-Trail:

From: John Baldwin <jhb@freebsd.org>
To: freebsd-amd64@freebsd.org
Cc: Beeblebrox <zaphod@berentweb.com>,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/166442: nfsd error when not compiled into kernel
Date: Tue, 27 Mar 2012 10:44:56 -0400

 Yes, you should be using NFSCL and NFSD instead of NFSCLIENT and NFSSERVER 
 now.  9 includes a new NFS client and server implementation that include NFSv4 
 support (and have cleaner code).  GENERIC changed between 8 and 9 to switch to 
 the new client and server, but it seems you are using an unmodified kernel 
 config from 8 on 9?
 
 -- 
 John Baldwin
Responsible-Changed-From-To: freebsd-amd64->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Apr 2 06:19:32 UTC 2012 
Responsible-Changed-Why:  
not amd64-specific. 

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