Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2004 08:40:20 GMT
From:      Michiel Boland <Michiel.Boland@internl.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/70611: MBR type no longer visible in GEOM dumps 
Message-ID:  <200408180840.i7I8eKsQ077612@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/70611; it has been noted by GNATS.

From: Michiel Boland <Michiel.Boland@internl.net>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/70611: MBR type no longer visible in GEOM dumps 
Date: Wed, 18 Aug 2004 10:31:23 +0200 (MEST)

 > Can you try this patch:
 >
 > Index: geom_slice.c
 > ===================================================================
 > RCS file: /home/ncvs/src/sys/geom/geom_slice.c,v
 > retrieving revision 1.55
 > diff -u -r1.55 geom_slice.c
 > --- geom_slice.c	25 Jul 2004 09:41:31 -0000	1.55
 > +++ geom_slice.c	18 Aug 2004 08:24:47 -0000
 > @@ -465,7 +465,8 @@
 > 	gp->softc = gsp;
 > 	gp->start = g_slice_start;
 > 	gp->spoiled = g_slice_spoiled;
 > -	gp->dumpconf = g_slice_dumpconf;
 > +	if (gp->dumpconf == NULL)
 > +		gp->dumpconf = g_slice_dumpconf;
 > 	if (gp->class->destroy_geom == NULL)
 > 		gp->class->destroy_geom = g_slice_destroy_geom;
 > 	cp = g_new_consumer(gp);
 
 That appears to have fixed things:
 
 mboland@leefnet:~$ sysctl -b kern.geom.conftxt
 0 DISK ad0 40000000000 512 hd 16 sc 63
 1 MBR ad0s1 39999504384 512 i 0 o 32256 ty 165
 2 BSD ad0s1f 38141648896 512 i 5 o 1857855488 ty 7
 2 BSD ad0s1e 268435456 512 i 4 o 1589420032 ty 7
 2 BSD ad0s1d 268435456 512 i 3 o 1320984576 ty 7
 2 BSD ad0s1c 39999504384 512 i 2 o 0 ty 0
 2 BSD ad0s1b 1052549120 512 i 1 o 268435456 ty 1
 2 BSD ad0s1a 268435456 512 i 0 o 0 ty 7



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