Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2012 21:12:14 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>, Doug Rabson <dfr@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>, Pawel Jakub Dawidek <pjd@FreeBSD.org>, Andriy Gapon <avg@FreeBSD.org>
Subject:   Re: [CFC/CFT] large changes in the loader(8) code
Message-ID:  <4FEB5B0E.8020009@FreeBSD.org>
In-Reply-To: <4FE9B01C.30306@yandex.ru>
References:  <4FE9B01C.30306@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-06-26 14:50, Andrey V. Elsukov wrote:
> 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 many
> disks and partitions the system has:
> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=148296
> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=161897
> 3. The GPT support doesn't check CRC and even doesn't know anything
> about the secondary GPT header/table.
> 
> So, i have created the branch and committed the changes:
> 	http://svnweb.freebsd.org/base/user/ae/bootcode/
> The patch is here:
> 	http://people.freebsd.org/~ae/boot.diff

FWIW, I verified it compiles OK with clang, and especially boot2's size
isn't increased at all.

It would be nice if you could check it with clang now and again, before
you finally merge this project into head.



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