Re: GEOM panic on boot when ahd cannot find disk

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Thu, 22 May 2003 16:23:11 +0200
In message <20030522123034.F54865-100000_at_ury.york.ac.uk>, Gavin Atkinson writes
:
>
>Hi,
>
>Freshly burned ISO of 5.1-BETA-20030522-JPSNAP booting off an IDE cd-rom
>on the single processor version of
>http://www.supermicro.com/PRODUCT/SUPERServer/SuperServer6012P-8.htm

Can you try this patch ?

Index: geom_disk.c
===================================================================
RCS file: /home/ncvs/src/sys/geom/geom_disk.c,v
retrieving revision 1.71
diff -u -r1.71 geom_disk.c
--- geom_disk.c	21 May 2003 18:52:29 -0000	1.71
+++ geom_disk.c	22 May 2003 14:22:42 -0000
_at__at_ -295,13 +295,15 _at__at_
 }
 
 static void
-g_disk_create(void *arg, int flag __unused)
+g_disk_create(void *arg, int flag)
 {
 	struct g_geom *gp;
 	struct g_provider *pp;
 	struct disk *dp;
 
 	g_topology_assert();
+	if (flag & EV_CANCEL)
+		return;
 	dp = arg;
 	gp = g_new_geomf(&g_disk_class, "%s%d", dp->d_name, dp->d_unit);
 	gp->start = g_disk_start;

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Thu May 22 2003 - 05:23:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:08 UTC