[Linux-ha-dev] LRM Testing (take 2)
Alan Robertson
alanr at unix.sh
Fri Jun 11 08:24:18 MDT 2004
Alan Robertson wrote:
> Jiang Dong Sun wrote:
>
>> Ok, according to the popular opinion, will change the "uuid"'s format.
>> Before that, please tolerate the inconvenience brought by UUID in LRM
>> for a while. ;-)
>
>
>
>
> I'm sorry I was off the list fixing hardware while all this went on...
>
> The UUID format is the right answer... It is a standard, actually, and
> we should just use it.
>
> Don't mess with it.
>
> However, it is NOT a string, and cannot be strcmp()ed... You can use a
> string provided you NULL-pad the string in every case...
>
> It is a binary value of 128 bits.
>
> Making it of arbitrary length overly complicates the interface because
> you now have to pass the length everywhere you use it - BECAUSE IT IS
> BINARY, not a string.
It should be 128 *arbitrary *bits. If you pass 128 bits, then you win.
There is no such thing as an invalid UUID, when passed as binary.
abc\0\0\0\0\0\0\0\0\0\0\0\0\0" is a valid UUID (assuming I counted \0s right).
--
Alan Robertson <alanr at unix.sh>
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
More information about the Linux-HA-Dev
mailing list