Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2001 12:16:09 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Sheldon Hearn <sheldonh@starjuice.net>
Cc:        freebsd-arch@FreeBSD.org, dougb@FreeBSD.org
Subject:   RE: Why special handling of nfsclient kernel support in etc/rc?
Message-ID:  <XFMail.011220121609.jhb@FreeBSD.org>
In-Reply-To: <616.1008860957@axl.seasidesoftware.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help

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.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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?XFMail.011220121609.jhb>