Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Apr 2005 16:04:50 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Panic while loading GEOM BSD class (KASSERTions) 
Message-ID:  <12349.1112709890@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 05 Apr 2005 14:07:35 -0000." <20050405140735.GA75518@freebsd.czest.pl> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20050405140735.GA75518@freebsd.czest.pl>, "Wojciech A. Koszek" writ
es:
>On Tue, Apr 05, 2005 at 03:32:17PM +0200, Pawel Jakub Dawidek wrote:
>> On Mon, Apr 04, 2005 at 07:58:20PM +0000, Wojciech A. Koszek wrote:
>> +> Hello GEOM hackers,
>[..]
>> 
>> GEOM_BSD is always added to the kernel:
>> 
>> /sys/conf/files.alpha:geom/geom_bsd.c                   standard
>[..]
>> And if you want to ask if we should panic or not if class is already
>> there... I suggested phk@ in the past to just return an error, not
>> sure what his response was (maybe 'prepare a patch' :)).
>
>Hi Pawel,
>I mean exacly this. We have GEOM_BSD by default. but it would be nice to
>cleanly return with error code. Similar problem is reported with if_run.ko
>and if_ppp.ko (PR: kern/79493).

In current we have changed it to return EEXISTS if you try to load
a class with the same name as an already existing class.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12349.1112709890>