]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o When creating the EBR scheme, set the number of entries
authormarcel <marcel@FreeBSD.org>
Sat, 21 Feb 2009 19:25:13 +0000 (19:25 +0000)
committermarcel <marcel@FreeBSD.org>
Sat, 21 Feb 2009 19:25:13 +0000 (19:25 +0000)
commitef2c45517283867221ddf0db10565c7ca9c93bce
tree7544fbb16a32db8b0a9c93a7fe93c306a828c0be
parentd6b23ce1539543a5cc3dfe32ca002797fb016713
o  When creating the EBR scheme, set the number of entries
   properly. Otherwise the minimum of 1 is used and you can
   only insert a single partition/slice and only at sector
   0 (index 1).
o  When adding a partition/slice, recalculate the index after
   the start and size of the partition/slice are adjusted to
   make them a multiple of the track size. Since the precheck
   method sets the index based on the start of the partition
   as provided by the user, we know that we're off by at most
   1 and adjusting the index is safe.
sys/geom/part/g_part_ebr.c