]> git.proxmox.com Git - mirror_corosync.git/log
mirror_corosync.git
15 years agoAdd broadcast option to corosync
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

15 years agoFix race condition in cpg service.
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

15 years agoPublic headers should not include private config.h
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

15 years agoThis patch adds the definition VOTEQUORUM_NODEID_US to the library,
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

15 years agoSupport for uidgid feature
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

15 years ago*Dispatch returns CS_ERR_BAD_HANDLE only on first hdb_get
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

15 years agoAdapt the deliver_fn in the YKD quorum plugin to the new tpg API.
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

15 years agoPrint a list of quorum members when it changes.
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

15 years agoavoid spurious failure of 'make syntax-check's sc_makefile_check
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

15 years agodon't include <signal.h> when it's not used
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

15 years agodon't include <assert.h> when it's not used
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

15 years agoalways include <config.h> before any other file
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

15 years agoexec/schedwrk.c: include <config.h>
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

15 years agocfg.c: avoid useless if-before-free
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

15 years agoremove trailing blanks
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

15 years agoWhen doing a controlled shutdown of corosync, we now
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

15 years agocoroparse: Handle different EOLs and pass error_string
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

15 years agoRemove duplicity in logsys code
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

15 years agoFix output to syslog
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

15 years agoConvert votequorum to use the proper message delivery API
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

15 years agoLogsys header clean (comments and whitespaces)
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

15 years agoFix totem logging after logsys changes
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

15 years agoFix logsys TAG handling
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

15 years agoFix spelling of "Received" in sync.c
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

15 years agologsys.c: avoid possibility of buffer overrun
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

15 years agologsys.c: avoid redundant strlen in else-block
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

15 years agologsys.c: factor out some duplication
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

15 years agoAdd debugging code to logsys.
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

15 years agototemnet.c: Make totemnet_initialize definition match just-changed decl.
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

15 years agoFix logging date format and add missing daemon name
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

15 years agoRemove most iovector-ized functionality from totem and only make one malloc
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

15 years agofix missing-dependency bug, so as not to install bogus .pc files
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

15 years agovotequorum.c: avoid a new warning and add a comment in cpg.h
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

15 years agoavoid 'incompatible pointer type' compiler warning
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

15 years agoadd NTF_SERVICE to the service list
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

15 years agoDo checking of handle code after we verify that handle could actually be
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

15 years agoImplement thread saftey in corosync trunk.
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

15 years agoFix leak caused by invalid put in hdb_handle_destroy.
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

15 years agoCall all configured exec_dump_fn's when SIGUSR2 is received
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

15 years agoAdd cpgverify program to test directory.
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

15 years agoMinor fixes to the build process on OSX
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

15 years agoFix debug: on option for logging purposes
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

15 years agoadd max limit error checks in logsys
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

15 years agoAdd mechanism to use logsysrec from inside totem stack.
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

15 years agoImprove security of NSS implementation in totem.
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

15 years agoFix evsverify failure.
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

15 years agoFix --enable-nss default in configure.ac
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

15 years agoMake libnss detection work properly.
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

15 years agoFix pkgconfig file inclusion into release and pass distcheck
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

15 years agoadd Chrissie as author of totem NSS implementation.
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

15 years agoRemove const from delivery callback to allow inplace endian changes of
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

15 years agoremove "AIS" from cfg.h header file.
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

15 years agoAllow CPP linkage by adding extern "C" {} to external header files.
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

15 years agoremove config.h from public header file.
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

15 years agoRemove useless APIs from coroipcs.c related to handling of overload
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

15 years agoAdd libnss security support to corosync.
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

15 years agoBump SONAME to 4.0.0
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

15 years agologsys.c: avoid an unnecessary strlen call
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

15 years agoAdd Jan Friesse (me) to the list of Corosync authors
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

15 years agoRemove mempool since it is unused and isn't going to be a feature in
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

15 years agoadd request_shutdown call to coroapi.
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

15 years agoAdd logsys yield counter for the logsys thread.
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

15 years agocorosync.pc.in: Define Cflags
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

15 years agopkgconfig: correct and clean up Makefile.am
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

15 years agoModify property of loc script to be executable.
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

15 years agoremove rmd.h header file.
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

15 years agoInclude file cleanups.
Steven Dake [Thu, 23 Apr 2009 17:03:21 +0000 (17:03 +0000)]
Include file cleanups.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2134 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoCleanup coroipcc.h header file to remove saHandleXXX and friends.
Steven Dake [Thu, 23 Apr 2009 16:19:49 +0000 (16:19 +0000)]
Cleanup coroipcc.h header file to remove saHandleXXX and friends.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2133 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agocoroipcs.h cleanup.
Steven Dake [Thu, 23 Apr 2009 16:13:24 +0000 (16:13 +0000)]
coroipcs.h cleanup.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2132 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoThis patch removes the (now redundant) call to sync_primary_callback_fn
Christine Caulfield [Thu, 23 Apr 2009 15:51:41 +0000 (15:51 +0000)]
This patch removes the (now redundant) call to sync_primary_callback_fn
when quorum changes.

As we established a while ago, quorum is independent of sync and all
this code does is segfault when called!

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2131 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove priority inversion in logsys.
Steven Dake [Thu, 23 Apr 2009 15:24:29 +0000 (15:24 +0000)]
Remove priority inversion in logsys.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2130 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoexec/Makefile.am: require that copied code stays in sync
Jim Meyering [Thu, 23 Apr 2009 14:16:01 +0000 (14:16 +0000)]
exec/Makefile.am: require that copied code stays in sync

* exec/Makefile.am (check_logsys_log_printf_functions): New rule.
(check): Depend on check_logsys_log_printf_functions.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2129 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agologsys.c: indent consistently
Jim Meyering [Thu, 23 Apr 2009 14:15:53 +0000 (14:15 +0000)]
logsys.c: indent consistently

* exec/logsys.c (_logsys_log_printf): Indent with TABs to be
consistent with copied-from function, _logsys_log_vprintf.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2128 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoMake ipc_log_printf function working by adding _logsys_log_vprintf, which
Jan Friesse [Thu, 23 Apr 2009 12:29:26 +0000 (12:29 +0000)]
Make ipc_log_printf function working by adding _logsys_log_vprintf, which
is mostly same as _logsys_log_printf but takes va_list as argument.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2127 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agouse uint64_t for hdb_handle_t type and also specify some formatting
Steven Dake [Thu, 23 Apr 2009 10:03:01 +0000 (10:03 +0000)]
use uint64_t for hdb_handle_t type and also specify some formatting
strings for printing handles out of the handle database.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2126 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove saHandleXXX and friends and use hdb instead.
Steven Dake [Wed, 22 Apr 2009 17:43:54 +0000 (17:43 +0000)]
Remove saHandleXXX and friends and use hdb instead.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2125 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRewrite of CPG. It solves problems with double delete.
Jan Friesse [Wed, 22 Apr 2009 13:39:28 +0000 (13:39 +0000)]
Rewrite of CPG. It solves problems with double delete.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2124 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoStop hardcoding /var
Fabio M. Di Nitto [Wed, 22 Apr 2009 10:39:43 +0000 (10:39 +0000)]
Stop hardcoding /var

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2123 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove MESSAGE_REQ_CPG_GROUPS_GET call and all function using that.
Jan Friesse [Wed, 22 Apr 2009 09:45:47 +0000 (09:45 +0000)]
Remove MESSAGE_REQ_CPG_GROUPS_GET call and all function using that.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2122 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoKill all asserts from logsys and handle proper error return
Fabio M. Di Nitto [Wed, 22 Apr 2009 09:14:23 +0000 (09:14 +0000)]
Kill all asserts from logsys and handle proper error return

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2121 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd missing header from last commit.
Steven Dake [Wed, 22 Apr 2009 09:03:59 +0000 (09:03 +0000)]
Add missing header from last commit.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2120 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoReworking of include file dependencies.
Steven Dake [Wed, 22 Apr 2009 09:01:30 +0000 (09:01 +0000)]
Reworking of include file dependencies.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2119 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoremove empty lines at end-of-file
Jim Meyering [Wed, 22 Apr 2009 08:04:06 +0000 (08:04 +0000)]
remove empty lines at end-of-file

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2118 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoremove all trailing blanks
Jim Meyering [Wed, 22 Apr 2009 08:03:55 +0000 (08:03 +0000)]
remove all trailing blanks

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2117 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoperf: avoid writing 1MB of zero bytes
Jim Meyering [Wed, 22 Apr 2009 07:28:25 +0000 (07:28 +0000)]
perf: avoid writing 1MB of zero bytes

Don't initialize the entire just-allocated buffer to all zeroes.
The very next lines initialize all members except "data".
* exec/totempg.c (assembly_ref): Initialize the first byte of
assembly->data to 0, just in case someone uses it as a string.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2116 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoChange shared memory to use mmap() system calls.
Steven Dake [Wed, 22 Apr 2009 05:41:30 +0000 (05:41 +0000)]
Change shared memory to use mmap() system calls.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2115 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoZero copy feature for IPC transmits. Also integrated into CPG library
Steven Dake [Tue, 21 Apr 2009 23:37:49 +0000 (23:37 +0000)]
Zero copy feature for IPC transmits.  Also integrated into CPG library
service.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2114 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove memory leak from new dispatch circular buffer mapped system.
Steven Dake [Tue, 21 Apr 2009 20:26:12 +0000 (20:26 +0000)]
Remove memory leak from new dispatch circular buffer mapped system.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2113 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agorename function: s/strstr_rs/strchr_rs/ to reflect new semantics
Jim Meyering [Tue, 21 Apr 2009 11:56:55 +0000 (11:56 +0000)]
rename function: s/strstr_rs/strchr_rs/ to reflect new semantics

* exec/coroparse.c (parse_section):
* exec/util.c (strchr_rs, strstr_rs):
* exec/util.h (corosync_exit_error):

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2112 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agorewrite strstr_rs not to use strdup
Jim Meyering [Tue, 21 Apr 2009 11:56:47 +0000 (11:56 +0000)]
rewrite strstr_rs not to use strdup

strstr_rs used strdup and didn't handle failure.  This change removes
the use of strdup as well as the uses of strstr, since all callers
passed a string of length 1 as the second argument.  This also changes
the prototype so that the 2nd parameter is a byte, not a string.

* util.h (strstr_rs): Adjust prototype.
* util.c (strstr_rs): Rewrite/simplify.
* sa-confdb.c (strstr_rs): Remove duplicate definition.
* coroparse.c (parse_section): Update callers.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2111 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix pthread linking
Fabio M. Di Nitto [Tue, 21 Apr 2009 09:25:28 +0000 (09:25 +0000)]
Fix pthread linking

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2110 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix uid and gid determination
Fabio M. Di Nitto [Tue, 21 Apr 2009 07:53:06 +0000 (07:53 +0000)]
Fix uid and gid determination

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2109 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoMove include config.h at the top as it's supposed to be
Fabio M. Di Nitto [Tue, 21 Apr 2009 07:34:05 +0000 (07:34 +0000)]
Move include config.h at the top as it's supposed to be

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2108 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoexce/main.c: handle strdup failure
Jim Meyering [Tue, 21 Apr 2009 07:28:26 +0000 (07:28 +0000)]
exce/main.c: handle strdup failure

* exec/main.c (main): Upon strdup failure, log the error and exit.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2107 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoremove useless if-before-free tests
Jim Meyering [Tue, 21 Apr 2009 07:28:18 +0000 (07:28 +0000)]
remove useless if-before-free tests

* exec/coropoll.c (poll_destroy): Remove useless if.
* exec/main.c (main): Likewise.
* include/corosync/hdb.h (hdb_destroy): Likewise.
* lcr/lcr_ifact.c (scandir): Likewise.
* lib/sa-confdb.c (load_config): Likewise.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2106 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoservices/confdb.c: avoid four warnings
Jim Meyering [Tue, 21 Apr 2009 07:28:09 +0000 (07:28 +0000)]
services/confdb.c: avoid four warnings

* services/confdb.c (m2h): New function.
(message_handler_req_lib_confdb_object_iter): Use m2h rather than a cast.
(message_handler_req_lib_confdb_object_find): Likewise.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2105 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoGuarantee that all logging buffers are flushed before we die
Fabio M. Di Nitto [Tue, 21 Apr 2009 04:40:01 +0000 (04:40 +0000)]
Guarantee that all logging buffers are flushed before we die

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2104 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd logsys_flush logsys API call to signal the logging thread
Fabio M. Di Nitto [Tue, 21 Apr 2009 04:38:49 +0000 (04:38 +0000)]
Add logsys_flush logsys API call to signal the logging thread

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2103 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd logging configuration backward compatibility layer
Fabio M. Di Nitto [Tue, 21 Apr 2009 04:37:28 +0000 (04:37 +0000)]
Add logging configuration backward compatibility layer

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2102 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix output filtering when debug is enabled
Fabio M. Di Nitto [Tue, 21 Apr 2009 04:02:19 +0000 (04:02 +0000)]
Fix output filtering when debug is enabled

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2101 fd59a12c-fef9-0310-b244-a6a79926bd2f