Date: Mon, 11 Oct 2004 21:10:25 -0400 From: Brian Fundakowski Feldman <green@freebsd.org> To: Randy Bush <randy@psg.com> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: fails to mount md /tmp Message-ID: <20041012011025.GL988@green.homeunix.org> In-Reply-To: <16736.23268.584348.209354@ran.psg.com> References: <16736.23268.584348.209354@ran.psg.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. \,,,,,,,,,,,,,,,,,,,,,,\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041012011025.GL988>
