Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2008 01:26:52 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 139549 for review
Message-ID:  <200804080126.m381Qqw0019922@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=139549

Change 139549 by sam@sam_ebb on 2008/04/08 01:26:37

	handle the case where we're loaded after root is mounted
	Submitted by:	mlaier

Affected files ...

.. //depot/projects/vap/sys/kern/subr_firmware.c#4 edit

Differences ...

==== //depot/projects/vap/sys/kern/subr_firmware.c#4 (text+ko) ====

@@ -388,7 +388,7 @@
 }
 
 /*
- * Event handler called on mounting of /.  Bounce a task
+ * Event handler called on mounting of /; bounce a task
  * into the task queue thread to setup it's directories.
  */
 static void
@@ -475,6 +475,13 @@
 		/* NB: use our own loop routine that sets up context */
 		(void) taskqueue_start_threads(&firmware_tq, 1, PWAIT,
 		    "firmware taskq");
+		if (rootvnode != NULL) {
+			/* 
+			 * Root is already mounted so we won't get an event;
+			 * simulate one here.
+			 */
+			firmware_mountroot(NULL);
+		}
 		return 0;
 
 	case MOD_UNLOAD:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804080126.m381Qqw0019922>