]>
git.proxmox.com Git - mirror_corosync.git/log
Steven Dake [Sun, 14 Jun 2009 10:13:48 +0000 (10:13 +0000)]
Add iface checking for Solaris platform.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2236
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Fri, 12 Jun 2009 10:22:32 +0000 (10:22 +0000)]
Make /etc/corosync/corosync.conf default configuration file
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2235
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Fri, 12 Jun 2009 10:20:53 +0000 (10:20 +0000)]
Handle LCR problem with unloading "unneeded" components
In LCR, global variable g_component_handle is used to keep handle of loaded
component. If this variable has magic value (0xFFFFFFFF) it means,
"we loaded library, but that library doesn't have any component_register
call -> don't try to destroy interfaces list).
If this variable has other value, it means "we loaded library, it registers,
but it exports some interface, what we currently don't need, so we can delete
that handle from libraries/interfaces list" and variable is set to magic value,
or "we loaded library, it registers and exports what we need -> great return some
nice value", but nobody resets variable to it's magic value.
Sadly, if you have loaded some component (needed), then try to load component,
which don't have component_register function, previously loaded component handle
is destroyed.
This problem happened to clm and quorum services, and cause, that loaded
clm handle was destroyed, so EVT (which need clm) just falls.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2234
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Thu, 11 Jun 2009 14:18:26 +0000 (14:18 +0000)]
Fix library linking fallout.. again
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2233
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Wed, 10 Jun 2009 17:57:22 +0000 (17:57 +0000)]
Modify totemnet to work properly on Solaris by setting variables in sendmsg
data structure.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2232
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Wed, 10 Jun 2009 17:00:15 +0000 (17:00 +0000)]
Shared libs should not call exit but return error
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2231
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Wed, 10 Jun 2009 14:36:38 +0000 (14:36 +0000)]
Remove unused variable on platforms other then Solaris.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2230
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Wed, 10 Jun 2009 14:28:46 +0000 (14:28 +0000)]
Fix compile on BSD platforms.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2229
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Wed, 10 Jun 2009 14:28:16 +0000 (14:28 +0000)]
Fix semun definitions for various platforms.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2228
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 10 Jun 2009 07:33:19 +0000 (07:33 +0000)]
Fix corosync-cfgtool -a so that it actaully produces some output!
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2227
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Tue, 9 Jun 2009 21:40:44 +0000 (21:40 +0000)]
Use PF_LOCAL to match BSD semantics of api calls.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2226
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Tue, 9 Jun 2009 20:31:51 +0000 (20:31 +0000)]
Resolve bug where config changes are delivered in the wrong order on nodes that
join and then open a cpg.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2225
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Andrew Beekhof [Tue, 9 Jun 2009 16:07:11 +0000 (16:07 +0000)]
Decouple the decouples shutdown/startup order of lcrso's from the internal objdb order.
This is needed as the objdb order will change as modules are loaded/unloaded and is
also set up to unload non-default services last (which is the opposite of what
something like Pacemaker needs).
In the worst case, the current behavior leads to cluster services (dlm, ocfs2, etc)
failing during shutdown. This patch also ensures that if, for example, cpg is unloaded
then anything that depends on it is unloaded first.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2224
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 18:56:36 +0000 (18:56 +0000)]
Remove quorum.c from lcrso build list since its linked into main binary.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2223
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 07:53:56 +0000 (07:53 +0000)]
Add support for buildling on Solaris platforms.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2222
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 07:47:10 +0000 (07:47 +0000)]
Call initializer directly for broken platforms which don't honor ctors in the shared object on dlopen.
This could probably be more tidy to detect those OS platforms which don't do this instead of hardcoding
to a specific platform we intend to port to.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2221
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 07:36:44 +0000 (07:36 +0000)]
Include limits.h in coroparse.c to properly define PATH_MAX.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2220
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 07:36:11 +0000 (07:36 +0000)]
Change NAME_MAX to FILENAME_MAX to compile properly on Posix OS.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2219
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 07:31:40 +0000 (07:31 +0000)]
Define MSG_NOSIGNAL if it is undefined by the base OS such as Solaris.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2218
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 07:31:14 +0000 (07:31 +0000)]
Conditionally compile on Solaris platforms msg_* flags in sendmsg header.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2217
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 07:24:37 +0000 (07:24 +0000)]
Include string.h in sq.h for memset() calls.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2216
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 02:30:13 +0000 (02:30 +0000)]
Make readdir operation portable by removing BSDism from coroparse.c.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2215
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 02:04:32 +0000 (02:04 +0000)]
Add strsep_cs to replace strsep.
-This line, and those below, will be ignored--
M exec/mainconfig.c
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2214
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 01:46:31 +0000 (01:46 +0000)]
First run at adding support for corosync totemip determination.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2213
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 00:55:00 +0000 (00:55 +0000)]
Make coroipcs compile on Solaris.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2212
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 00:47:56 +0000 (00:47 +0000)]
Rename queue datastructure to cs_queue data structure because some fail
operating system struct queue in the globally scoped headers.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2211
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 00:43:18 +0000 (00:43 +0000)]
Port of totemip to Solaris.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2210
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 00:42:40 +0000 (00:42 +0000)]
Port of logsys to Solaris.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2209
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 7 Jun 2009 00:42:21 +0000 (00:42 +0000)]
coroipcc port to Solaris.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2208
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Thu, 4 Jun 2009 16:12:08 +0000 (16:12 +0000)]
Don't let corosync-keygen fail if /etc/ais already exists
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2207
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Andrew Beekhof [Wed, 3 Jun 2009 10:46:07 +0000 (10:46 +0000)]
Fix compilation on OSX/Darwin
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2206
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Andrew Beekhof [Wed, 3 Jun 2009 09:54:22 +0000 (09:54 +0000)]
Forward port the clear_node_high_bit from whitetank
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2205
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Tue, 2 Jun 2009 17:44:56 +0000 (17:44 +0000)]
totempg.c: don't truncate group list
* exec/totempg.c (totempg_groups_join): Fix typo s/=/+/ that
would mistakenly truncate totempg group list.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2204
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Mon, 1 Jun 2009 08:46:10 +0000 (08:46 +0000)]
Fix coroipcc linking
Fixes rhbz#499918
Functions from ckpt library (like aCkptCheckpointOpen,
saCkptSectionIterationInitialize, ...) internally uses corosync functions
reply_receive, reply_receive_in_buf, ... This functions are included in
coroipcc.c source file and uses global static variable ipc_hdb.
Without patch, coroipcc is linked to shared library (libcoroipcc.so) AND linked
with every corosync libraries (like cpg, ....), so global variable ipc_hdb is
included not only in libcoroipcc.so, but also in libcpg.so, ...
dlm_controld has function retrieve_plocks, and whole binary is linked with
libcoroipcc and libcpg. So ipc_hdb is included TWICE (so has TWO addresses).
Main problem causing the bug was, that reply_receive uses address from one
library, and reply_receive_in_buf uses other. This confuses check of hdb_get
function.
After removing linking of coroipcc.o to cpg, and rather use of dynamic version,
(this means, there is only one instance of ipc_hdb) problem disappeared.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2203
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 1 Jun 2009 07:20:17 +0000 (07:20 +0000)]
Add broadcast option to corosync
This is a forward port of the openais, whitetank, code.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2202
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 31 May 2009 01:18:09 +0000 (01:18 +0000)]
Fix race condition in cpg service.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2201
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Sat, 30 May 2009 04:47:01 +0000 (04:47 +0000)]
Public headers should not include private config.h
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2200
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Fri, 22 May 2009 08:02:10 +0000 (08:02 +0000)]
This patch adds the definition VOTEQUORUM_NODEID_US to the library,
which is already implicitly zero.
It also adds VOTEQUORUM_NODEID_QDEVICE and makes the code that checks
for them more generic. This now allows you to change the number of votes
assigned to a quorum disk (for example)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2199
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Wed, 20 May 2009 13:30:29 +0000 (13:30 +0000)]
Support for uidgid feature
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2198
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Wed, 20 May 2009 13:11:23 +0000 (13:11 +0000)]
*Dispatch returns CS_ERR_BAD_HANDLE only on first hdb_get
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2197
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 20 May 2009 08:37:14 +0000 (08:37 +0000)]
Adapt the deliver_fn in the YKD quorum plugin to the new tpg API.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2196
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 20 May 2009 07:50:53 +0000 (07:50 +0000)]
Print a list of quorum members when it changes.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2195
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 18 May 2009 16:41:55 +0000 (16:41 +0000)]
avoid spurious failure of 'make syntax-check's sc_makefile_check
* pkgconfig/Makefile.am (lib%.pc): Add extra quotes to avoid
triggering check for use of obsolescent @VAR@ notation.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2194
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 18 May 2009 16:41:46 +0000 (16:41 +0000)]
don't include <signal.h> when it's not used
* exec/coroparse.c: Likewise.
* exec/quorum.c: Likewise.
* exec/sync.c: Likewise.
* exec/totemmrp.c: Likewise.
* exec/totemnet.c: Likewise.
* exec/totemrrp.c: Likewise.
* exec/totemsrp.c: Likewise.
* exec/vsf_quorum.c: Likewise.
* exec/vsf_ykd.c: Likewise.
* lcr/uic.c: Likewise.
* lcr/uis.c: Likewise.
* lib/cfg.c: Likewise.
* services/cfg.c: Likewise.
* services/cpg.c: Likewise.
* services/evs.c: Likewise.
* services/pload.c: Likewise.
* services/testquorum.c: Likewise.
* services/votequorum.c: Likewise.
* test/testconfdb.c: Likewise.
* test/testcpg.c: Likewise.
* test/testcpgzc.c: Likewise.
* test/testzcgc.c: Likewise.
* tools/corosync-cfgtool.c: Likewise.
* tools/corosync-objctl.c: Likewise.
* tools/corosync-pload.c: Likewise.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2193
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 18 May 2009 16:41:37 +0000 (16:41 +0000)]
don't include <assert.h> when it's not used
* exec/apidef.c: Likewise.
* exec/mainconfig.c: Likewise.
* exec/service.c: Likewise.
* exec/timer.c: Likewise.
* exec/totemconfig.c: Likewise.
* exec/totemmrp.c: Likewise.
* exec/vsf_quorum.c: Likewise.
* services/testquorum.c: Likewise.
* test/cpgbench.c: Likewise.
* test/cpgbenchzc.c: Likewise.
* tools/corosync-fplay.c: Likewise.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2192
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 18 May 2009 16:41:28 +0000 (16:41 +0000)]
always include <config.h> before any other file
* test/cpgbench.c: Include <config.h> before any other file.
* test/cpgbenchzc.c: Ditto.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2191
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 18 May 2009 16:41:21 +0000 (16:41 +0000)]
exec/schedwrk.c: include <config.h>
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2190
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 18 May 2009 16:41:13 +0000 (16:41 +0000)]
cfg.c: avoid useless if-before-free
* lib/cfg.c (corosync_cfg_ring_status_get): Avoid useless if-before-free
and change syntax to avoid triggering false-positive failure of
the "make syntax-check" sc_cast_of_argument_to_free rule.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2189
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 18 May 2009 16:41:04 +0000 (16:41 +0000)]
remove trailing blanks
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2188
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 18 May 2009 14:03:25 +0000 (14:03 +0000)]
When doing a controlled shutdown of corosync, we now
send out a JOIN message with our node removed. This should
speed up the case where a lot of nodes leave at the same time as
they don't need to wait for the token timeout for each node.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2187
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Mon, 18 May 2009 11:44:58 +0000 (11:44 +0000)]
coroparse: Handle different EOLs and pass error_string
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2186
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Mon, 18 May 2009 09:42:57 +0000 (09:42 +0000)]
Remove duplicity in logsys code
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2185
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Wed, 13 May 2009 09:25:08 +0000 (09:25 +0000)]
Fix output to syslog
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2184
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 13 May 2009 07:04:00 +0000 (07:04 +0000)]
Convert votequorum to use the proper message delivery API
rather than the tpg_ calls. Also remove a lot of mess around those
calls, such as headers and things that were needed for cman
compatibility but which we will not need.
Fixes some handle changes that did not get picked up when
handles were changed from unsigned ints to hdb_handle_t
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2183
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Wed, 13 May 2009 07:01:51 +0000 (07:01 +0000)]
Logsys header clean (comments and whitespaces)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2182
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Wed, 13 May 2009 04:27:54 +0000 (04:27 +0000)]
Fix totem logging after logsys changes
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2181
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Wed, 13 May 2009 03:59:47 +0000 (03:59 +0000)]
Fix logsys TAG handling
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2180
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Tue, 12 May 2009 09:20:21 +0000 (09:20 +0000)]
Fix spelling of "Received" in sync.c
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2179
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Tue, 12 May 2009 08:35:17 +0000 (08:35 +0000)]
logsys.c: avoid possibility of buffer overrun
* exec/logsys.c (strcpy_cutoff): Add buf_len parameter, and never
write more than this number of bytes into "dest".
Change type of "cutoff" parameter from int to size_t.
Sentinel value changes from -1 to 0.
(log_printf_to_logs): Adapt to those changes.
Reverse condition of test so the much-shorter block is the "if-block".
Factor out a common subexpression for readability.
Exit the loop if output_buffer_idx ever reaches sizeof(output_buffer).
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2178
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Tue, 12 May 2009 08:35:09 +0000 (08:35 +0000)]
logsys.c: avoid redundant strlen in else-block
* exec/logsys.c (strcpy_cutoff): Also, with a field width (aka cutoff),
and a shorter-than-field-width string, don't write the same memory
twice: once with strncpy using NUL bytes, then again with spaces
via the memset.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2177
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Tue, 12 May 2009 08:35:01 +0000 (08:35 +0000)]
logsys.c: factor out some duplication
* exec/logsys.c (log_printf_to_logs): Factor out repeated calls to
strcpy_cutoff.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2176
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Tue, 12 May 2009 05:36:09 +0000 (05:36 +0000)]
Add debugging code to logsys.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2175
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 11 May 2009 17:40:42 +0000 (17:40 +0000)]
totemnet.c: Make totemnet_initialize definition match just-changed decl.
* exec/totemnet.c (totemnet_initialize): Declare deliver_fn's msg_len
parameter to be of type "unsigned int" (not size_t) to match decl.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2174
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 11 May 2009 08:17:53 +0000 (08:17 +0000)]
Fix logging date format and add missing daemon name
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2173
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sat, 9 May 2009 17:23:17 +0000 (17:23 +0000)]
Remove most iovector-ized functionality from totem and only make one malloc
and memory copy call in totemsrp_mcast. The rest of the stack minus totempg
then uses zero copies.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2172
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Wed, 6 May 2009 06:54:07 +0000 (06:54 +0000)]
fix missing-dependency bug, so as not to install bogus .pc files
* pkgconfig/Makefile.am (all .pc files): Depend on Makefile, so that
a change in $(prefix) there provokes regeneration of these files.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2170
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 4 May 2009 12:45:45 +0000 (12:45 +0000)]
votequorum.c: avoid a new warning and add a comment in cpg.h
* votequorum.c: Avoid declaration of unused: ‘votequorum_instance_destructor’
* include/corosync/cpg.h (cpg_deliver_fn_t) [msg]: Add a comment explaining
why this member is not const.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2169
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 4 May 2009 12:37:27 +0000 (12:37 +0000)]
avoid 'incompatible pointer type' compiler warning
* test/cpgverify.c (cpg_deliver_fn): Remove const.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2168
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Mon, 4 May 2009 08:56:24 +0000 (08:56 +0000)]
add NTF_SERVICE to the service list
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2167
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 30 Apr 2009 00:14:08 +0000 (00:14 +0000)]
Do checking of handle code after we verify that handle could actually be
in the handle database.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2166
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Wed, 29 Apr 2009 07:21:21 +0000 (07:21 +0000)]
Implement thread saftey in corosync trunk.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2165
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Wed, 29 Apr 2009 07:14:36 +0000 (07:14 +0000)]
Fix leak caused by invalid put in hdb_handle_destroy.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2164
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Andrew Beekhof [Tue, 28 Apr 2009 14:05:52 +0000 (14:05 +0000)]
Call all configured exec_dump_fn's when SIGUSR2 is received
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2163
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Tue, 28 Apr 2009 06:45:26 +0000 (06:45 +0000)]
Add cpgverify program to test directory.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2162
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Andrew Beekhof [Mon, 27 Apr 2009 14:51:05 +0000 (14:51 +0000)]
Minor fixes to the build process on OSX
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2161
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 27 Apr 2009 11:37:59 +0000 (11:37 +0000)]
Fix debug: on option for logging purposes
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2160
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 27 Apr 2009 11:36:53 +0000 (11:36 +0000)]
add max limit error checks in logsys
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2159
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 27 Apr 2009 05:17:40 +0000 (05:17 +0000)]
Add mechanism to use logsysrec from inside totem stack.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2157
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 27 Apr 2009 05:01:25 +0000 (05:01 +0000)]
Improve security of NSS implementation in totem.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2156
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 12:39:54 +0000 (12:39 +0000)]
Fix evsverify failure.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2155
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Sun, 26 Apr 2009 06:26:12 +0000 (06:26 +0000)]
Fix --enable-nss default in configure.ac
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2154
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 05:22:24 +0000 (05:22 +0000)]
Make libnss detection work properly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2153
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Sun, 26 Apr 2009 04:52:26 +0000 (04:52 +0000)]
Fix pkgconfig file inclusion into release and pass distcheck
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2152
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 02:42:05 +0000 (02:42 +0000)]
add Chrissie as author of totem NSS implementation.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2151
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 02:38:46 +0000 (02:38 +0000)]
Remove const from delivery callback to allow inplace endian changes of
message contents.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2150
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 02:24:43 +0000 (02:24 +0000)]
remove "AIS" from cfg.h header file.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2149
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 02:08:18 +0000 (02:08 +0000)]
Allow CPP linkage by adding extern "C" {} to external header files.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2148
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 01:58:49 +0000 (01:58 +0000)]
remove config.h from public header file.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2147
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 26 Apr 2009 01:20:09 +0000 (01:20 +0000)]
Remove useless APIs from coroipcs.c related to handling of overload
conditions.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2146
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Sat, 25 Apr 2009 14:05:27 +0000 (14:05 +0000)]
Add libnss security support to corosync.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2145
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Fri, 24 Apr 2009 10:06:57 +0000 (10:06 +0000)]
Bump SONAME to 4.0.0
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2144
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Fri, 24 Apr 2009 09:55:21 +0000 (09:55 +0000)]
logsys.c: avoid an unnecessary strlen call
* exec/logsys.c (strcpy_cutoff): Use strlen, then memcpy,
not strcpy, then strlen.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2143
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jan Friesse [Fri, 24 Apr 2009 07:06:30 +0000 (07:06 +0000)]
Add Jan Friesse (me) to the list of Corosync authors
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2142
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 23 Apr 2009 19:39:20 +0000 (19:39 +0000)]
Remove mempool since it is unused and isn't going to be a feature in
this release.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2141
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 23 Apr 2009 19:34:26 +0000 (19:34 +0000)]
add request_shutdown call to coroapi.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2140
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 23 Apr 2009 19:21:35 +0000 (19:21 +0000)]
Add logsys yield counter for the logsys thread.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2139
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Thu, 23 Apr 2009 18:55:15 +0000 (18:55 +0000)]
corosync.pc.in: Define Cflags
* pkgconfig/corosync.pc.in (Cflags): Define.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2138
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Thu, 23 Apr 2009 18:55:06 +0000 (18:55 +0000)]
pkgconfig: correct and clean up Makefile.am
* pkgconfig/Makefile.am: Factor, add missing deps.
(pkgconf_LIBS): Remove unused var.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2137
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 23 Apr 2009 17:37:32 +0000 (17:37 +0000)]
Modify property of loc script to be executable.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2136
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 23 Apr 2009 17:32:57 +0000 (17:32 +0000)]
remove rmd.h header file.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2135
fd59a12c -fef9-0310-b244-
a6a79926bd2f