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