From owner-freebsd-current@FreeBSD.ORG Wed Jun 27 20:48:08 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 4854E1065674; Wed, 27 Jun 2012 20:48:08 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward19.mail.yandex.net (forward19.mail.yandex.net [IPv6:2a02:6b8:0:1402::4]) by mx1.freebsd.org (Postfix) with ESMTP id A02588FC0A; Wed, 27 Jun 2012 20:48:07 +0000 (UTC) Received: from smtp18.mail.yandex.net (smtp18.mail.yandex.net [95.108.252.18]) by forward19.mail.yandex.net (Yandex) with ESMTP id D87DC11215B9; Thu, 28 Jun 2012 00:48:05 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340830086; bh=fpN5xy35M4eeleaFZ3TpM92u3EFVrXqcUDZiQR1AXz4=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=WLNhS25Kcw1+BJgM1x0EAYojavokukfK/wSGYeBCX38POdmElVRKJi69ZVz6+Sowh u4rB2zW9ScCq2J14+Wc4AsPSct/D0khNTqXnlLAldIl/oKdHHFIlkx4bGUI5XZxw/V 8uLAqjzR+xZsvdzZSqvEZs0PNgXSS93GHVhinKTo= Received: from smtp18.mail.yandex.net (localhost [127.0.0.1]) by smtp18.mail.yandex.net (Yandex) with ESMTP id 5AD0918A019A; Thu, 28 Jun 2012 00:48:05 +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 smtp18.mail.yandex.net (nwsmtp/Yandex) with ESMTP id m4V0IY66-m4Vab2EW; Thu, 28 Jun 2012 00:48:05 +0400 X-Yandex-Rcpt-Suid: marcel@xcllnt.net X-Yandex-Rcpt-Suid: jhb@freebsd.org X-Yandex-Rcpt-Suid: dfr@freebsd.org X-Yandex-Rcpt-Suid: marcel@freebsd.org X-Yandex-Rcpt-Suid: pjd@freebsd.org X-Yandex-Rcpt-Suid: freebsd-hackers@freebsd.org X-Yandex-Rcpt-Suid: avg@freebsd.org X-Yandex-Rcpt-Suid: freebsd-current@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340830085; bh=fpN5xy35M4eeleaFZ3TpM92u3EFVrXqcUDZiQR1AXz4=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=XxoeMQsw7zjOrNVK3xpMoLXmojQOK64dz55HMu4ynyurBFZ6+3oMv/DOPP4DnpvNK IDu7/5IHEQkAXvkmg87GfK/hjc4UX6n+4MLfws+XQMQTMu76CpnT/zoVsWXJ/ZyVQb fT9XcnMKFzfKhvLFKMrPqF9Dlzz3TiXb2ZiMjjlc= Message-ID: <4FEB7181.9000508@yandex.ru> Date: Thu, 28 Jun 2012 00:48:01 +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: Marcel Moolenaar 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> In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: Doug Rabson , Marcel Moolenaar , Pawel Jakub Dawidek , freebsd-hackers , Andriy Gapon , freebsd-current 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: Wed, 27 Jun 2012 20:48:08 -0000 On 28.06.2012 00:14, Marcel Moolenaar wrote: >> 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. > > How do you know it's valid? It's in a location that is not valid > to begin with. Validity is based on rules and you're violating the > the rules without defining exactly what we call valid given the > new rules. This may seem nitpicking, but having went through the > hassle of dealing with the broken way we created the dangerously > dedicated disk, I appreciate the importance of being anal when it > comes to something that lives on non-volatile storage and gets to > be exposed to a world much larger than FreeBSD. So why do you not prevent to attach GEOM_PART_GPT to any providers that are not the disk drive? This will be the right solution to all our problems. Just don't create invalid GPT. -- WBR, Andrey V. Elsukov