Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2009 16:48:34 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        rea-fbsd@codelabs.ru
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: 8.0-BETA1 bsdlabel broken?
Message-ID:  <4C84C6D2-0FEE-46F0-813B-244CA98DB5FC@mac.com>
In-Reply-To: <OLkQkjh4JtvZ8Q7GFHMAD2ALVfs@UL%2BEw68dotyeVWwcX17wEARTb1s>
References:  <fX%2BVI6m2svXk4wDqOGQ3HIesgO8@jmKTY7juey8QgiyMw1P6k9Lb4sg> <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> <TiR5kGIN59NiPk3Q5HjMiImYooQ@MbxgtlHN37ICHkxRO9kSrKasfoA> <A70794BC-F018-4F0A-9AF9-56E28D2B4845@mac.com> <LfBOtJAxBxAex2vUkLqeg/IZi/0@UL%2BEw68dotyeVWwcX17wEARTb1s> <OLkQkjh4JtvZ8Q7GFHMAD2ALVfs@UL%2BEw68dotyeVWwcX17wEARTb1s>

next in thread | previous in thread | raw e-mail | index | archive | help

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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C84C6D2-0FEE-46F0-813B-244CA98DB5FC>