From owner-freebsd-arch Thu Dec 20 13:33:27 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171]) by hub.freebsd.org (Postfix) with ESMTP id 6D71D37B419; Thu, 20 Dec 2001 13:33:22 -0800 (PST) Received: from yahoo-inc.com (zoot.corp.yahoo.com [216.145.52.89]) by mrout1.yahoo.com (8.11.6/8.11.6/y.out) with ESMTP id fBKLX7s10603; Thu, 20 Dec 2001 13:33:07 -0800 (PST) Message-ID: <3C225913.ADAE34EF@yahoo-inc.com> Date: Thu, 20 Dec 2001 13:33:07 -0800 From: Doug Barton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: Sheldon Hearn , freebsd-arch@FreeBSD.org Subject: Re: Why special handling of nfsclient kernel support in etc/rc? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin wrote: > > On 20-Dec-01 Sheldon Hearn wrote: > > > > Hi Doug, > > > > I refer to the following change you made to src/etc/rc: > > > > revision 1.286 > > date: 2001/10/19 06:50:52; author: dougb; state: Exp; lines: +19 -4 > > Handle the lack of nfs server or client support in the kernel by > > kldload'ing the appropriate modules before enabling the service. > > > > Why is this needed? Shouldn't the vfsload() code in mount_nfs(1) handle > > this? > > > > error = getvfsbyname("nfs", &vfc); > > if (error && vfsisloadable("nfs")) { > > if(vfsload("nfs")) > > err(EX_OSERR, "vfsload(nfs)"); > > endvfsent(); /* clear cache */ > > error = getvfsbyname("nfs", &vfc); > > } > > There's no nfs.ko. mount_nfs should be updated to load 'nfsclient' instead. > If this happens, then arguably, the nfs_client_enable variable in rc.conf > should just go away and not be used. Yeah, the hack I put into rc was always meant to be temporary until the issue was addressed more progammatically. I just did what I could to make it work. :) -- Doug Barton, Yahoo! DNS Administration and Development If you're never wrong, you're not trying hard enough. Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message