svn commit: r274661 - in head/sys: conf geom/part modules/geom/geom_part/geom_part_bsd

Andrey V. Elsukov ae at FreeBSD.org
Wed Nov 19 16:23:26 UTC 2014


On 19.11.2014 19:20, Warner Losh wrote:
>> Probably you need to use basetable->gpt_entries here instead of 
>> MAXPARTITIONS.
> 
> I’m having trouble connecting the dots between GPT and BSDlabels. Why
> would this field be relevant? Is it just poorly named? MAXPARTITIONS
> is the number of partitions we support. It’s always a constant. While
> there are other BSD label formats that have differing numbers, I
> don’t think gpart supports those. But as always, I’m always on the
> lookout for code improvements.

BSD label supports up to 20 partitons. You can specify different number
with `gpart create -n 20 -s bsd`. For such labels your code will return
EINVAL.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20141119/a8d6effb/attachment.sig>


More information about the svn-src-all mailing list