From owner-freebsd-rc@FreeBSD.ORG Sun Apr 24 12:59:36 2011 Return-Path: Delivered-To: rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3673A1065670; Sun, 24 Apr 2011 12:59:36 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id CC96A8FC14; Sun, 24 Apr 2011 12:59:35 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEALkdtE2DaFvO/2dsb2JhbACET6ILiHCpO49agSmDUH0EjjU X-IronPort-AV: E=Sophos;i="4.64,263,1301889600"; d="scan'208";a="118463721" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 24 Apr 2011 08:59:35 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id E0242B3F24; Sun, 24 Apr 2011 08:59:34 -0400 (EDT) Date: Sun, 24 Apr 2011 08:59:34 -0400 (EDT) From: Rick Macklem To: Kostik Belousov Message-ID: <1979800974.487836.1303649974843.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20110424122426.GF48734@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE7 (Win)/6.0.10_GA_2692) Cc: rc@freebsd.org, Doug Barton Subject: Re: rc scripts change for review X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2011 12:59:36 -0000 > 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