From owner-freebsd-rc@FreeBSD.ORG Sun Apr 24 12:42:55 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 98501106566B; Sun, 24 Apr 2011 12:42:55 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 3A4008FC18; Sun, 24 Apr 2011 12:42:54 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEALcZtE2DaFvO/2dsb2JhbACET6ILiHCpPY9agSmDUH0EjjU X-IronPort-AV: E=Sophos;i="4.64,263,1301889600"; d="scan'208";a="119324753" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 24 Apr 2011 08:42:54 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 3E0C5B3F95; Sun, 24 Apr 2011 08:42:54 -0400 (EDT) Date: Sun, 24 Apr 2011 08:42:54 -0400 (EDT) From: Rick Macklem To: Kostik Belousov Message-ID: <1851380373.487655.1303648974162.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:42:55 -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. Hmm, in this case I think "nfscommon" is linked into the kernel, since it is used by the client as well and the client is linked in. Does that affect the outcome? rick ps: I'll build a kernel without the client linked in and see if that makes a difference.