From owner-freebsd-current@FreeBSD.ORG Sat Jul 11 23:48:35 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 649A5106566C for ; Sat, 11 Jul 2009 23:48:35 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by mx1.freebsd.org (Postfix) with ESMTP id 491418FC15 for ; Sat, 11 Jul 2009 23:48:35 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KMN00CHV64YU880@asmtp030.mac.com> for freebsd-current@freebsd.org; Sat, 11 Jul 2009 16:48:35 -0700 (PDT) From: Marcel Moolenaar In-reply-to: Date: Sat, 11 Jul 2009 16:48:34 -0700 Message-id: <4C84C6D2-0FEE-46F0-813B-244CA98DB5FC@mac.com> References: <20090710071023.GB32316@rwpc12.mby.riverwillow.net.au> <20090710112631.GE32316@rwpc12.mby.riverwillow.net.au> <3a142e750907100433y307f9b2bya1dc54953bdf5de2@mail.gmail.com> <0B1F6799-2FAC-4C01-A978-42E247979CAB@mac.com> <1z5niluEh3OBPNSdMbOMyoEwzX4@CWODRlDR5RMqbkBfR0/UzHcfNhE> <267A655F-13A6-4D79-A933-3A78854AC5FD@mac.com> To: rea-fbsd@codelabs.ru X-Mailer: Apple Mail (2.1070) Cc: FreeBSD Current Subject: Re: 8.0-BETA1 bsdlabel broken? 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: Sat, 11 Jul 2009 23:48:35 -0000 On Jul 11, 2009, at 4:12 PM, Eygene Ryabinkin wrote: > > But anyway, bsdlabel won't let you write the label (old, patched with > bad patch, patched with the current patch), since it wants to do it > via > the BSD class and our slicer is PART. Another patch will be > submitted ;)) The best approach is to have bsdlabel go over the partitions and compare those with the XML of the GEOM stack. Then, on a partition basis, you invoke g_part gctlreqs to modify, delete and/or add partitions. When bootcode is to be installed, you invoke a gctlreq for that separately. This approach also works for fdisk(8). FYI, -- Marcel Moolenaar xcllnt@mac.com