From owner-freebsd-arch Fri Jan 24 13:57:58 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 326BB37B401 for ; Fri, 24 Jan 2003 13:57:56 -0800 (PST) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 789B943ED8 for ; Fri, 24 Jan 2003 13:57:55 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch01.lj.gnf.org [172.25.10.19]) by ns1.gnf.org (8.12.3/8.12.3) with ESMTP id h0OLvqMf015060 for ; Fri, 24 Jan 2003 13:57:52 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Fri, 24 Jan 2003 13:57:54 -0800 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.6/8.12.6) with ESMTP id h0OLvs6t080789; Fri, 24 Jan 2003 13:57:54 -0800 (PST) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.6/8.12.6/Submit) id h0OLvrkk080788; Fri, 24 Jan 2003 13:57:53 -0800 (PST) (envelope-from gtetlow) Date: Fri, 24 Jan 2003 13:57:53 -0800 From: Gordon Tetlow To: Garance A Drosihn Cc: arch@FreeBSD.ORG Subject: Re: CFR: Volume labels in FFS Message-ID: <20030124215753.GM53114@roark.gnf.org> References: <20030124212259.GJ53114@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IoCMmVDh1/K3iHvq" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-OriginalArrivalTime: 24 Jan 2003 21:57:54.0249 (UTC) FILETIME=[A5985B90:01C2C3F3] Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --IoCMmVDh1/K3iHvq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 24, 2003 at 04:52:57PM -0500, Garance A Drosihn wrote: > At 1:22 PM -0800 1/24/03, Gordon Tetlow wrote: > >I'd like to get some review of my patch to add volume label > >support to FFS. I've already changed struct fs (sorry non-i386 > >users) to allocate some space for the label. I'm looking to > >commit this relatively soon unless there is some major problems > >with the review. > > > >http://people.freebsd.org/~gordon/patches/volume.diff > > > >The patch is basically a GEOM module (which allows you to use > >volume labels for your root partition is you so desire (my > >laptop's root slice is mounted from /dev/vol/rootfs)) and a > >couple modifications to add labels (newfs, tunefs). >=20 > This sounds interesting. The patch looks like it just adds > support for setting and retrieving the label. How will this > be usable at the /etc/fstab level? Will this let us do something > similar to what linux allows for /etc/fstab, such as: > LABEL=3D/blah /mnt/blah ufs rw 2 2 >=20 > (if so, I'd also like something like: > IFLABEL=3D/blah /mnt/blah ufs rw 2 2 > which means *iff* the OS finds a partition labelled /blah, then > it should mount it at /mnt/blah, and that it is *not* an error > when no such labelled volume is found) No, it actually creates device nodes in /dev/vol/, so it be more like this: /dev/vol/rootfs / ufs rw 1 1 /dev/vol/usrfs /usr ufs rw 2 2 =2E..etc... I didn't go the Linux route and do LABEL=3D because there is alot of black magic in the loader that reads /etc/fstab looking for the root partition and I didn't want to mess with fstab.h and friends. -gordon -gordon --IoCMmVDh1/K3iHvq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+MbbhRu2t9DV9ZfsRAu0ZAJ4r/kTQHVJiO7u6bO8ehcsEb9tM5gCeL2RW xgM8ouEQQyXJug4kIjA0/fs= =wyoe -----END PGP SIGNATURE----- --IoCMmVDh1/K3iHvq-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message