From owner-freebsd-current@FreeBSD.ORG Tue Oct 12 01:10:34 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2ED5416A4CE; Tue, 12 Oct 2004 01:10:34 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id i9C1AXVl062607; Mon, 11 Oct 2004 21:10:33 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id i9C1AQVH062606; Mon, 11 Oct 2004 21:10:26 -0400 (EDT) (envelope-from green) Date: Mon, 11 Oct 2004 21:10:25 -0400 From: Brian Fundakowski Feldman To: Randy Bush Message-ID: <20041012011025.GL988@green.homeunix.org> References: <16736.23268.584348.209354@ran.psg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16736.23268.584348.209354@ran.psg.com> User-Agent: Mutt/1.5.6i cc: FreeBSD Current Subject: Re: fails to mount md /tmp X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 01:10:34 -0000 On Sun, Oct 03, 2004 at 01:02:44PM -0700, Randy Bush wrote: > i get > > # /sbin/mdmfs -s 64m -M md /tmp > mdmfs: mdconfig (attach) exited with error code 1 > > kernel has /dev/md > > # grep md /sys/i386/conf/RAN > #device amd # AMD 53C974 (Tekram DC-390(T)) > device md # Memory "disks" > > but their ain't no /dev/md0 > > # ls /dev/md* > /dev/mdctl > > i do have /etc/rc.conf set up the same as on systems which > mount it successfully > > # grep tmp /etc/rc.conf > tmpmfs="YES" # Set to YES to always create an mfs /tmp, NO to never > tmpsize="64m" # Size of mfs /tmp if created > clear_tmp_enable="YES" # Clear /tmp at startup. cvs diff: Diffing geom Index: geom/geom_subr.c =================================================================== RCS file: /usr/ncvs/src/sys/geom/geom_subr.c,v retrieving revision 1.82 diff -u -r1.82 geom_subr.c --- geom/geom_subr.c 5 Sep 2004 21:15:58 -0000 1.82 +++ geom/geom_subr.c 8 Oct 2004 00:18:38 -0000 @@ -195,7 +195,15 @@ switch (type) { case MOD_LOAD: g_trace(G_T_TOPOLOGY, "g_modevent(%s, LOAD)", hh->mp->name); - g_post_event(g_load_class, hh, M_WAITOK, NULL); + /* + * Once the system is not cold, MOD_LOAD calls will be + * from the userland and the g_event thread will be able + * to acknowledge their completion. + */ + if (cold) + g_post_event(g_load_class, hh, M_WAITOK, NULL); + else + g_waitfor_event(g_load_class, hh, M_WAITOK, NULL); error = 0; break; case MOD_UNLOAD: cvs diff: Diffing geom/bde cvs diff: Diffing geom/concat cvs diff: Diffing geom/gate cvs diff: Diffing geom/label cvs diff: Diffing geom/mirror cvs diff: Diffing geom/nop cvs diff: Diffing geom/raid3 cvs diff: Diffing geom/stripe cvs diff: Diffing geom/ugz cvs diff: Diffing geom/uzip cvs diff: Diffing geom/vinum -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\