Description of problem: Magma picks the first cluster infrastructure it can connect to when initializing. If two cluster infrastructures are running, then it will choose the first from the readdir() operation. While this is a 100% unsupported use case, it is thought that we may want to protect against this particular situation. Possible options: (1) Simplest: - List plugins in /etc/cluster/magma.conf with full path. Only try listed plugins. (2) A bit more complex: - Assign priorities to magma plugins.
This will be fixed in the following manner, given that this is configuration unsupported: (1) Magma will sort the directory entries by name, and try to load them in alphabetical order (case-sensitive). Thus, gulm.so will be tried before sm.so. It is not neccesary to weigh one infrastructure over another. (2) Any file not having the "S_IRUSR" mode bit set will be ignored. This is useful for testing.
Patches committed to CVS.