Re: generating a Linux WWN?

Matthew Wilcox
2007-10-04T03:33:29Z

On Wed, Oct 03, 2007 at 08:23:14PM -0700, Matthew Jacob wrote:
> For smaller bit spaces like 64 bit WWNs, you cannot, as you correctly
> point out, generate reliably unique numbers all by youself. The
> closest you could probably come is using a type 5 WWN with a known
> single OUI and then use "seconds since January 1 2007" as a serial
> number in the 36 bit VID space that gives you about 8 years before it
> wraps- the likely collision rate here would be pretty low.

Unless you generate more than one WWN per second. We could enforce that
by have an msleep(1000) in the WWN generator function ... which might
discourage people from using it except when they really had to ;-)
Of course, if you turn on two computers in the same zone at the same
time, you're still screwed.

--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."