Patches for Solaris/Illumos

Tested with OpenIndiana a151a9 and the current masters of libqb and corosync.
Corosync and pacemaker start without any errors.

Andreas
Aug 11 12:31:29 [13038]       crmd:  warning: throttle_num_cores:       Couldn't read /proc/cpuinfo, assuming a single processor: No such file or directory (2)
Aug 11 12:31:29 [13038]       crmd:  warning: throttle_cib_load:        Couldn't read (null): Bad address (14)
Aug 11 12:31:29 [13038]       crmd:  warning: throttle_load_avg:        Couldn't read /proc/loadavg: No such file or directory (2)
Aug 11 12:31:29 [13038]       crmd:  warning: throttle_io_load:         Couldn't read /proc/stat: No such file or directory (2)

The comment are just for the moment to avoid the warnings above.
I will search for compatible methods and provide some new “ugly” code:)

Von: Andrew Beekhof [mailto:notifications@github.com] 
Gesendet: Freitag, 15. August 2014 01:42
An: beekhof/pacemaker
Cc: Grüninger, Andreas (LGL Extern)
Betreff: Re: [pacemaker] Patches for Solaris/Illumos (#12)

In crmd/throttle.c:
>  
>      enum throttle_state_e mode = throttle_none;
> +#ifdef ON_SOLARIS
> +	return mode;
> +#else
what was the problem here?
—
Reply to this email directly or view it on GitHub.