Unique machine identifier for nfsv4 client
Rui Paulo
rpaulo at freebsd.org
Mon Mar 30 08:42:00 PDT 2009
On 30 Mar 2009, at 16:09, Rick Macklem wrote:
> An nfsv4 client needs a unique identifier that is persistent across
> reboots. My code currently uses the MAC address of the first net
> interface that it can find that has an Ethernet style MAC.
>
> There are two problems with this:
> 1 - If it can't find a net interface with a MAC, it falls back on a
> randomly generated identifier, which changes when it is rebooted.
> 2 - The code that finds the MAC breaks layering (ie knows stuff about
> the network code like struct ifnet) and only builds if
> "options VIMAGE_GLOBALS" is set.
This doesn't answer the question, but have you thought about the
possibility of the using the UUID that the system provides? A lot of
new machines come with UUIDs.
--
Rui Paulo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20090330/989afb5f/PGP.pgp
More information about the freebsd-arch
mailing list