Experiences with Gpart
Marcel Moolenaar
xcllnt at mac.com
Mon Nov 17 20:21:31 PST 2008
[sorry for the delay]
On Nov 10, 2008, at 3:45 AM, Vadim Goncharov wrote:
>>> But, allowing for configuring partitioning as user wants (and
>>> complex nesting,
>>> if one wish) was always strong benefit of the GEOM. So why not? It
>>> is allowed
>>> author of this thread to manage mirrors the way he wants, not the
>>> way somebody
>>> enforces. Unix is tools, not policy (c)
>>
>> Gratuitous non-compliance in the name of freedom is
>> not the Unix-way of things.
>
> Unix always had at least knob allow_me_to_shoot_in_the_foot, if now
> allowed
> this directly. So what alternative do you propose to group
> partitions together
> or to split GPT partitions? bsdlabel? But that is limited to 26
> partitions
> and 2^32 sectors.
FreeBSD allowed nested GPTs before and I didn't change
this in GPart. Put differently: I didn't add special
code to disallow it. By way of how GEOM works, FreeBSD
will support it by default:
# mdconfig -a -t malloc -s 128m
md0
# gpart create -s gpt md0
md0 created
# gpart add -b 34 -s 131038 -t freebsd md0
md0s1 added
# gpart add -b 131072 -s 131038 -t freebsd md0
md0s2 added
# gpart create -s gpt md0s1
md0s1 created
# gpart create -s gpt md0s2
md0s2 created
# gpart show | grep GPT
=> 34 262077 md0 GPT (128M)
=> 34 130971 md0s1 GPT (64M)
=> 34 130971 md0s2 GPT (64M)
FYI,
--
Marcel Moolenaar
xcllnt at mac.com
More information about the freebsd-geom
mailing list