Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2001 13:33:07 -0800
From:      Doug Barton <DougB@yahoo-inc.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Sheldon Hearn <sheldonh@starjuice.net>, freebsd-arch@FreeBSD.org
Subject:   Re: Why special handling of nfsclient kernel support in etc/rc?
Message-ID:  <3C225913.ADAE34EF@yahoo-inc.com>
References:  <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.

	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C225913.ADAE34EF>