Date: Fri, 10 Oct 2003 09:59:58 +0200 (CEST) From: mike <mike@Reifenberger.com> To: Christian Brueffer <chris@unixpages.org> Cc: current@freebsd.org Subject: Re: panic: The GEOM class BDE already loaded Message-ID: <20031010094446.K61497-200000@mike.reifenberger.com> In-Reply-To: <20031010000826.GA3038@unixpages.org> References: <20031010000826.GA3038@unixpages.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, 10 Oct 2003, Christian Brueffer wrote:
> Date: Fri, 10 Oct 2003 02:08:26 +0200
> From: Christian Brueffer <chris@unixpages.org>
> To: current@freebsd.org
> Subject: panic: The GEOM class BDE already loaded
>
> Hi,
>
> just got the following panic on my server. The panic occured while trying
> to attach a gbde encrypted disk. geom_bde is compiled into the kernel.
>
The problem seems to be that the kld name is 'geom_bde' but the module
name is 'g_bde' and gbde's main() we search for the kld which in your case
doesn't exist.
Could you please try the attached patch for src/sbin/gbde?
Bye/2
---
Michael Reifenberger, Business Unit Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com
http://www.plaut.de | http://www.Reifenberger.com
[-- Attachment #2 --]
--- gbde.c.orig Fri Oct 10 09:55:15 2003
+++ gbde.c Fri Oct 10 09:55:19 2003
@@ -57,5 +57,6 @@
#include <sys/linker.h>
-#define GBDEMOD "geom_bde"
+#define GBDEKLD "geom_bde"
+#define GBDEMOD "g_bde"
#define KASSERT(foo, bar) do { if(!(foo)) { warn bar ; exit (1); } } while (0)
@@ -673,8 +674,8 @@
usage("Too few arguments\n");
- if ((i = kldfind(GBDEMOD)) < 0) {
+ if ((i = modfind(GBDEMOD)) < 0) {
/* need to load the gbde module */
- if (kldload(GBDEMOD) < 0 || kldfind(GBDEMOD) < 0) {
- usage(GBDEMOD ": Kernel module not available");
+ if (kldload(GBDEKLD) < 0 || kldfind(GBDEKLD) < 0) {
+ usage(GBDEKLD ": Kernel module not available");
}
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031010094446.K61497-200000>
