From owner-freebsd-fs@FreeBSD.ORG Thu Nov 20 10:27:42 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 494641065673 for ; Thu, 20 Nov 2008 10:27:42 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id C5D298FC16 for ; Thu, 20 Nov 2008 10:27:41 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L36l5-0003O3-VZ for freebsd-fs@freebsd.org; Thu, 20 Nov 2008 10:27:35 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Nov 2008 10:27:35 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Nov 2008 10:27:35 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Ivan Voras Date: Thu, 20 Nov 2008 11:28:25 +0100 Lines: 47 Message-ID: References: <200811201215.42008.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4D8E240A529F9DB6FD347171" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <200811201215.42008.doconnor@gsoft.com.au> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: Unique ID for UFS? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2008 10:27:42 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D8E240A529F9DB6FD347171 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Daniel O'Connor wrote: > Hi, > I am wondering if there is a unique ID generated for each UFS already? = If not=20 > would it be possible to add one somehow? >=20 > There is glabel, but I think having a UUID embedded in the FS would be = very=20 > handy for automation andwould prevent accidents that glabel can cause. >=20 > So, there could be a gfsid module that reads IDs from the FS (NTFS, ext= 2/3,=20 > UFS) and creates device nodes to allow access. Looking at the output of dumpfs, there is an 64-bit numeric "id" field that changes from file system to file system so this might it: magic 19540119 (UFS2) time Sat Nov 15 04:16:42 2008 superblock location 65536 id [ 46ea67b4 178d71a1 ] (but judging from how the value changes on my file systems it might be related to the timestamp). If this is a usable ID, it should be trivial to make glabel create IDs nodes (i.e. /dev/ufs/46ea67b4178d71a1). --------------enig4D8E240A529F9DB6FD347171 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJJTvJldnAQVacBcgRAvNpAJ0eFZo6kBsVCbpJV7q7PPMfdmXFdQCdH+tb pih+tyrDzy7Lzon82qxvHD4= =UOKJ -----END PGP SIGNATURE----- --------------enig4D8E240A529F9DB6FD347171--