Jérôme Flesch
483fe491f9
BSD support: Fix EOF handling in coroipcs.c:req_setup_recv() and coroipcs:coroipcs_handler_dispatch()
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2345 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-02 07:47:04 +00:00
Steven Dake
176d80eafe
Set version field in totem header in case it isn't set by default.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2340 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 20:29:55 +00:00
Steven Dake
c12253097f
Send ERR_SECURITY when invalid security context is provided via ipc clients.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2338 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 20:04:20 +00:00
Steven Dake
7954f19ac3
Fix build on bsd systems.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2336 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 19:55:18 +00:00
Steven Dake
c5bccf1a7a
Align syncv2 on 8 byte boundaries.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2335 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 19:48:14 +00:00
Steven Dake
9a2b66df63
Make compatibility mode none work properly.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2334 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 19:37:59 +00:00
Jim Meyering
4f1aabe431
remove unnecessary #include
...
* exec/evil.c: Don't include <signal.h>.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2323 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-30 09:27:27 +00:00
Jim Meyering
6aad39be63
remove trailing blanks
...
* corosync.spec.in:
* exec/evil.c:
* exec/main.c:
* exec/mainconfig.c:
* exec/syncv2.c:
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2322 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-30 09:27:20 +00:00
Steven Dake
15d2c48963
Export poll handle via coroapi.h.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2318 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-29 23:24:24 +00:00
Steven Dake
2b31a4d94b
Static-ize some main.c variables.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2316 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 06:03:06 +00:00
Steven Dake
fc2de3db2a
Simplify notifications from totem at the notice level.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2315 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 05:26:25 +00:00
Steven Dake
56dbf70bb1
Remove hard coded sync values and use defines from coroapi.h.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2314 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 05:21:14 +00:00
Steven Dake
23aea08ae4
Slay the debug messages coming out at notice level in totem.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2313 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 05:12:27 +00:00
Steven Dake
47c6bc3aaf
Remove totemsrp warning.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2312 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 04:57:31 +00:00
Steven Dake
18a19bac27
Allow syncv2 to determine membership list when run in compatibility mode.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2311 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 04:51:38 +00:00
Steven Dake
1cdd0f5fab
Follow synchronization model of event service so corosync without openais
...
service engines can communicate with the openais whitetank event service
in compatibility mode.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2310 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 04:50:18 +00:00
Steven Dake
654810365b
Send fake barriers for the event service when operating in compatibility mode
...
whitetank.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2309 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 00:16:54 +00:00
Steven Dake
bbd880ec47
Remove some debug printfs that snuck in.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2306 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-27 02:06:20 +00:00
Steven Dake
e1b054ae0a
Change sync_init api call to pass information relevant for making
...
synchronization decisions.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2305 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-27 01:59:59 +00:00
Steven Dake
e448603f2f
Add ability to detect process pause and not implode the membership algorithm
...
when this occurs.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2304 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-26 21:39:44 +00:00
Steven Dake
621511d336
Add syncv2.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2302 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-26 21:15:19 +00:00
Steven Dake
547342d77d
Fix build error in evil.c
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2300 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-26 01:20:06 +00:00
Steven Dake
0ca0773904
Fix no boottime support warning.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2299 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-26 00:53:43 +00:00
Steven Dake
f540be9060
Add compatability option in config file. Defaults to whitetank.
...
Add sync_mode to coroapi to indicate to corosync the service engine's
desired compatibility mode.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2298 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-26 00:25:52 +00:00
Steven Dake
2c3836d8fa
sync-v1 onwire compat layer for raw corosync to communicate with whitetank.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2296 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-25 22:07:26 +00:00
Steven Dake
54fefe152d
Remove totempg debug message.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2289 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-24 05:21:13 +00:00
Steven Dake
5780b2b660
Add assembly to free list when it is removed from a configuration change as
...
indicated by being in the left list.
This has side effect of clearing the assembly buffer the next time it is
referenced from the free list. This fixes a defect that stops forward
processing of the message streams because sync fails to finish when receiving
a sync message from a restarted processor because it throws away the message.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2288 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-24 01:01:57 +00:00
Steven Dake
8c677d1103
Tidy's up startup printfs.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2286 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-23 17:09:24 +00:00
Steven Dake
defbffd3a6
Change startup notice to Corosync Cluster Engine.
...
Change 2008 to 2009 in copyright.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2285 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-23 05:53:05 +00:00
Steven Dake
808cd8c410
Remove "AIS" string from exit notice.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2284 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-23 05:50:04 +00:00
Steven Dake
cd564ca15a
Remove warning by casting properly in totemnet.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2283 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-22 18:50:29 +00:00
Steven Dake
76bc62a5d9
Rename request_shutdown to shutdown_request in coroapi.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2282 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-22 18:29:43 +00:00
Steven Dake
71d2a32512
Add dump_state to coroapi.h. Need to remove logging output from signal
...
handlers.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2281 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-22 18:18:15 +00:00
Steven Dake
19e1f60dd3
Sanitize -p option to not set scheduling parameters in all software.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2280 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-22 05:32:41 +00:00
Jim Meyering
c424b53308
totemsrp: remove unnecessary cast to avoid "make syntax-check" failure
...
* exec/totemsrp.c (message_handler_memb_join): Remove unnecessary
cast of alloca return value.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2279 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-21 18:27:02 +00:00
Steven Dake
04cf210d9d
Use HAVE_ALLOCA_H define before including alloca.h
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2278 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-21 16:46:24 +00:00
Steven Dake
0cf6c6c7db
Add tests for posix scheduling apis to configure.ac and use them to determine
...
if we should set scheduling priorities or not.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2277 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-21 16:33:25 +00:00
Steven Dake
cbb6aaf78b
Work around dlopen'ed objects not executing constructors on solaris platform.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2276 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-21 05:02:09 +00:00
Steven Dake
66eff93187
Remove shadow warnings.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2271 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-20 17:33:38 +00:00
Steven Dake
b8e3951ca1
Add (void *) casts for iovector assignments to remove compile warnings.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2270 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-19 20:43:12 +00:00
Steven Dake
74c0a68ee1
Fix unused variable on linux because of portage work.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2268 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-19 15:53:13 +00:00
Steven Dake
589f889fbe
Patch from Wojtek to fix Solaris segfault with compiler optimization.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2267 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-19 15:42:15 +00:00
Jim Meyering
74a2fa1194
maint: remove trailing blanks
...
By running this command from a git-cloned directory:
git grep -z -l -E '[[:blank:]]+$' | xargs -0 perl -pi -e 's/[ \t]+$//'
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2266 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-19 11:34:50 +00:00
Fabio M. Di Nitto
2135d91c27
Fix handling of sysconfdir
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2265 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-19 07:02:55 +00:00
Steven Dake
2d7937de26
Warn user of missing dirs and exit gracefully.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2262 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-19 01:53:24 +00:00
Steven Dake
bc87f196f7
Remove requirement of having uid and gid of "ais" on the system and allow
...
nonroot users to access ipc if their uid/gid is in the /etc/corosync/uidgid.d
directory.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2261 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-19 00:03:56 +00:00
Steven Dake
4620ca4e0b
Ensure Linux, BSD, Solaris, Darwin function with security authentication in
...
IPC system.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2259 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-18 21:32:45 +00:00
Fabio M. Di Nitto
67416f310c
Fix rec_ident encoding for IPC
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2258 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-18 19:52:37 +00:00
Fabio M. Di Nitto
951a416532
flight recorder: enable temporary 0 buffer size protection
...
The flight recoder doesn't handle a 0 byte allocation properly
and it would fail miserably by allocating a single PAGE_SIZE
to handle the logging. That means an enormous performance hit
because of the constant wrapping around the buffer.
If any requested buffer is < 64000 bytes, then force to at least
64000.
In future we will be able to handle small buffers properly, but
for now enable a simple workaround to protect us and the user.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2256 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-18 18:14:00 +00:00
Fabio M. Di Nitto
9a94d633cf
flight recorder: switch from int to bytes for requested allocation
...
The flight recoder buffer size as specified in LOGSYS_DECLARE_SYSTEM
or _logsys_rec_init was expressed in number of ints. A developer asking
to allocate 512K would get a 2M allocation on a machine with sizeof(int) = 4.
This is confusing and the patch addresses it:
- rename rec_size to fltsize for external API (no type change),
because rec_size is used many times internally for other reasons
and it can be confusing.
- rename size to fltsize in _logsys_rec_init.
- document what we allocate and why.
- swap comments around to match the code.
- introduce a simple macro to perform rounding (stolen from linux-2.6.git).
- start shaping fdata header to better handle dynamic values:
* write the flt_data_size as first unsigned int the header.
* change corosync-fplay to read the value and alloc the right amount
of memory instead of hardcoding it again.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2255 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-18 17:40:41 +00:00