]>
git.proxmox.com Git - mirror_corosync.git/log
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Jim Meyering [Mon, 20 Apr 2009 18:26:22 +0000 (18:26 +0000)]
corosync-cfgtool.c: handle strdup failure gracefully
* tools/corosync-cfgtool.c (xstrdup): New function.
(main): Use it in place of strdup.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2100
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 20 Apr 2009 18:03:10 +0000 (18:03 +0000)]
Use spinlocks in library handle references.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2099
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Jim Meyering [Mon, 20 Apr 2009 15:50:23 +0000 (15:50 +0000)]
schedwrk.c: avoid two int-pointer cast conversion warnings
* exec/schedwrk.c (void2handle, handle2void): New functions.
(schedwrk_do): Use void2handle rather than an unportable cast.
(schedwrk_create): Use handle2void rather than an unportable cast.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2098
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 20 Apr 2009 14:17:09 +0000 (14:17 +0000)]
Fix libconfdb linking
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2097
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 20 Apr 2009 10:43:37 +0000 (10:43 +0000)]
Improve logsys error handling in logsys_format_set
and logsys_config_file_set_unlocked.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2096
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 20 Apr 2009 09:35:39 +0000 (09:35 +0000)]
Rename corosync.conf to corosync.conf.example take 2
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2095
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 20 Apr 2009 09:34:26 +0000 (09:34 +0000)]
Rename corosync.conf to corosync.conf.example
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2094
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 20 Apr 2009 07:08:42 +0000 (07:08 +0000)]
readd early log level check for performance reasons.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2093
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 20 Apr 2009 04:45:46 +0000 (04:45 +0000)]
throw away mode in totempg was operating as a global variable, when it
is possible for different nodes to be in different configurations of
throw away. This patch makes the variable instanced.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2092
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabio M. Di Nitto [Mon, 20 Apr 2009 04:28:33 +0000 (04:28 +0000)]
Add logsys v3
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2091
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sat, 18 Apr 2009 14:42:09 +0000 (14:42 +0000)]
Add missing schedwrk files.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2090
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sat, 18 Apr 2009 14:39:57 +0000 (14:39 +0000)]
add schedwrk_create and schedwrk_destroy coroapi functions.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2089
fd59a12c -fef9-0310-b244-
a6a79926bd2f