Re: Removal of GEOM_BSD, GEOM_MBR, GEOM_PC98 and GEOM_SUNLABEL

From: Tai-hwa Liang <avatar_at_mmlab.cse.yzu.edu.tw>
Date: Fri, 3 Apr 2009 09:35:02 +0800 (CST)
On Thu, 2 Apr 2009, Marcel Moolenaar wrote:
> Can you dump the first 2 sectors of slice 3 and
> send it to me:
> 	dd if=/dev/ad0s3 of=/tmp/dump.dd count=2 bs=512

00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 f2 0e 00  00 00 00 00 00 00 00 01  |................|
000001c0  c1 ff 83 ef ff ff 3f 00  00 00 21 17 00 01 00 00  |......?...!.....|
000001d0  c1 ff 05 ef ff ff 60 17  00 01 b0 a8 fe 02 00 00  |......`.........|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000240  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000250  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000270  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000280  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000290  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000002f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000300  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000310  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000320  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000330  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000340  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000350  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000370  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000380  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000390  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000400

> I suspect the EBR has some data where it shouldn't and
> as such is rejected by the EBR scheme.
>
> Could you also send me the confxml output:
> 	sysctl -b kern.geom.confxml > geom.xml

A working(w/ GEOM_{MBR,BSD}, w/o GEOM_PART_{MBR,EBR,BSD}) kernel:
<mesh>
   <class id="0xc3cd1aa0">
     <name>MD</name>
     <geom id="0xc3b21300">
       <class ref="0xc3cd1aa0"/>
       <name>md0</name>
       <rank>1</rank>
       <config>
       </config>
 	<provider id="0xc3b21180">
 	  <geom ref="0xc3b21300"/>
 	  <mode>r1w1e1</mode>
 	  <name>md0</name>
 	  <mediasize>536870912</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <unit>0</unit>
 	    <sectorsize>512</sectorsize>
 	    <fwheads>0</fwheads>
 	    <fwsectors>0</fwsectors>
 	    <length>536870912</length>
 	    <type>swap</type>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc07180e0">
     <name>ACD</name>
     <geom id="0xc3adfe80">
       <class ref="0xc07180e0"/>
       <name>acd0</name>
       <rank>1</rank>
 	<provider id="0xc3adfc00">
 	  <geom ref="0xc3adfe80"/>
 	  <mode>r0w0e0</mode>
 	  <name>acd0</name>
 	  <mediasize>8796093020160</mediasize>
 	  <sectorsize>2048</sectorsize>
 	</provider>
     </geom>
   </class>
   <class id="0xc071c720">
     <name>BSD</name>
     <geom id="0xc3ae4980">
       <class ref="0xc071c720"/>
       <name>ad0s7</name>
       <rank>4</rank>
       <config>
 	<labeloffset>512</labeloffset>
 	<rawoffset>18161418240</rawoffset>
 	<mbroffset>18161418240</mbroffset>
       </config>
 	<consumer id="0xc3ac0a40">
 	  <geom ref="0xc3ae4980"/>
 	  <provider ref="0xc3adf880"/>
 	  <mode>r1w1e2</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc3adf900">
 	  <geom ref="0xc3ae4980"/>
 	  <mode>r0w0e0</mode>
 	  <name>ad0s7c</name>
 	  <mediasize>16000492032</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>2</index>
 	    <length>16000492032</length>
 	    <seclength>31250961</seclength>
 	    <offset>0</offset>
 	    <secoffset>0</secoffset>
 	    <type>0</type>
 	  </config>
 	</provider>
 	<provider id="0xc3ae4900">
 	  <geom ref="0xc3ae4980"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s7a</name>
 	  <mediasize>16000483840</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>0</index>
 	    <length>16000483840</length>
 	    <seclength>31250945</seclength>
 	    <offset>0</offset>
 	    <secoffset>0</secoffset>
 	    <type>7</type>
 	  </config>
 	</provider>
     </geom>
     <geom id="0xc3ae4500">
       <class ref="0xc071c720"/>
       <name>ad0s2</name>
       <rank>3</rank>
       <config>
 	<labeloffset>512</labeloffset>
 	<rawoffset>9568419840</rawoffset>
 	<mbroffset>9568419840</mbroffset>
       </config>
 	<consumer id="0xc3ae06c0">
 	  <geom ref="0xc3ae4500"/>
 	  <provider ref="0xc3adf500"/>
 	  <mode>r4w4e4</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc3ae4080">
 	  <geom ref="0xc3ae4500"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s2e</name>
 	  <mediasize>5841534976</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>4</index>
 	    <length>5841534976</length>
 	    <seclength>11409248</seclength>
 	    <offset>2751463424</offset>
 	    <secoffset>5373952</secoffset>
 	    <type>7</type>
 	  </config>
 	</provider>
 	<provider id="0xc3ae4180">
 	  <geom ref="0xc3ae4500"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s2d</name>
 	  <mediasize>201326592</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>3</index>
 	    <length>201326592</length>
 	    <seclength>393216</seclength>
 	    <offset>2550136832</offset>
 	    <secoffset>4980736</secoffset>
 	    <type>7</type>
 	  </config>
 	</provider>
 	<provider id="0xc3ae4280">
 	  <geom ref="0xc3ae4500"/>
 	  <mode>r0w0e0</mode>
 	  <name>ad0s2c</name>
 	  <mediasize>8592998400</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>2</index>
 	    <length>8592998400</length>
 	    <seclength>16783200</seclength>
 	    <offset>0</offset>
 	    <secoffset>0</secoffset>
 	    <type>0</type>
 	  </config>
 	</provider>
 	<provider id="0xc3ae4380">
 	  <geom ref="0xc3ae4500"/>
 	  <mode>r1w1e0</mode>
 	  <name>ad0s2b</name>
 	  <mediasize>2147483648</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>1</index>
 	    <length>2147483648</length>
 	    <seclength>4194304</seclength>
 	    <offset>402653184</offset>
 	    <secoffset>786432</secoffset>
 	    <type>1</type>
 	  </config>
 	</provider>
 	<provider id="0xc3ae4480">
 	  <geom ref="0xc3ae4500"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s2a</name>
 	  <mediasize>402653184</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>0</index>
 	    <length>402653184</length>
 	    <seclength>786432</seclength>
 	    <offset>0</offset>
 	    <secoffset>0</secoffset>
 	    <type>7</type>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc071d0e0">
     <name>PART</name>
   </class>
   <class id="0xc071cfc0">
     <name>VFS</name>
     <geom id="0xc3cd2600">
       <class ref="0xc071cfc0"/>
       <name>ffs.md0</name>
       <rank>2</rank>
 	<consumer id="0xc3b638c0">
 	  <geom ref="0xc3cd2600"/>
 	  <provider ref="0xc3b21180"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
     <geom id="0xc3b21100">
       <class ref="0xc071cfc0"/>
       <name>msdosfs.ad0s6</name>
       <rank>4</rank>
 	<consumer id="0xc3b634c0">
 	  <geom ref="0xc3b21100"/>
 	  <provider ref="0xc3adf980"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
     <geom id="0xc3b20d00">
       <class ref="0xc071cfc0"/>
       <name>msdosfs.ad0s1</name>
       <rank>3</rank>
 	<consumer id="0xc3b63480">
 	  <geom ref="0xc3b20d00"/>
 	  <provider ref="0xc39a8600"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
     <geom id="0xc3b21380">
       <class ref="0xc071cfc0"/>
       <name>ffs.ad0s7a</name>
       <rank>5</rank>
 	<consumer id="0xc3b63000">
 	  <geom ref="0xc3b21380"/>
 	  <provider ref="0xc3ae4900"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
     <geom id="0xc3b20b80">
       <class ref="0xc071cfc0"/>
       <name>ffs.ad0s2e</name>
       <rank>4</rank>
 	<consumer id="0xc3b62e80">
 	  <geom ref="0xc3b20b80"/>
 	  <provider ref="0xc3ae4080"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
     <geom id="0xc3b20e80">
       <class ref="0xc071cfc0"/>
       <name>ffs.ad0s2d</name>
       <rank>4</rank>
 	<consumer id="0xc3b62e40">
 	  <geom ref="0xc3b20e80"/>
 	  <provider ref="0xc3ae4180"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
     <geom id="0xc3b21280">
       <class ref="0xc071cfc0"/>
       <name>ffs.ad0s2a</name>
       <rank>4</rank>
 	<consumer id="0xc3ae0900">
 	  <geom ref="0xc3b21280"/>
 	  <provider ref="0xc3ae4480"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
   </class>
   <class id="0xc071c920">
     <name>DISK</name>
     <geom id="0xc3adf800">
       <class ref="0xc071c920"/>
       <name>cd0</name>
       <rank>1</rank>
       <config>
       </config>
 	<provider id="0xc388a000">
 	  <geom ref="0xc3adf800"/>
 	  <mode>r0w0e0</mode>
 	  <name>cd0</name>
 	  <mediasize>0</mediasize>
 	  <sectorsize>2048</sectorsize>
 	  <config>
 	    <fwheads>0</fwheads>
 	    <fwsectors>0</fwsectors>
 	  </config>
 	</provider>
     </geom>
     <geom id="0xc388a180">
       <class ref="0xc071c920"/>
       <name>ad0</name>
       <rank>1</rank>
       <config>
       </config>
 	<provider id="0xc384ce00">
 	  <geom ref="0xc388a180"/>
 	  <mode>r7w7e10</mode>
 	  <name>ad0</name>
 	  <mediasize>116909491200</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <fwheads>16</fwheads>
 	    <fwsectors>63</fwsectors>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc071cf00">
     <name>MBR</name>
     <geom id="0xc3adf000">
       <class ref="0xc071cf00"/>
       <name>ad0</name>
       <rank>2</rank>
       <config>
       </config>
 	<consumer id="0xc3ae08c0">
 	  <geom ref="0xc3adf000"/>
 	  <provider ref="0xc384ce00"/>
 	  <mode>r7w7e10</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc39a8d00">
 	  <geom ref="0xc3adf000"/>
 	  <mode>r2w2e4</mode>
 	  <name>ad0s3</name>
 	  <mediasize>98742067200</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>2</index>
 	    <length>98742067200</length>
 	    <seclength>192855600</seclength>
 	    <offset>18161418240</offset>
 	    <secoffset>35471520</secoffset>
 	    <type>15</type>
 	  </config>
 	</provider>
 	<provider id="0xc3adf500">
 	  <geom ref="0xc3adf000"/>
 	  <mode>r4w4e4</mode>
 	  <name>ad0s2</name>
 	  <mediasize>8592998400</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>1</index>
 	    <length>8592998400</length>
 	    <seclength>16783200</seclength>
 	    <offset>9568419840</offset>
 	    <secoffset>18688320</secoffset>
 	    <type>165</type>
 	  </config>
 	</provider>
 	<provider id="0xc39a8600">
 	  <geom ref="0xc3adf000"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s1</name>
 	  <mediasize>9568387584</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>0</index>
 	    <length>9568387584</length>
 	    <seclength>18688257</seclength>
 	    <offset>32256</offset>
 	    <secoffset>63</secoffset>
 	    <type>12</type>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc071cea0">
     <name>MBREXT</name>
     <geom id="0xc3adfb80">
       <class ref="0xc071cea0"/>
       <name>ad0s3</name>
       <rank>3</rank>
       <config>
       </config>
 	<consumer id="0xc3ae0500">
 	  <geom ref="0xc3adfb80"/>
 	  <provider ref="0xc39a8d00"/>
 	  <mode>r2w2e4</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc3adf780">
 	  <geom ref="0xc3adfb80"/>
 	  <mode>r0w0e0</mode>
 	  <name>ad0s8</name>
 	  <mediasize>48423707136</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>3</index>
 	    <length>48423707136</length>
 	    <seclength>94577553</seclength>
 	    <offset>50318360064</offset>
 	    <secoffset>98278047</secoffset>
 	    <type>165</type>
 	  </config>
 	</provider>
 	<provider id="0xc3adf880">
 	  <geom ref="0xc3adfb80"/>
 	  <mode>r1w1e2</mode>
 	  <name>ad0s7</name>
 	  <mediasize>16000492032</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>2</index>
 	    <length>16000492032</length>
 	    <seclength>31250961</seclength>
 	    <offset>34317835776</offset>
 	    <secoffset>67027023</secoffset>
 	    <type>165</type>
 	  </config>
 	</provider>
 	<provider id="0xc3adf980">
 	  <geom ref="0xc3adfb80"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s6</name>
 	  <mediasize>25724772864</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>1</index>
 	    <length>25724772864</length>
 	    <seclength>50243697</seclength>
 	    <offset>8593030656</offset>
 	    <secoffset>16783263</secoffset>
 	    <type>11</type>
 	  </config>
 	</provider>
 	<provider id="0xc3adfa80">
 	  <geom ref="0xc3adfb80"/>
 	  <mode>r0w0e0</mode>
 	  <name>ad0s5</name>
 	  <mediasize>8592966144</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>0</index>
 	    <length>8592966144</length>
 	    <seclength>16783137</seclength>
 	    <offset>32256</offset>
 	    <secoffset>63</secoffset>
 	    <type>131</type>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc07370e0">
     <name>SWAP</name>
     <geom id="0xc3b21000">
       <class ref="0xc07370e0"/>
       <name>swap</name>
       <rank>4</rank>
 	<consumer id="0xc3b62c40">
 	  <geom ref="0xc3b21000"/>
 	  <provider ref="0xc3ae4380"/>
 	  <mode>r1w1e0</mode>
 	</consumer>
     </geom>
   </class>
   <class id="0xc071c800">
     <name>DEV</name>
     <geom id="0xc3cd2a80">
       <class ref="0xc071c800"/>
       <name>md0</name>
       <rank>2</rank>
 	<consumer id="0xc3b63700">
 	  <geom ref="0xc3cd2a80"/>
 	  <provider ref="0xc3b21180"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae5480">
       <class ref="0xc071c800"/>
       <name>cd0</name>
       <rank>2</rank>
 	<consumer id="0xc3ae0180">
 	  <geom ref="0xc3ae5480"/>
 	  <provider ref="0xc388a000"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc39a8c80">
       <class ref="0xc071c800"/>
       <name>acd0</name>
       <rank>2</rank>
 	<consumer id="0xc3ae0540">
 	  <geom ref="0xc39a8c80"/>
 	  <provider ref="0xc3adfc00"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae6900">
       <class ref="0xc071c800"/>
       <name>ad0s7c</name>
       <rank>5</rank>
 	<consumer id="0xc3ac05c0">
 	  <geom ref="0xc3ae6900"/>
 	  <provider ref="0xc3adf900"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae4000">
       <class ref="0xc071c800"/>
       <name>ad0s7a</name>
       <rank>5</rank>
 	<consumer id="0xc3ac0700">
 	  <geom ref="0xc3ae4000"/>
 	  <provider ref="0xc3ae4900"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae4300">
       <class ref="0xc071c800"/>
       <name>ad0s8</name>
       <rank>4</rank>
 	<consumer id="0xc3ac0840">
 	  <geom ref="0xc3ae4300"/>
 	  <provider ref="0xc3adf780"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae5080">
       <class ref="0xc071c800"/>
       <name>ad0s7</name>
       <rank>4</rank>
 	<consumer id="0xc3ac0980">
 	  <geom ref="0xc3ae5080"/>
 	  <provider ref="0xc3adf880"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae4a00">
       <class ref="0xc071c800"/>
       <name>ad0s6</name>
       <rank>4</rank>
 	<consumer id="0xc3ac0ac0">
 	  <geom ref="0xc3ae4a00"/>
 	  <provider ref="0xc3adf980"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae4c80">
       <class ref="0xc071c800"/>
       <name>ad0s5</name>
       <rank>4</rank>
 	<consumer id="0xc3ac0c00">
 	  <geom ref="0xc3ae4c80"/>
 	  <provider ref="0xc3adfa80"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae5000">
       <class ref="0xc071c800"/>
       <name>ad0s2e</name>
       <rank>4</rank>
 	<consumer id="0xc3ac0d40">
 	  <geom ref="0xc3ae5000"/>
 	  <provider ref="0xc3ae4080"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae5280">
       <class ref="0xc071c800"/>
       <name>ad0s2d</name>
       <rank>4</rank>
 	<consumer id="0xc3ac0e80">
 	  <geom ref="0xc3ae5280"/>
 	  <provider ref="0xc3ae4180"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae5500">
       <class ref="0xc071c800"/>
       <name>ad0s2c</name>
       <rank>4</rank>
 	<consumer id="0xc3ae0100">
 	  <geom ref="0xc3ae5500"/>
 	  <provider ref="0xc3ae4280"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae5780">
       <class ref="0xc071c800"/>
       <name>ad0s2b</name>
       <rank>4</rank>
 	<consumer id="0xc3ae0240">
 	  <geom ref="0xc3ae5780"/>
 	  <provider ref="0xc3ae4380"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3adf700">
       <class ref="0xc071c800"/>
       <name>ad0s2a</name>
       <rank>4</rank>
 	<consumer id="0xc3ae0380">
 	  <geom ref="0xc3adf700"/>
 	  <provider ref="0xc3ae4480"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3adfd80">
       <class ref="0xc071c800"/>
       <name>ad0s3</name>
       <rank>3</rank>
 	<consumer id="0xc3ae04c0">
 	  <geom ref="0xc3adfd80"/>
 	  <provider ref="0xc39a8d00"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3adfd00">
       <class ref="0xc071c800"/>
       <name>ad0s2</name>
       <rank>3</rank>
 	<consumer id="0xc3ae0600">
 	  <geom ref="0xc3adfd00"/>
 	  <provider ref="0xc3adf500"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae4580">
       <class ref="0xc071c800"/>
       <name>ad0s1</name>
       <rank>3</rank>
 	<consumer id="0xc3ae0740">
 	  <geom ref="0xc3ae4580"/>
 	  <provider ref="0xc39a8600"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc3ae4800">
       <class ref="0xc071c800"/>
       <name>ad0</name>
       <rank>2</rank>
 	<consumer id="0xc3ae0880">
 	  <geom ref="0xc3ae4800"/>
 	  <provider ref="0xc384ce00"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
   </class>
</mesh>

A non-working kernel(GENERIC):
<mesh>
   <class id="0xc0c7fe80">
     <name>ACD</name>
     <geom id="0xc44d1700">
       <class ref="0xc0c7fe80"/>
       <name>acd0</name>
       <rank>1</rank>
 	<provider id="0xc44d1680">
 	  <geom ref="0xc44d1700"/>
 	  <mode>r0w0e0</mode>
 	  <name>acd0</name>
 	  <mediasize>8796093020160</mediasize>
 	  <sectorsize>2048</sectorsize>
 	</provider>
     </geom>
   </class>
   <class id="0xc0d35c80">
     <name>FD</name>
   </class>
   <class id="0xc0d2fba0">
     <name>SWAP</name>
     <geom id="0xc4504400">
       <class ref="0xc0d2fba0"/>
       <name>swap</name>
       <rank>4</rank>
 	<consumer id="0xc44cd340">
 	  <geom ref="0xc4504400"/>
 	  <provider ref="0xc44d3000"/>
 	  <mode>r1w1e0</mode>
 	</consumer>
     </geom>
   </class>
   <class id="0xc0d0a360">
     <name>DEV</name>
     <geom id="0xc4505400">
       <class ref="0xc0d0a360"/>
       <name>ufsid/46387cd73d66d2ca</name>
       <rank>5</rank>
 	<consumer id="0xc44cd440">
 	  <geom ref="0xc4505400"/>
 	  <provider ref="0xc4505300"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc44d1580">
       <class ref="0xc0d0a360"/>
       <name>acd0</name>
       <rank>2</rank>
 	<consumer id="0xc443ce80">
 	  <geom ref="0xc44d1580"/>
 	  <provider ref="0xc44d1680"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc44d2000">
       <class ref="0xc0d0a360"/>
       <name>ad0s2e</name>
       <rank>4</rank>
 	<consumer id="0xc44cd4c0">
 	  <geom ref="0xc44d2000"/>
 	  <provider ref="0xc44d2d00"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc44d2300">
       <class ref="0xc0d0a360"/>
       <name>ad0s2d</name>
       <rank>4</rank>
 	<consumer id="0xc44cd600">
 	  <geom ref="0xc44d2300"/>
 	  <provider ref="0xc44d2e00"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc44d2480">
       <class ref="0xc0d0a360"/>
       <name>ad0s2b</name>
       <rank>4</rank>
 	<consumer id="0xc44cd700">
 	  <geom ref="0xc44d2480"/>
 	  <provider ref="0xc44d3000"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc44d2780">
       <class ref="0xc0d0a360"/>
       <name>ad0s2a</name>
       <rank>4</rank>
 	<consumer id="0xc44cd840">
 	  <geom ref="0xc44d2780"/>
 	  <provider ref="0xc44d3100"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc44d2980">
       <class ref="0xc0d0a360"/>
       <name>msdosfs/IBM_PRELOAD</name>
       <rank>4</rank>
 	<consumer id="0xc44cd900">
 	  <geom ref="0xc44d2980"/>
 	  <provider ref="0xc4411980"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc44d2b80">
       <class ref="0xc0d0a360"/>
       <name>ad0s3</name>
       <rank>3</rank>
 	<consumer id="0xc44cda40">
 	  <geom ref="0xc44d2b80"/>
 	  <provider ref="0xc41c7c80"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc41c7500">
       <class ref="0xc0d0a360"/>
       <name>ad0s2</name>
       <rank>3</rank>
 	<consumer id="0xc44cdc80">
 	  <geom ref="0xc41c7500"/>
 	  <provider ref="0xc41c7680"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc41c8000">
       <class ref="0xc0d0a360"/>
       <name>ad0s1</name>
       <rank>3</rank>
 	<consumer id="0xc44cde00">
 	  <geom ref="0xc41c8000"/>
 	  <provider ref="0xc41c7480"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
     <geom id="0xc4411a80">
       <class ref="0xc0d0a360"/>
       <name>ad0</name>
       <rank>2</rank>
 	<consumer id="0xc44ce380">
 	  <geom ref="0xc4411a80"/>
 	  <provider ref="0xc4411e80"/>
 	  <mode>r0w0e0</mode>
 	</consumer>
     </geom>
   </class>
   <class id="0xc0cc2660">
     <name>MD</name>
   </class>
   <class id="0xc0d0abc0">
     <name>PART</name>
     <geom id="0xc41c7d80">
       <class ref="0xc0d0abc0"/>
       <name>ad0s2</name>
       <rank>3</rank>
       <config>
 	<scheme>BSD</scheme>
 	<entries>8</entries>
 	<first>0</first>
 	<last>16783199</last>
 	<fwsectors>63</fwsectors>
 	<fwheads>16</fwheads>
       </config>
 	<consumer id="0xc44cdc00">
 	  <geom ref="0xc41c7d80"/>
 	  <provider ref="0xc41c7680"/>
 	  <mode>r3w3e5</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc44d2d00">
 	  <geom ref="0xc41c7d80"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s2e</name>
 	  <mediasize>5841534976</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <start>5373952</start>
 	    <end>16783199</end>
 	    <index>5</index>
 	    <type>freebsd-ufs</type>
 	    <offset>2751463424</offset>
 	    <length>5841534976</length>
 	    <rawtype>7</rawtype>
 	  </config>
 	</provider>
 	<provider id="0xc44d2e00">
 	  <geom ref="0xc41c7d80"/>
 	  <mode>r0w0e0</mode>
 	  <name>ad0s2d</name>
 	  <mediasize>201326592</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <start>4980736</start>
 	    <end>5373951</end>
 	    <index>4</index>
 	    <type>freebsd-ufs</type>
 	    <offset>2550136832</offset>
 	    <length>201326592</length>
 	    <rawtype>7</rawtype>
 	  </config>
 	</provider>
 	<provider id="0xc44d3000">
 	  <geom ref="0xc41c7d80"/>
 	  <mode>r1w1e0</mode>
 	  <name>ad0s2b</name>
 	  <mediasize>2147483648</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <start>786432</start>
 	    <end>4980735</end>
 	    <index>2</index>
 	    <type>freebsd-swap</type>
 	    <offset>402653184</offset>
 	    <length>2147483648</length>
 	    <rawtype>1</rawtype>
 	  </config>
 	</provider>
 	<provider id="0xc44d3100">
 	  <geom ref="0xc41c7d80"/>
 	  <mode>r1w1e1</mode>
 	  <name>ad0s2a</name>
 	  <mediasize>402653184</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <start>0</start>
 	    <end>786431</end>
 	    <index>1</index>
 	    <type>freebsd-ufs</type>
 	    <offset>0</offset>
 	    <length>402653184</length>
 	    <rawtype>7</rawtype>
 	  </config>
 	</provider>
     </geom>
     <geom id="0xc4411b00">
       <class ref="0xc0d0abc0"/>
       <name>ad0</name>
       <rank>2</rank>
       <config>
 	<scheme>MBR</scheme>
 	<entries>4</entries>
 	<first>63</first>
 	<last>228338837</last>
 	<fwsectors>63</fwsectors>
 	<fwheads>16</fwheads>
       </config>
 	<consumer id="0xc44ce300">
 	  <geom ref="0xc4411b00"/>
 	  <provider ref="0xc4411e80"/>
 	  <mode>r3w3e8</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc41c7c80">
 	  <geom ref="0xc4411b00"/>
 	  <mode>r0w0e0</mode>
 	  <name>ad0s3</name>
 	  <mediasize>98742067200</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <start>35471520</start>
 	    <end>228327119</end>
 	    <index>3</index>
 	    <type>!15</type>
 	    <offset>18161418240</offset>
 	    <length>98742067200</length>
 	    <rawtype>15</rawtype>
 	  </config>
 	</provider>
 	<provider id="0xc41c7680">
 	  <geom ref="0xc4411b00"/>
 	  <mode>r3w3e5</mode>
 	  <name>ad0s2</name>
 	  <mediasize>8592998400</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <start>18688320</start>
 	    <end>35471519</end>
 	    <index>2</index>
 	    <type>freebsd</type>
 	    <offset>9568419840</offset>
 	    <length>8592998400</length>
 	    <rawtype>165</rawtype>
 	    <attrib>active</attrib>
 	  </config>
 	</provider>
 	<provider id="0xc41c7480">
 	  <geom ref="0xc4411b00"/>
 	  <mode>r0w0e0</mode>
 	  <name>ad0s1</name>
 	  <mediasize>9568387584</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <start>63</start>
 	    <end>18688319</end>
 	    <index>1</index>
 	    <type>!12</type>
 	    <offset>32256</offset>
 	    <length>9568387584</length>
 	    <rawtype>12</rawtype>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc0d0a480">
     <name>DISK</name>
     <geom id="0xc4411a00">
       <class ref="0xc0d0a480"/>
       <name>ad0</name>
       <rank>1</rank>
       <config>
       </config>
 	<provider id="0xc4411e80">
 	  <geom ref="0xc4411a00"/>
 	  <mode>r3w3e8</mode>
 	  <name>ad0</name>
 	  <mediasize>116909491200</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <fwheads>16</fwheads>
 	    <fwsectors>63</fwsectors>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc0d0a9e0">
     <name>LABEL</name>
     <geom id="0xc4505280">
       <class ref="0xc0d0a9e0"/>
       <name>ad0s2d</name>
       <rank>4</rank>
       <config>
       </config>
 	<consumer id="0xc44cd580">
 	  <geom ref="0xc4505280"/>
 	  <provider ref="0xc44d2e00"/>
 	  <mode>r0w0e0</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc4505300">
 	  <geom ref="0xc4505280"/>
 	  <mode>r0w0e0</mode>
 	  <name>ufsid/46387cd73d66d2ca</name>
 	  <mediasize>201326592</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>0</index>
 	    <length>201326592</length>
 	    <seclength>393216</seclength>
 	    <offset>0</offset>
 	    <secoffset>0</secoffset>
 	  </config>
 	</provider>
     </geom>
     <geom id="0xc4411c00">
       <class ref="0xc0d0a9e0"/>
       <name>ad0s1</name>
       <rank>3</rank>
       <config>
       </config>
 	<consumer id="0xc44cdcc0">
 	  <geom ref="0xc4411c00"/>
 	  <provider ref="0xc41c7480"/>
 	  <mode>r0w0e0</mode>
 	  <config>
 	  </config>
 	</consumer>
 	<provider id="0xc4411980">
 	  <geom ref="0xc4411c00"/>
 	  <mode>r0w0e0</mode>
 	  <name>msdosfs/IBM_PRELOAD</name>
 	  <mediasize>9568387584</mediasize>
 	  <sectorsize>512</sectorsize>
 	  <config>
 	    <index>0</index>
 	    <length>9568387584</length>
 	    <seclength>18688257</seclength>
 	    <offset>0</offset>
 	    <secoffset>0</secoffset>
 	  </config>
 	</provider>
     </geom>
   </class>
   <class id="0xc0d0a940">
     <name>VFS</name>
     <geom id="0xc44d1a80">
       <class ref="0xc0d0a940"/>
       <name>ffs.ad0s2e</name>
       <rank>4</rank>
 	<consumer id="0xc44cd980">
 	  <geom ref="0xc44d1a80"/>
 	  <provider ref="0xc44d2d00"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
     <geom id="0xc4505780">
       <class ref="0xc0d0a940"/>
       <name>ffs.ad0s2a</name>
       <rank>4</rank>
 	<consumer id="0xc443c800">
 	  <geom ref="0xc4505780"/>
 	  <provider ref="0xc44d3100"/>
 	  <mode>r1w1e1</mode>
 	</consumer>
     </geom>
   </class>
</mesh>

-- 
Thanks,

Tai-hwa Liang
Received on Thu Apr 02 2009 - 23:35:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:45 UTC