From owner-freebsd-current@FreeBSD.ORG Tue Jun 26 14:01:46 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4676D1065677; Tue, 26 Jun 2012 14:01:46 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward15.mail.yandex.net (forward15.mail.yandex.net [IPv6:2a02:6b8:0:801::5]) by mx1.freebsd.org (Postfix) with ESMTP id 4C1308FC08; Tue, 26 Jun 2012 14:01:45 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward15.mail.yandex.net (Yandex) with ESMTP id 83B0E9E1DE8; Tue, 26 Jun 2012 18:01:43 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340719303; bh=1UHNgwa4LP2yCMa+FrgAboQCgWmOizJUFUMPXLdWctg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=nN2Kk6DnK1Bh2viN2Yis+wx5Xd8KI3VZL2fehYtdw5/VH5DF3xQJZIyP5RLBH4Uvh Ltoo9i7ZcVPPiWO6AWhMMefOwBUiBa+/cL1tLHi2zNvkYO3K0W2ObJCjIggs2zcSbJ iy61BRcfoFqcH/8/xEsDfzwfi5sTRLBIfMf14wSs= Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 21AD47E0554; Tue, 26 Jun 2012 18:01:43 +0400 (MSK) Received: from dynamic-178-141-5-132.kirov.comstar-r.ru (dynamic-178-141-5-132.kirov.comstar-r.ru [178.141.5.132]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1gVi9xkS-1gVWLZ9I; Tue, 26 Jun 2012 18:01:42 +0400 X-Yandex-Rcpt-Suid: pjd@FreeBSD.org X-Yandex-Rcpt-Suid: freebsd-current@freebsd.org X-Yandex-Rcpt-Suid: freebsd-hackers@freebsd.org X-Yandex-Rcpt-Suid: jhb@freebsd.org X-Yandex-Rcpt-Suid: dfr@freebsd.org X-Yandex-Rcpt-Suid: avg@FreeBSD.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340719303; bh=1UHNgwa4LP2yCMa+FrgAboQCgWmOizJUFUMPXLdWctg=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type; b=cqXEfn99WWFYPuQAYkyok+0JebVTngT18dfG4pfWr0eUx2ndPjbq/80IUfDmWTOt+ OBIa3T190cP/p4JOt+VQ1wlyR+gVtq4YsSqcUQbD9iwuVtrbt7H73YvMlxm66ZcdQk tVxjdY/Ue6Dq+34BBVc2dpPqZkmuFJWJCShxu9+c= Message-ID: <4FE9C0B6.5090106@yandex.ru> Date: Tue, 26 Jun 2012 18:01:26 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120406 Thunderbird/10.0.3 MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <4FE9B01C.30306@yandex.ru> <20120626125737.GA1372@garage.freebsd.pl> In-Reply-To: <20120626125737.GA1372@garage.freebsd.pl> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig21C87142E5DB97DE8655A57A" Cc: freebsd-hackers , Doug Rabson , freebsd-current , Andriy Gapon Subject: Re: [CFC/CFT] large changes in the loader(8) code X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 14:01:46 -0000 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--