From owner-freebsd-current@FreeBSD.ORG Mon Feb 2 21:34:03 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 66DDE106564A for ; Mon, 2 Feb 2009 21:34:03 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from mail-fx0-f10.google.com (mail-fx0-f10.google.com [209.85.220.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8125E8FC13 for ; Mon, 2 Feb 2009 21:34:02 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: by fxm3 with SMTP id 3so1638064fxm.19 for ; Mon, 02 Feb 2009 13:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Z3Ign3hKxBiJbDDkd9aIJpIuDREjaDGsdimhlMGUi8I=; b=ppfaDQhM+SpKNqGYc8wQTJ/P9Qr3TVyGajMV+0Tc/68YyDnxCupUOsg50j+hfUtnOT mqRBG7q1hxuu8D1kNUWs+j6fNTD36NkU+UjL8gWRSFBRcrSW8Yjo6BQBxrPkh53JJad5 ZJPcg1c/aY7aLua90nm7jE1JMP6IHeOdSUvFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KTZkEtHJP6ywRG5OzC6ufu8atk3ULmfutY5kXoFixCY2pl1wIHajYpuSSgN3BXD7Wa QXX5dGi4Dq5JpWCrUZPZbn9cPtXHEGHnBiQx2SKC3n4W1RmlKsmP3T75lI7Oaej8JwSf Vcn3HWKCnk986lm9pdQaYoLSbFHryfwqb7094= MIME-Version: 1.0 Received: by 10.181.216.14 with SMTP id t14mr1820552bkq.8.1233609819803; Mon, 02 Feb 2009 13:23:39 -0800 (PST) In-Reply-To: <49874922.5050309@andric.com> References: <49874922.5050309@andric.com> Date: Mon, 2 Feb 2009 21:23:39 +0000 Message-ID: <70e8236f0902021323h5ceb50c8m58f32b655e8c57b5@mail.gmail.com> From: =?ISO-8859-1?Q?Jo=E3o_Barros?= To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcel Moolenaar , 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: Mon, 02 Feb 2009 21:34:03 -0000 On Mon, Feb 2, 2009 at 7:27 PM, Dimitry Andric wrote: > On 2009-02-02 20:16, Marcel Moolenaar wrote: >> 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 This approach assumes you'll only add/remove partitions, not move and/or resize them. Let's go big and assume all possibilities. >> 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. > > This sector-based ID is a creative approach. :) In Linux, they just > assign a GUID to each unique partition (or actually, filesystem), and > you can use that to mount it. It doesn't matter anymore whether you > shift partitions around then... ...shift partitions or controllers. Being controller agnostic is the way to go. Being able to duplicate my OSX partition from the internal sata to an external usb or firewire disk and booting from it on my mac without any modifications whatsoever to the system: priceless. This would be a step closer in that direction. I'd go UUID :) > > OTOH, this gives ugly fstabs like: I can live with an ugly fstab, but can't live with an unbootable system ;) > > UUID=cf3de368-9729-4399-b612-2b62f4e98930 / ext3 relatime,errors=remount-ro 0 1 > > Also, you need a place to put the GUID, and there may not be room for > this in the filesystem and/or partition. -- Joao Barros