From owner-freebsd-current@FreeBSD.ORG Thu Jun 28 11:06:02 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 27377106566C for ; Thu, 28 Jun 2012 11:06:02 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward4h.mail.yandex.net (forward4h.mail.yandex.net [84.201.186.22]) by mx1.freebsd.org (Postfix) with ESMTP id C4C078FC14 for ; Thu, 28 Jun 2012 11:06:01 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward4h.mail.yandex.net (Yandex) with ESMTP id D26101B214A1 for ; Thu, 28 Jun 2012 15:05:36 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id A55A7170014D; Thu, 28 Jun 2012 15:05:36 +0400 (MSK) Received: from 87.249.28.58.tel.ru (87.249.28.58.tel.ru [87.249.28.58]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 5aKuddo3-5aKKLHun; Thu, 28 Jun 2012 15:05:36 +0400 X-Yandex-Rcpt-Suid: bu7cher@yandex.ru 25079121 X-Yandex-Rcpt-Suid: freebsd-current@freebsd.org Message-ID: <4FEC3A80.5070304@passap.ru> Date: Thu, 28 Jun 2012 15:05:36 +0400 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:13.0) Gecko/20120620 Thunderbird/13.0.1 MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <4FE9B01C.30306@yandex.ru> <201206261337.11741.jhb@freebsd.org> <4FEA910C.4090305@yandex.ru> <7E41D945-F6FA-48D5-ADDC-4884A7C7C0F8@xcllnt.net> <4FEB5EA1.7060903@yandex.ru> <4FEC21BA.5070606@passap.ru> <4FEC26E2.7000206@yandex.ru> In-Reply-To: <4FEC26E2.7000206@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org 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: Thu, 28 Jun 2012 11:06:02 -0000 28.06.2012 13:41, Andrey V. Elsukov пишет: > On 28.06.2012 13:19, Boris Samorodov wrote: >> 27.06.2012 23:27, Andrey V. Elsukov пишет: >> >>> 1. You are against from: >>> Our loader detects that primary GPT header is damaged. It tries to read >>> backup GPT header from the last LBA and it detects that there is >>> "GEOM::" signature. It tries to read one previous sector and there is >>> *valid* GPT header. >> >> Can we do the other way round? I.e. the GPT header is at the last sector. And if GEOM singature is >> not found at last sector of the disk >> and this sector is a GPT header then look at the previous sector? > > Then this sector contains GPT table. OK, then place GEOM sector before GPT table. -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve