Re: generating a Linux WWN?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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."
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux