From owner-freebsd-current@FreeBSD.ORG Mon Jul 13 06:14:54 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 C17ED106566B for ; Mon, 13 Jul 2009 06:14:54 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 6AB508FC0A for ; Mon, 13 Jul 2009 06:14:54 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=cjxOv8GZzqhSAMtGR/R0jbjGO4t0wM735lbmXgbz9tJMPpbunluxnSwAWwYtCXWTyV8CWlI7kk5bHKtcD7jWb2qJDbURMidEyiCXhmMkrj7saSvpgHUtenRBiKOEJklq3Sg2uEWQpgZpRla6KtH1DKOqSCOCR3pFeqgV/pO22EQ=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1MQEoP-000LSB-3V; Mon, 13 Jul 2009 10:14:53 +0400 Date: Mon, 13 Jul 2009 10:14:51 +0400 From: Eygene Ryabinkin To: John Marshall Message-ID: References: <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> <20090713052209.GC982@rwpc12.mby.riverwillow.net.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090713052209.GC982@rwpc12.mby.riverwillow.net.au> Sender: rea-fbsd@codelabs.ru Cc: Marcel Moolenaar , freebsd-current@freebsd.org Subject: Re: 8.0-BETA1 bsdlabel broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2009 06:14:55 -0000 John, good day. Mon, Jul 13, 2009 at 03:22:09PM +1000, John Marshall wrote: > On Sun, 12 Jul 2009, 03:12 +0400, Eygene Ryabinkin wrote: > > OK, changed the patch to make the described checks. And to fix the error > > with the previous patch -- it will set the offset for writes to zero, so > > it is better to use this patch variant for doing label writes and never > > use the previous one for label modifications. Though it was doing the > > proper thing for reads. > > Thank you! I applied this patch to bsdlabel.c and now the utility > interprets the labels as expected. Cool, thanks for the testing! Though, in order to enlarge the swap you'll still need to use gpart or reboot into 7.x -- 8.x' bsdlabel won't write labels back into disk. I am working on it, but have some $JOB stuff to do before ;)) -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #