From owner-freebsd-geom@FreeBSD.ORG Thu Nov 15 06:14:12 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F61316A419; Thu, 15 Nov 2007 06:14:12 +0000 (UTC) (envelope-from gordon@tetlows.org) Received: from lollipop.listbox.com (lollipop.listbox.com [208.210.124.78]) by mx1.freebsd.org (Postfix) with ESMTP id 1C6CF13C448; Thu, 15 Nov 2007 06:14:11 +0000 (UTC) (envelope-from gordon@tetlows.org) Received: from rune.pobox.com (rune.pobox.com [208.210.124.79]) by lollipop.listbox.com (Postfix) with ESMTP id B1EEF44B821; Thu, 15 Nov 2007 00:29:02 -0500 (EST) Received: from rune (localhost [127.0.0.1]) by rune.pobox.com (Postfix) with ESMTP id ECE8915C7BB; Thu, 15 Nov 2007 00:28:30 -0500 (EST) Received: from [192.168.1.6] (cpe-66-75-32-81.san.res.rr.com [66.75.32.81]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id 4111615C7FD; Thu, 15 Nov 2007 00:28:28 -0500 (EST) Message-Id: <61434C70-4246-47E8-9C30-5956738B611B@tetlows.org> From: Gordon Tetlow To: Eric Anderson In-Reply-To: <47117184.3030309@freebsd.org> Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-1--98589682" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Wed, 14 Nov 2007 21:27:38 -0800 References: <47117184.3030309@freebsd.org> X-Pgp-Agent: GPGMail d50 (Leopard) X-Mailer: Apple Mail (2.912) Cc: Ivan Voras , freebsd-geom@freebsd.org Subject: Re: Disk mounting in recent Linuxes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2007 06:14:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-1--98589682 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Oct 13, 2007, at 6:31 PM, Eric Anderson wrote: > Ivan Voras wrote: >> Hi, >> I've installed a Linux (openSUSE) on a laptop and this is what I >> got by >> default in fstab: >> /dev/disk/by-id/scsi-SATA_Hitachi_HTS5412_HP0400BEG1922A-part2 / >> ext3 acl,user_xattr 1 1 >> /dev/disk/by-id/scsi-SATA_Hitachi_HTS5412_HP0400BEG1922A-part4 /data >> ext3 acl,user_xattr 1 2 >> /dev/disk/by-id/scsi-SATA_Hitachi_HTS5412_HP0400BEG1922A-part3 swap >> swap defaults 0 0 >> A similar option (to use a device by id instead of location) also >> exists >> for network cards. >> (This is just a "FYI" post, I'm not complaining :) ). > > > I was actually wondering if we should start labeling our filesystems > at newfs time in the installer for this type of setup. There are a > handful of potential 'gotchas' though. The big gotcha with GEOM_VOL_FFS (I don't know if pjd@ ever addressed this when he took it over) was that GEOM was undetermined in how it handled labels that overlapped. My original thought was to use the uuid field that I allocated in the FFS superblock (AFAIK, that's still unused). Whatever the uuid of the root device is would dictate the uuid for the system. Any volumes that didn't have the root uuid would be separated by namespace. ie /dev/vol//root if you took the root disk from another system and mounted on your system. Of course, with the uuid moved to the filesystem, it actually gets easier in some sense (how do you figure out which labeled filesystem is your root filesystem if you have 2 labelled filesystems with the same uuid), although the loader will probably have to send it as hint to the kernel. -gordon --Apple-Mail-1--98589682 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFHO9jkRu2t9DV9ZfsRAoD+AKDOqgywm3nZzXPfsSxQdY9bRwTtcACgjgkh UCuG0VTGNaBdnm02RIF60r4= =Wpau -----END PGP SIGNATURE----- --Apple-Mail-1--98589682--