Re: fails to mount md /tmp

From: Brian Fundakowski Feldman <green_at_freebsd.org>
Date: Mon, 11 Oct 2004 21:10:25 -0400
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
_at__at_ -195,7 +195,15 _at__at_
 	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_at_FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\
Received on Mon Oct 11 2004 - 23:10:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC