Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Nov 2008 11:28:25 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-fs@freebsd.org
Subject:   Re: Unique ID for UFS?
Message-ID:  <gg3e2g$5ct$1@ger.gmane.org>
In-Reply-To: <200811201215.42008.doconnor@gsoft.com.au>
References:  <200811201215.42008.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Daniel O'Connor wrote:
> Hi,
> I am wondering if there is a unique ID generated for each UFS already? If not 
> would it be possible to add one somehow?
> 
> There is glabel, but I think having a UUID embedded in the FS would be very 
> handy for automation andwould prevent accidents that glabel can cause.
> 
> So, there could be a gfsid module that reads IDs from the FS (NTFS, ext2/3, 
> 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).


[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gg3e2g$5ct$1>