changeset 11926:82591d6efd2c

6932371 Anago: heads in panic loop on installing ak-nas-2010-02-09-1-0-1-0-0-nd
author David Hollister <David.Hollister@Sun.COM>
date Mon, 15 Mar 2010 14:01:48 -0600
parents b2fbcbf3d929
children 26cebe6493c0
files usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_fwlog.c usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs.h
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_fwlog.c	Mon Mar 15 14:50:17 2010 -0400
+++ b/usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_fwlog.c	Mon Mar 15 14:01:48 2010 -0600
@@ -1299,6 +1299,14 @@
 	}
 
 	/*
+	 * We also can't write the event log out if it's too early in boot
+	 * (i.e. the root fs isn't mounted yet).
+	 */
+	if (!modrootloaded) {
+		return;
+	}
+
+	/*
 	 * Write out the necessary log file(s), update the "oldest" pointers
 	 * and the suffix to the written filenames.
 	 */
--- a/usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs.h	Mon Mar 15 14:50:17 2010 -0400
+++ b/usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs.h	Mon Mar 15 14:01:48 2010 -0600
@@ -704,6 +704,11 @@
 extern const char pmcs_nomsg[];
 extern const char pmcs_timeo[];
 
+/*
+ * Other externs
+ */
+extern int modrootloaded;
+
 #ifdef	__cplusplus
 }
 #endif