Hi, Poul-Henning
This is my DP2 box's info about 'GEOM' when power on with 'boot -v'.
GEOM: new disk da0
GEOM: new disk da1
GEOM: new disk da2
MBR Slice 1 on da0:
0000 80 01 01 00 a5 fe ff 7b 3f 00 00 00 3d a8 da 00 |.......{?...=...|
[0] f:80 typ:165 s(CHS):0/1/1 e(CHS):123/254/255 s:63 l:14329917
GEOM: Add da0s1, start 32256 length 7336917504 end 7336949759
GEOM: Configure da0c, start 0 length 36701167104 end 36701167103
GEOM: Configure da0e, start 0 length 36701167104 end 36701167103
MBR Slice 1 on da1:
0000 80 01 01 00 a5 fe ff 7b 3f 00 00 00 3d a8 da 00 |.......{?...=...|
[0] f:80 typ:165 s(CHS):0/1/1 e(CHS):123/254/255 s:63 l:14329917
GEOM: Add da1s1, start 32256 length 7336917504 end 7336949759
GEOM: Configure da1c, start 0 length 36701167104 end 36701167103
MBR Slice 1 on da2:
0000 80 01 01 00 a5 fe bf 7c 3f 00 00 00 fe 25 9c 00 |.......|?....%..|
[0] f:80 typ:165 s(CHS):0/1/1 e(CHS):124/254/191 s:63 l:10233342
GEOM: Add da2s1, start 32256 length 5239471104 end 5239503359
MBR Slice 2 on da2:
0000 80 00 81 7d a5 fe ff ff 3d 26 9c 00 3d 26 9c 00 |...}....=&..=&..|
[1] f:80 typ:165 s(CHS):125/0/129 e(CHS):255/254/255 s:10233405 l:10233405
GEOM: Add da2s2, start 5239503360 length 5239503360 end 10479006719
GEOM: Configure da0s1a, start 0 length 134217728 end 134217727
GEOM: Configure da0s1b, start 134217728 length 244629504 end 378847231
GEOM: Configure da0s1c, start 0 length 7336917504 end 7336917503
GEOM: Configure da0s1d, start 378847232 length 268435456 end 647282687
GEOM: Configure da0s1e, start 647282688 length 268435456 end 915718143
GEOM: Configure da0s1f, start 915718144 length 6421199360 end 7336917503
GEOM: Configure da1s1a, start 0 length 134217728 end 134217727
GEOM: Configure da1s1b, start 134217728 length 244629504 end 378847231
GEOM: Configure da1s1c, start 0 length 7336917504 end 7336917503
GEOM: Configure da1s1d, start 378847232 length 268435456 end 647282687
GEOM: Configure da1s1e, start 647282688 length 268435456 end 915718143
GEOM: Configure da1s1f, start 915718144 length 6421199360 end 7336917503
GEOM: Configure da2s1c, start 0 length 5239471104 end 5239471103
GEOM: Configure da2s1e, start 0 length 5239471104 end 5239471103
GEOM: Configure da2s2c, start 0 length 5239503360 end 5239503359
GEOM: Configure da2s2e, start 0 length 524288000 end 524287999
I am studying your geom code, let me talk my understanding firstly:
'geoms' is a globe var, from the above info and code, my point is:
begin: geoms.tqh_first=NULL, geoms.tqe_prev=&geoms.tqh_first;
end: geoms chain is
-> -> -> -> -> -> -> -> -> ->
geoms da0 da1 da2 Mda0 Sda0 Mda1 Sda1 Mda2 Sda2_1 Sda2_2-
^| <- <- <- <- <- <- <- <- <- <- |
- - - - - - - - - - - - - - - - - - - - -
I am not sure whether this chain is right?
If we add a partition 'da0s1h' to the box, when we excute the g_attach()
function,
it will call redo_rank(). My viewpoint is that the 'DEV'(da0s1h) should
been added between 'Sda0' and 'Mda1'. Based my understanding on
'redo_rank', this function will change all the 'rank' of the elements on
the chain, right?
'ad1', 'ad2' and their branches is irrelevant to 'ad0', why their rank must
change?
Thank your help so much!
Best Regards
Ouyang Kai
_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
- Re: about GEOM 'geoms' chain question kai ouyang
- Re: about GEOM 'geoms' chain question Poul-Henning Kamp