Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2012 18:01:26 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>, Doug Rabson <dfr@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>, Andriy Gapon <avg@FreeBSD.org>
Subject:   Re: [CFC/CFT] large changes in the loader(8) code
Message-ID:  <4FE9C0B6.5090106@yandex.ru>
In-Reply-To: <20120626125737.GA1372@garage.freebsd.pl>
References:  <4FE9B01C.30306@yandex.ru> <20120626125737.GA1372@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig21C87142E5DB97DE8655A57A
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

On 26.06.2012 16:57, Pawel Jakub Dawidek wrote:
> On Tue, Jun 26, 2012 at 04:50:36PM +0400, Andrey V. Elsukov wrote:
>> Hi All,
>>
>> Some time ago i have started reading the code in the sys/boot.
>> Especially i'm interested in the partition tables handling.
>> I found several problems:
>> 1. There are several copies of the same code in the libi386/biosdisk.c=

>> and common/disk.c, and partially libpc98/biosdisk.c.
>> 2. ZFS probing is very slow, because the ZFS code doesn't know how man=
y
>> disks and partitions the system has:
>> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=3D148296
>> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=3D161897
>> 3. The GPT support doesn't check CRC and even doesn't know anything
>> about the secondary GPT header/table.
>=20
> Just a quick note here. At some point when I was adding GPT attributes
> to allow for test starts I greatly improved, at least parts of, the GPT=

> implementation. I did implement support for both CRC checksum
> verification and fallback to backup GPT header when primary is broken.
> And the code is still in sys/boot/common/gpt.c. So my question would be=

> what do you mean by this sentence?

Yes, gptboot does that, but the loader/zfsloader doesn't. So there might
be a situation when gptboot does boot, but loader(8) can't.

--=20
WBR, Andrey V. Elsukov


--------------enig21C87142E5DB97DE8655A57A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJP6cDFAAoJEAHF6gQQyKF6lsMH/Rzco/vYsCHB6SbQqMVUGb6m
ODVKakOz2jUD3e+62QQ/6sDOSiQHi1FCZ0Vil/+8fH8QdK877TzfVcGxZcyff5LU
On4cNxwCZBQku8uMgjniBsG3mxczCgdVjCQWLr1ntUx7eENwg43YDQqhnJ6ybc94
mpu5NOre7D2kmEo0upc66hC48EXnfr8Uyx1xCjXM6VTFVNbFuLnZbHxTYcVKB6jR
4C65a/lZa6KRvnEtQMKQCFUIdvFuO9DkwjkUrTsdq+ILVn63YDusFVrjZ5SfCO6S
s1MlOT41pGXToCoj4H0R6jsrY0oCddT0bK8QkDosA3gOQmQcr7wBLb5Zjm7Irbc=
=swCT
-----END PGP SIGNATURE-----

--------------enig21C87142E5DB97DE8655A57A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE9C0B6.5090106>