Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Aug 2013 22:20:03 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Peter Wemm <peter@wemm.org>
Cc:        J David <j.david.lists@gmail.com>, freebsd-stable@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: Problem with zfsloader on 9.2-BETA2
Message-ID:  <5203E153.4070605@yandex.ru>
In-Reply-To: <CAGE5yCpJZtfRNOsC-EAvy97zyV7FfirkCGOTjAqOm55-FpW58w@mail.gmail.com>
References:  <CABXB=RRhVDdKCidwnrji1qR41Rx7uvs2Lx1ZPF1FREOHcnm5bg@mail.gmail.com> <51FD5709.7050306@FreeBSD.org> <CABXB=RS4HSmtPHrw%2BcniTaL_63JS5fA3OcB91y-mCN1DmUKs5Q@mail.gmail.com> <5200C7A3.3070403@yandex.ru> <CABXB=RRU9f%2BFmSV=SCmKoaEjhpDptkD5i-v0YVm=gYBEH63Scw@mail.gmail.com> <5202006B.5060708@FreeBSD.org> <CABXB=RRDj_%2B0spjuhvNfuEy-OwqROO4y2BLQrXeBXw0XFr_zrg@mail.gmail.com> <CAGE5yCpJZtfRNOsC-EAvy97zyV7FfirkCGOTjAqOm55-FpW58w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08.08.2013 01:46, Peter Wemm wrote:
> I've run into this before.  Our loader and kernel are excessively
> pedantic about this.
> 
> gpart create -s gpt -n <entries> ...
> 
> leads to bootblocks or loader or kernel rejecting it if it is < 128,
> and some of the bootblocks reject it if it is > 128.
> 
> As things stand, the -n <entries> option is basically "make my system unusable".

The minimum number of GPT partitions that gpart(8) can create is 128.
It seems it's not fully correct now. The spec only requires that at
least 16k must be reserved for GPT table, but this doesn't mean that all
16kbytes should be used, also gpt table entry can be greater than 128
bytes in future.

gptboot uses static buffer to load GPT, and its size is 16k. So, if you
create GPT with more than 128 entries, it won't boot.

-- 
WBR, Andrey V. Elsukov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5203E153.4070605>