On Fri, 10 Oct 2003, Christian Brueffer wrote:

> Date: Fri, 10 Oct 2003 02:08:26 +0200
> From: Christian Brueffer <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED] | Priv: [EMAIL PROTECTED]
      http://www.plaut.de           |       http://www.Reifenberger.com
--- 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");
                }
        }
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to