From owner-freebsd-fs@FreeBSD.ORG Wed Sep 24 19:25:23 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE9A71065676; Wed, 24 Sep 2008 19:25:23 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 32FDC8FC0C; Wed, 24 Sep 2008 19:25:22 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.2/8.14.2) with ESMTP id m8OJPL0N009017; Wed, 24 Sep 2008 23:25:21 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Wed, 24 Sep 2008 23:25:21 +0400 (MSD) From: Dmitry Morozovsky To: Marcel Moolenaar In-Reply-To: <10218E29-D89D-40BB-BACF-9DFB131974E7@mac.com> Message-ID: References: <20080921140932.adf51b5e.stas@FreeBSD.org> <10719B6B-1F3B-44C6-BAC0-D8C3F42F7F3F@mac.com> <10218E29-D89D-40BB-BACF-9DFB131974E7@mac.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (woozle.rinet.ru [0.0.0.0]); Wed, 24 Sep 2008 23:25:21 +0400 (MSD) Cc: freebsd-fs@freebsd.org, marcel@freebsd.org Subject: Re: gpt in-place editing X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 19:25:25 -0000 On Mon, 22 Sep 2008, Marcel Moolenaar wrote: MM> > MM> > It does not seem gpart wants allow me to delete da0p3 while disk is MM> > MM> > active... MM> > MM> MM> > MM> You probably have swapon and/or dumpon to set to the partition. MM> > MM> You can't remove a partition that is in use. MM> > MM> MM> > MM> Run "swapoff /dev/da0p3" and/or "dumpon off" first. MM> > MM> > Of course I did run swapoff; I'm not sure I did dumpoff, and unfortunately MM> > I MM> > did not run it under script(1). gpt (I did test under RELENG_7) does the MM> > trick, MM> > but -- MM> > MM> > However, we clearly have at least one bug: not creating da* device (for MM> > da0p5 MM> > in my case) MM> MM> You can't make that claim. You've forced the issue MM> by setting debugflags and bypassing gpart. As such, MM> gpart is unaware of the new partition (it wasn't MM> involved in the creation) and it isn't being made MM> aware, because the underlying geom isn't spoiled MM> (which would trigger a retaste). I made a retest tonight, and found that gpart is actually doing things quite right (my fault in previous experiment seems to be that I did not check for filt system types, and gpart does not understand short types like 'ufs'). Also, gpart does not allow default values in add phase, which is a bit annoying, especially when you create last partition; but we can live with this I hope ;) Thank you. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------