Re: panic in devstat_remove_entry

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Fri, 05 Dec 2003 22:52:14 +0100
In message <1070660961.42400.0.camel_at_hood.oook.cz>, Pav Lucistnik writes:
>
>--=-uWdTSPmn/JeCdMEeEHqT
>Content-Type: text/plain; charset=iso-8859-2
>Content-Transfer-Encoding: quoted-printable
>
>V p=E1, 05. 12. 2003 v 22:29, Poul-Henning Kamp p=ED=B9e:
>
>> >I've found a way to panic 5.2-BETA which I can trigger in two ways.
>>=20
>> Can you try with this patch ?
>
>gcc [...] /usr/src/sys/geom/geom_event.c
>
>/usr/src/sys/geom/geom_event.c: In function `g_orphan_provider':
>/usr/src/sys/geom/geom_event.c:114: error: `G_PF_ORPHAN' undeclared (first =
>use in this function)
>/usr/src/sys/geom/geom_event.c:114: error: (Each undeclared identifier is r=
>eported only once
>/usr/src/sys/geom/geom_event.c:114: error: for each function it appears in.=

Sorry, you need this bit too (cut & paste):

Index: geom.h
===================================================================
RCS file: /home/ncvs/src/sys/geom/geom.h,v
retrieving revision 1.74
diff -u -r1.74 geom.h
--- geom.h      6 Oct 2003 09:05:44 -0000       1.74
+++ geom.h      5 Dec 2003 21:26:40 -0000
_at__at_ -171,6 +171,7 _at__at_
        u_int                   flags;
 #define G_PF_CANDELETE         0x1
 #define G_PF_WITHER            0x2
+#define G_PF_ORPHAN            0x4
 };
 
 /* geom_dev.c */


-- 
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 Fri Dec 05 2003 - 12:52:17 UTC

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