On 2006-03-30T10:46:41, Andrew Beekhof <[EMAIL PROTECTED]> wrote:
> >Well, after a reboot, just run through them - the first time you
> >assign
> >one, that might be a while (is_used(id)) {id++} which might run as far
> >as 20 iterations or so ;-) And then you're set again.
> its doable but not terribly "nice".
Do you find the UUIDs terribly nice instead? ;-) That's the whole point;
I'd like to replace them with a small number if possible (for the
auto-generated stuff).
> >But the GUI also assigns ids - not sure how several GUI clients
> >prevent clashes...
> IIRC usually it uses the resource id , the object type and a counter
> in there
Right, which has just about the same likelihood of colliding as some
other non-random number.
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/