GEOM panic on boot when ahd cannot find disk
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu May 22 07:23:16 PDT 2003
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
@@ -295,13 +295,15 @@
}
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.
More information about the freebsd-current
mailing list