From nobody@FreeBSD.org  Thu Jun  9 07:17:58 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 91BB3106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Jun 2011 07:17:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 8220D8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Jun 2011 07:17:58 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p597Hw1t046919
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Jun 2011 07:17:58 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p597HwGu046918;
	Thu, 9 Jun 2011 07:17:58 GMT
	(envelope-from nobody)
Message-Id: <201106090717.p597HwGu046918@red.freebsd.org>
Date: Thu, 9 Jun 2011 07:17:58 GMT
From: Eir Nym <eirnym@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: GEOM should not process 'c' (raw) partitions for BSD scheme
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157723
>Category:       kern
>Synopsis:       [geom] GEOM should not process 'c' (raw) partitions for BSD scheme
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-geom
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 09 07:20:08 UTC 2011
>Closed-Date:    
>Last-Modified:  Fri Jun 10 15:20:00 UTC 2011
>Originator:     Eir Nym
>Release:        FreeBSD-CURRENT 222277
>Organization:
Private Person
>Environment:
>Description:
While creating GEOM structure for BSD scheme, the 'raw' partition created automatically. This partition contains everything include partition scheme data. This partition creates another one GEOM..
>How-To-Repeat:
#gpart create -t MBR ada0
#gpart add -t freebsd ada0
#bsdlabel -w ada0s1
#gpart add -t freebsd-ufs -b 16 -s 10 ada0s1
#gpart add -t freebsd-swap -b 26 ada0s1
#gpart show
--> here we should see about 4 BSD GEOMs for ada0s1
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jun 9 21:18:57 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157723 

From: Eir Nym <eirnym@gmail.com>
To: bug-followup@freebsd.org, eirnym@gmail.com
Cc:  
Subject: Re: kern/157723: [geom] GEOM should not process 'c' (raw) partitions
 for BSD scheme
Date: Fri, 10 Jun 2011 18:47:42 +0400

 In discussion in FreeBSD-Current mail list, Andrey V. Elsukov said
 following information.
 > You have mixed old partitioning classes with GEOM_PART.
 > You should remove from the kernel at least:
 > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_BSD
 > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_MBR
 > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_PC98
 > options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_VOL
 
 And after this duplicates had gone.
 
 Please, make these and GEOM_PART_* options incompatible altogether and
 document them to have no these strange behavior.
>Unformatted:
