Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2011 08:59:34 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        rc@freebsd.org, Doug Barton <dougb@freebsd.org>
Subject:   Re: rc scripts change for review
Message-ID:  <1979800974.487836.1303649974843.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <20110424122426.GF48734@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Sun, Apr 24, 2011 at 08:05:04AM -0400, Rick Macklem wrote:
> > One possible explanation here (and it may be that I haven't set the
> > modules/sysctl stuff up correctly?) is that the "nfsd" module
> > depends
> > on the module "nfscommon" (which is loaded when nfsd is loaded,
> > because
> > of a MODULE_DEPEND() in "nfsd"). The SYSCTL_NODE() is in
> > "nfscommon".
> > I only have a SYSCTL_DECL() in "nfsd". (ie. maybe kldload doesn't
> > wait
> > for "nfscommon" to be loaded.)
> >
> > I just tried:
> > load_kld nfscommon
> > load_kld nfsd
> > - and this works without needing "nfssrv"
> >
> > I'm not sure if the above implies a bug in either my server code or
> > the module loading/sysctl registering stuff, but I'm confortable
> > with
> > doing the 2 load_kld's.
> 
> Dependencies are loaded synchronously too.
Oops, I know what my bug was/is now.

Since the client was linked into the kernel "vfs.newnfs" was there, so
the code snippet that did "load_kld nfsd" when it wasn't there didn't
happen.

Once I made "load_kld nfsd" unconditional, it works and doesn't need
the "load_kld nfscommon" first.

I think this is now resolved.

Sorry about the noise and thanks for the help, rick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1979800974.487836.1303649974843.JavaMail.root>