I tried "crm_master -G" under Solaris and received
> crm_master[13193]: 2007/05/16_14:08:36 ERROR: uname(3) call failed:
Error 0
I traced the system calls and found uname returning 1 :
....
zone_lookup("") = 0
zone_getattr(0, ZONE_ATTR_PRIVSET, 0xFEA00288, 12) = 12
getpeerucred(4, 0x08066C58) = 0
> uname(0x08047674) = 1
getpid() = 12539 [12538]
..
..
which is Ok under Solaris.
The return values for uname are diffrent between Linux and Solaris.
Man page Solaris says:
RETURN VALUES
Upon successful completion, a non-negative value is
returned. Otherwise, -1 is returned and errno is set to
indicate the error.
Man page Linux says:
RETURN VALUE
On success, zero is returned.
On error, -1 is returned, and errno is set appropriately.
I think in crm_attribute.c is the call which doesn't work
under Solaris:
./crm/admin/crm_attribute.c: if(uname(&name) != 0) {
./crm/admin/crm_attribute.c: cl_perror("uname(3) call
failed");
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/