From owner-freebsd-current@FreeBSD.ORG Mon Feb 2 19:16:57 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 C71831065678 for ; Mon, 2 Feb 2009 19:16:57 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by mx1.freebsd.org (Postfix) with ESMTP id B52048FC1B for ; Mon, 2 Feb 2009 19:16:57 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from ubuntu.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp020.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KEG006LYDK5CH60@asmtp020.mac.com> for current@freebsd.org; Mon, 02 Feb 2009 11:16:57 -0800 (PST) Message-id: From: Marcel Moolenaar To: FreeBSD Current Date: Mon, 02 Feb 2009 11:16:53 -0800 X-Mailer: Apple Mail (2.930.3) Cc: Subject: 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: Mon, 02 Feb 2009 19:16:58 -0000 All, In case people are wondering: I'm working on proper support for logical partitions. This should also allow us to create and modify them. Of course when you add or remove a partition, the index changes and consequently the device name. I still need to find a good solution for that. Currently I'm thinking that we should create the device special file that contains the sector offset (which is the one constant) and create compatibility symlinks. For example: /dev/da0s2.00000000 /dev/da0s2.0834F7A0 /dev/da0s5 -> /dev/da0s2.00000000 /dev/da0s6 -> /dev/da0s2.0834F7A0 The idea is that the logical name (i.e. the symlink) change when you add or remove a partition, but that all references (i.e. mount information) are against the fixed name. In any case: I hope to have something in a few weeks. If you know of a good way to deal with adding/removing partitions, let me know. FYI, -- Marcel Moolenaar xcllnt@mac.com