From owner-freebsd-current@FreeBSD.ORG Wed Feb 4 08:06:15 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB7081065678 for ; Wed, 4 Feb 2009 08:06:15 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout014.mac.com (asmtpout014.mac.com [17.148.16.89]) by mx1.freebsd.org (Postfix) with ESMTP id C57C58FC19 for ; Wed, 4 Feb 2009 08:06:15 +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 [192.168.4.253] (xcllnt.net [75.101.29.67]) by asmtp014.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KEJ00AU87UEP010@asmtp014.mac.com> for current@freebsd.org; Wed, 04 Feb 2009 00:06:15 -0800 (PST) Message-id: <9D6C9DA2-7BBB-42C6-9F3E-4B8EF2078969@mac.com> From: Marcel Moolenaar To: Martin In-reply-to: <20090204082718.0f217b1a@zelda.local> Date: Wed, 04 Feb 2009 00:06:13 -0800 References: <20090203082153.565746e2@zelda.local> <20090204004534.11ccca19@zelda.local> <20090204082718.0f217b1a@zelda.local> X-Mailer: Apple Mail (2.930.3) Cc: FreeBSD Current Subject: Re: GEOM_PART: a quick update on logical partitions 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, 04 Feb 2009 08:06:16 -0000 On Feb 3, 2009, at 11:27 PM, Martin wrote: > Am Tue, 03 Feb 2009 16:30:14 -0800 > schrieb Marcel Moolenaar : > >>> Then, it is quite unusual to insert a new logical partition and copy >>> all entries in the list one place down. >> >> What do you mean copy? > > I try to figure out why you think that the device names will change, > when you simply use the offset in the partition list. Please read: http://en.wikipedia.org/wiki/Extended_partition and then explain what you mean. > Ok, so when you have logical partition 0, 1 and 2. > > /dev/ad0s1.0 > /dev/ad0s1.1 > /dev/ad0s1.2 > > you can remove partitions 0 and 1, and you get: > > /dev/ad0s1.2 No, you have 0. > now you can insert 0 again and you get: > > /dev/ad0s1.0 > /dev/ad0s1.2 You'll have 0 and 1. > You can still use softlinks here. In the last situation you would get > ad0s5 and ad0s7. Do I forget about something? Yes. Consider adding 4 logical partitions in the space freed up by removing the first 2. What was the third partition in your example then becomes the 5th. How do you want to deal with that if you use "the offset". > I see. But you have to be aware that you create a special case here. > Someone who starts "geli journal ad0s5" won't get "ad0s5.journal". True. > > > And is it really a good idea to have the partition block number > for the suffix? Seems the best so far. > Imagine you use gpart or partition magic to move all > partitions 1GB down, for example to enlarge the file system on the > first > primary partition. You would need to figure out each logical partition > block number of the extended partition to fix the situation, No, they are relative. -- Marcel Moolenaar xcllnt@mac.com