Date: Fri, 21 Dec 2001 08:59:28 -0800 From: Peter Wemm <peter@wemm.org> To: John Baldwin <jhb@FreeBSD.ORG> Cc: Sheldon Hearn <sheldonh@starjuice.net>, freebsd-arch@FreeBSD.ORG, dougb@FreeBSD.ORG Subject: Re: Why special handling of nfsclient kernel support in etc/rc? Message-ID: <20011221165928.9CC8238CC@overcee.netplex.com.au> In-Reply-To: <XFMail.011220121609.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. But "nfs" is exported via kldxref and should be loadable via "kldload nfs". Secondly, this is why I did not remove nfsiod to start with. I was planning to redo it as a wrapper that did the module load, and emulated the arguments by translating them into a sysctl to set the number of kernel nfsiod's and then exiting. This would solve the ordering problem entirely and wouldn't depend on actually having nfs file systems in fstab in order to set the sysctl's. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011221165928.9CC8238CC>