]> git.proxmox.com Git - mirror_corosync.git/log
mirror_corosync.git
17 years agoA couple of errors was found when I did unit (component) testing of amf.c
Hans Feldt [Fri, 20 Oct 2006 11:20:59 +0000 (11:20 +0000)]
A couple of errors was found when I did unit (component) testing of amf.c
using CUnit. With this patch, amf.c can handle a full totem send queue.
This is not easily reproducable with function test.

amf.c is also prepared for further component testing with this patch.

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

17 years agoPatch contains:
Lon Hohberger [Fri, 13 Oct 2006 10:18:04 +0000 (10:18 +0000)]
Patch contains:

A mechanism to defer and recall simultaneous
events in the state machines for amf_cluster,
amf_application and amf_sg.

The implication of this defer and recall mechanism is
that it's now possible to to recover from e.g. several
simultaneous SU failures in an ordered serialized manner.

The events that could be deferred/recalled so far is
SG_FAILOVER_NODE_EV,SG_START_EV,SG_FAILOVER_SU_EV,
CLUSTER_SYNC_READY_EV,APPLICATION_START_EV and
APPLICATION_ASSIGN_WORKLOAD_EV.

Files involved:

Index: exec/amfnode.c
Index: exec/amfsg.c
Index: exec/amfutil.c
Index: exec/amfapp.c
Index: exec/amfcomp.c
Index: exec/amfcluster.c
Index: exec/amf.h

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

17 years agoThis simple patch solves a problem we see when testing AMF. If a node leaves
Hans Feldt [Thu, 12 Oct 2006 06:54:14 +0000 (06:54 +0000)]
This simple patch solves a problem we see when testing AMF. If a node leaves
and joins the cluster quickly (within one second is default), the config
change messages will not indicate that the node left and rejoined. The patch
introduces a short delay in main() to make sure the token_timeout expires.

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

17 years agoEnable commit tokens to be processed properly in all circumstances.
Steven Dake [Mon, 9 Oct 2006 07:41:46 +0000 (07:41 +0000)]
Enable commit tokens to be processed properly in all circumstances.

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

17 years agoFix subset set operation to work properly.
Steven Dake [Mon, 9 Oct 2006 07:41:12 +0000 (07:41 +0000)]
Fix subset set operation to work properly.

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

17 years agoRemove some debbugging code from totemsrp impacting performance.
Steven Dake [Mon, 9 Oct 2006 07:40:46 +0000 (07:40 +0000)]
Remove some debbugging code from totemsrp impacting performance.

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

17 years agoThe patch contains:
Lon Hohberger [Wed, 4 Oct 2006 05:24:14 +0000 (05:24 +0000)]
The patch contains:

 The instantiaton of the component is performed with some new steps:

 1. SU invoke Comp to instantiate
 2. Comp multicast a new event
 MESSAGE_REQ_EXEC_AMF_COMPONENT_INSTANTIATE
 3. Comp receive the new  event
 MESSAGE_REQ_EXEC_AMF_COMPONENT_INSTANTIATE
 4. If the Comp is within the SU hosted on the node. The

 component invokes

    the clc_cli instantiate script to start the component

 and start a timer

    to supervise the start and registration of the component.
 5. If the instantiation time elapse before the component has
 registered himself
    Comp is sending a new multicasted event
    MESSAGE_REQ_EXEC_AMF_COMPONENT_INSTANTIATE_TMO.
 6. Comp receive

 MESSAGE_REQ_EXEC_AMF_COMPONENT_INSTANTIATE_TMO event.

 7. The Comp presence state is set to
 SA_AMF_PRESENCE_INSTANTIATION_FAILED
 8. When all Components are in presence state

 SA_AMF_PRESENCE_INSTANTIATED or

    SA_AMF_PRESENCE_INSTANTIATION_FAILED the start or restart will
 continue with
    the assignment of load.

 This implemntation means that the complete instantiation procedure
 never will be endlessly waiting for a register. The

 instantiation will

 either turn out in a component instantiation failure or a success.

 Hardening of the cluster start use case:

 1. A clearer separation of the responsibilities between

 amf_cluster and

    amf_application.

 2. A clearer interface and separation between amf_main (amf.c) and
 amf_cluster.

 3. A clearer interface and separation between amf_cluster

 and amf_node.

 4. A clearer separation of the responsibilities between amf_node and
    amf_application.

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

17 years agoThe configuration attribute 'saAmfSGNumPrefInserviceSUs' was not
Hans Feldt [Fri, 29 Sep 2006 13:27:01 +0000 (13:27 +0000)]
The configuration attribute 'saAmfSGNumPrefInserviceSUs' was not
considered by AMF during initial start.

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

17 years agoTwo configuration attributes for SG objects were not handled
Hans Feldt [Fri, 29 Sep 2006 11:23:00 +0000 (11:23 +0000)]
Two configuration attributes for SG objects were not handled
correctly by the config parser.

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

17 years agoPatches from Mathieu.Marie@sun.com:
Hans Feldt [Thu, 28 Sep 2006 05:53:44 +0000 (05:53 +0000)]
Patches from Mathieu.Marie@sun.com:
2- On Solaris, the SA components executed have no names.
3- When killing the testamf1 component, it makes the aisexec process
crash on both of my nodes.
4- max priority for RR on solaris is 59.

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

17 years agoAn update of README.amf to match current state of the implementation.
Hans Feldt [Mon, 25 Sep 2006 06:55:39 +0000 (06:55 +0000)]
An update of README.amf to match current state of the implementation.
README.amf now also includes a detailed list of what is currently
NOT implemented.

README.amf includes now, as before, a "demo example".

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

17 years ago- Fix for bug: 'default section created when syncing'
Hans Feldt [Mon, 25 Sep 2006 06:48:38 +0000 (06:48 +0000)]
- Fix for bug: 'default section created when syncing'
- Section count synced correctly

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

17 years agoglobal_ckpt_id fix #2
Hans Feldt [Mon, 25 Sep 2006 06:46:29 +0000 (06:46 +0000)]
global_ckpt_id fix #2
ckpt dump function

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

18 years agoCorrection to a problem when a cluster consisting of several nodes starts
Hans Feldt [Wed, 20 Sep 2006 08:27:01 +0000 (08:27 +0000)]
Correction to a problem when a cluster consisting of several nodes starts
initially in an order such that at least two nodes start after at least one
node has been started and its SUs has been instantiated.

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

18 years agoCreated
Hans Feldt [Tue, 12 Sep 2006 11:04:54 +0000 (11:04 +0000)]
Created

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

18 years agoFix for global_ckpt_id not synced
Hans Feldt [Mon, 11 Sep 2006 07:15:53 +0000 (07:15 +0000)]
Fix for global_ckpt_id not synced

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

18 years ago- ckpt_id was not synced.
Hans Feldt [Wed, 6 Sep 2006 05:40:06 +0000 (05:40 +0000)]
- ckpt_id was not synced.
- debug printout of list reduced

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

18 years ago1. Improvement to manage more than one SG within an Application and to
Hans Feldt [Tue, 5 Sep 2006 07:54:00 +0000 (07:54 +0000)]
1.    Improvement to manage more than one SG within an Application  and to
asymmetrically distribute the SG:s among the Nodes.
2.    strcmp bug fixes  several *_find functions.
3.    Minor bug fixes.

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

18 years ago- "No need for DNS or /etc/hosts"
Hans Feldt [Tue, 5 Sep 2006 07:31:28 +0000 (07:31 +0000)]
- "No need for DNS or /etc/hosts"

The call to gethostbyaddr() has been removed. This has been replaced by a
protocol where each node multicasts its hostname (obtained with gethostname()).

- "Logical AMF nodes"

The AMF node name is no longer a hostname. The saAmfNodeClmNode
configuration attribute of the AMF node is now the hostname. This config
attribute is now mandatory. The change to amf.conf file shows required changes.

- Some other AMF sync bug fixes

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

18 years agoAdded file and line of caller, useful for troubleshooting.
Hans Feldt [Fri, 1 Sep 2006 10:16:25 +0000 (10:16 +0000)]
Added file and line of caller, useful for troubleshooting.

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

18 years ago- enable the global debug flag again, individual 'logger' directives might
Hans Feldt [Fri, 1 Sep 2006 10:12:25 +0000 (10:12 +0000)]
- enable the global debug flag again, individual 'logger' directives might
  be used to disable a certain logger source.
- when DEBUG compiled it does not use the new printer threads (printouts are not buffered)
- man page update
- openais.conf update

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

18 years agoAllow AMF to handle health check responses while syncing.
Hans Feldt [Mon, 28 Aug 2006 13:11:23 +0000 (13:11 +0000)]
Allow AMF to handle health check responses while syncing.

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

18 years ago1. Improvement of the use case 'Amf node leave spontaneously'
Hans Feldt [Mon, 28 Aug 2006 12:44:15 +0000 (12:44 +0000)]
1.    Improvement of the use case 'Amf node leave spontaneously'
2.    Improvement of the use case 'Amf node join'
3.    Improvement to manage more than one SG within an Application.
4.    Improvement to manage an arbitrary number of Csi-assignments associated
       to the Csi

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

18 years agoadd missing clean for libcfg
Fabien Thomas [Mon, 28 Aug 2006 12:19:59 +0000 (12:19 +0000)]
add missing clean for libcfg

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

18 years agocorrect fd leak on error case
Fabien Thomas [Thu, 24 Aug 2006 15:54:10 +0000 (15:54 +0000)]
correct fd leak on error case

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

18 years agocorrect broken POLLHUP, POLLERR under BSD
Fabien Thomas [Thu, 24 Aug 2006 15:48:25 +0000 (15:48 +0000)]
correct broken POLLHUP, POLLERR under BSD

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

18 years agoAMF sync improvements: change assert to return in mcast rec.
Hans Feldt [Thu, 24 Aug 2006 09:30:27 +0000 (09:30 +0000)]
AMF sync improvements: change assert to return in mcast rec.

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

18 years agotestamf1.c improvements
Hans Feldt [Thu, 24 Aug 2006 09:23:40 +0000 (09:23 +0000)]
testamf1.c improvements

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

18 years agoreturn SA_AIS_ERR_INVALID_PARAM when vector ptr is NULL or len equal to 0
Fabien Thomas [Wed, 23 Aug 2006 09:33:08 +0000 (09:33 +0000)]
return SA_AIS_ERR_INVALID_PARAM when vector ptr is NULL or len equal to 0

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

18 years agodoc was not updated when switching command line options to lowercase
Fabien Thomas [Mon, 21 Aug 2006 09:49:42 +0000 (09:49 +0000)]
doc was not updated when switching command line options to lowercase

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

18 years agodo not include alloca.h under BSD; alloca is in stdlib.h
Fabien Thomas [Fri, 18 Aug 2006 07:38:21 +0000 (07:38 +0000)]
do not include alloca.h under BSD; alloca is in stdlib.h

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

18 years agoAMF sync #2
Hans Feldt [Thu, 17 Aug 2006 13:25:01 +0000 (13:25 +0000)]
AMF sync #2

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

18 years agoadd command line support with: launch as a foreground application, do not set priority
Fabien Thomas [Thu, 17 Aug 2006 07:30:55 +0000 (07:30 +0000)]
add command line support with: launch as a foreground application, do not set priority

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

18 years agoAdd scalability to 128 nodes by adding new parameter to protocol which is
Steven Dake [Wed, 16 Aug 2006 04:25:47 +0000 (04:25 +0000)]
Add scalability to 128 nodes by adding new parameter to protocol which is
a random timeout bounded by a configuration parameter when sending join
messages.

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

18 years agoReturn ERR_TIMEOUT if timeout value is zero in saEvtChannelOpen
Steven Dake [Wed, 16 Aug 2006 01:21:52 +0000 (01:21 +0000)]
Return ERR_TIMEOUT if timeout value is zero in saEvtChannelOpen

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

18 years agoFix make install to install clm shared object files properly.
Steven Dake [Wed, 16 Aug 2006 00:08:52 +0000 (00:08 +0000)]
Fix make install to install clm shared object files properly.

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

18 years agoImprove recovery code to produce correct printf notice outputs.
Steven Dake [Wed, 16 Aug 2006 00:05:02 +0000 (00:05 +0000)]
Improve recovery code to produce correct printf notice outputs.

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

18 years agoFix debug output for testckpt service.
Steven Dake [Wed, 16 Aug 2006 00:04:27 +0000 (00:04 +0000)]
Fix debug output for testckpt service.

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

18 years ago- New sync state machine, implemented and described in amf.c
Hans Feldt [Fri, 11 Aug 2006 12:28:10 +0000 (12:28 +0000)]
- New sync state machine, implemented and described in amf.c
- One AMF node reads the AMF config file (IMM style)
- One AMF node syncs others AMF nodes
- One AMF object is serialized and sent as one message
- Serialization/deserialization of most objects is trivial (memcpy)
except for component and csi-attributes objects which have variable size
arrays/strings.
- Depth first AMF object tree traversal preserves relations when syncing
- Ordered lists of SUs and SIs
- Constructors/destructor per class
- Serializers/deserializers per class
- Config-change changes sync state
- Sync callbacks executes the sync
- "Use case" tracing for sync using the SYNCTRACE macro (trace6)
- Sync master is initially the winner of a timeout race and if the
master leaves the cluster, the node with the lowest node ID becomes new master.
- amf_malloc implements an AMF central malloc routine with error handling.

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

18 years agofixe a bug in cpg where get_group() will return the wrong group
Patrick Caulfield [Fri, 11 Aug 2006 07:37:15 +0000 (07:37 +0000)]
fixe a bug in cpg where get_group() will return the wrong group
info structure if there is a hash collision.

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

18 years agoFix checkpoint header file error
Steven Dake [Mon, 7 Aug 2006 22:49:36 +0000 (22:49 +0000)]
Fix checkpoint header file error

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

18 years agoCommitted a bunch of changes for testing scalability - reverting patch
Steven Dake [Sat, 5 Aug 2006 08:51:06 +0000 (08:51 +0000)]
Committed a bunch of changes for testing scalability - reverting patch

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

18 years agonon-blocking syslog and file logging support
Steven Dake [Sat, 5 Aug 2006 02:23:40 +0000 (02:23 +0000)]
non-blocking syslog and file logging support

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

18 years agoSolaris port for openais
Steven Dake [Sat, 5 Aug 2006 02:22:12 +0000 (02:22 +0000)]
Solaris port for openais

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

18 years agoMake sure sync_activate is called only once per service handler.
Steven Dake [Thu, 3 Aug 2006 05:32:11 +0000 (05:32 +0000)]
Make sure sync_activate is called only once per service handler.

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

18 years agoRemoves the hardcoded limit of environment variables and argvs from components, now...
Hans Feldt [Wed, 2 Aug 2006 08:24:58 +0000 (08:24 +0000)]
Removes the hardcoded limit of environment variables and argvs from components, now unlimited.

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

18 years ago- Handling of HUP and other poll errors improved in saAmfDispatch.
Hans Feldt [Tue, 1 Aug 2006 05:56:30 +0000 (05:56 +0000)]
- Handling of HUP and other poll errors improved in saAmfDispatch.
- Termination of testamf1 when saAmfDispatch returns an error.

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

18 years agoPatch so realloc reverts to old buffer if reallocation fails.
Steven Dake [Fri, 28 Jul 2006 23:34:28 +0000 (23:34 +0000)]
Patch so realloc reverts to old buffer if reallocation fails.

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

18 years agoFix lock marshalling.
Steven Dake [Fri, 28 Jul 2006 23:33:57 +0000 (23:33 +0000)]
Fix lock marshalling.

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

18 years agoEndian conversion for evs service.
Steven Dake [Wed, 26 Jul 2006 07:42:50 +0000 (07:42 +0000)]
Endian conversion for evs service.

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

18 years agoEndian cleanup for ykd.
Steven Dake [Wed, 26 Jul 2006 07:41:44 +0000 (07:41 +0000)]
Endian cleanup for ykd.

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

18 years agoCleanup log_printf to use gnu attributes to do automatic type checking.
Steven Dake [Wed, 26 Jul 2006 07:39:53 +0000 (07:39 +0000)]
Cleanup log_printf to use gnu attributes to do automatic type checking.

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

18 years agoEndian conversion for the lock service.
Steven Dake [Wed, 26 Jul 2006 07:32:43 +0000 (07:32 +0000)]
Endian conversion for the lock service.

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

18 years agoUse memb_ring_id_copy for alignment purposes on 64 aligned arches and keep
Steven Dake [Wed, 26 Jul 2006 07:21:08 +0000 (07:21 +0000)]
Use memb_ring_id_copy for alignment purposes on 64 aligned arches and keep
the port id in host byte order until it is used in the totem protocol stack.

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

18 years agoAdd endian cleanup fixes.
Steven Dake [Wed, 26 Jul 2006 07:11:26 +0000 (07:11 +0000)]
Add endian cleanup fixes.

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

18 years agoClean up endian swabbing for cpg service.
Steven Dake [Wed, 26 Jul 2006 07:07:22 +0000 (07:07 +0000)]
Clean up endian swabbing for cpg service.

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

18 years agoFix where setsockopt is bound to in totemnet.
Steven Dake [Wed, 26 Jul 2006 06:58:28 +0000 (06:58 +0000)]
Fix where setsockopt is bound to in totemnet.

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

18 years agoCleanup comparisons in lcr_ifact and use strtok_r instead of junky parser.
Steven Dake [Wed, 26 Jul 2006 06:57:52 +0000 (06:57 +0000)]
Cleanup comparisons in lcr_ifact and use strtok_r instead of junky parser.

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

18 years agoAdd errno.h include since it was removed from swab.h.
Steven Dake [Wed, 26 Jul 2006 06:55:10 +0000 (06:55 +0000)]
Add errno.h include since it was removed from swab.h.

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

18 years agoRemove bunch of unused includes from swab.h.
Steven Dake [Wed, 26 Jul 2006 06:53:50 +0000 (06:53 +0000)]
Remove bunch of unused includes from swab.h.

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

18 years agoFix processor count in evs interface.
Steven Dake [Wed, 26 Jul 2006 06:51:17 +0000 (06:51 +0000)]
Fix processor count in evs interface.

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

18 years agoEndian cleanup for the clm service.
Steven Dake [Wed, 26 Jul 2006 06:50:22 +0000 (06:50 +0000)]
Endian cleanup for the clm service.

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

18 years agoAllow build type of COVERAGE for code coverage analysis
Steven Dake [Mon, 24 Jul 2006 01:34:17 +0000 (01:34 +0000)]
Allow build type of COVERAGE for code coverage analysis

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

18 years agoEnsure make install works with recent libcfg changes.
Steven Dake [Fri, 21 Jul 2006 20:30:29 +0000 (20:30 +0000)]
Ensure make install works with recent libcfg changes.

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

18 years agoAdd a 'family' parameter to totemip_parse so it can be told to look for
Patrick Caulfield [Fri, 21 Jul 2006 12:22:05 +0000 (12:22 +0000)]
Add a 'family' parameter to totemip_parse so it can be told to look for
either IPv4 or IPv6 addresses, or both.

As we get the (unambiguous) multicast address first, we can make sure we always
look for the right type of node address afterwards.

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

18 years agoIncrease IPC thread stack size from 100k to 200k to accomodate larger data
Steven Dake [Fri, 21 Jul 2006 09:01:12 +0000 (09:01 +0000)]
Increase IPC thread stack size from 100k to 200k to accomodate larger data
structures in ipc message handlers (for the CLM service).

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

18 years agoRemove TODO for swabbing conn data structure
Steven Dake [Fri, 21 Jul 2006 03:30:40 +0000 (03:30 +0000)]
Remove TODO for swabbing conn data structure

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

18 years agoValidate IO Vector elements in a saCkptCheckpointWrite operation
Steven Dake [Fri, 21 Jul 2006 03:26:22 +0000 (03:26 +0000)]
Validate IO Vector elements in a saCkptCheckpointWrite operation

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

18 years agoRemove TODO comment that has long been fixed in the code.
Steven Dake [Fri, 21 Jul 2006 03:18:03 +0000 (03:18 +0000)]
Remove TODO comment that has long been fixed in the code.

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

18 years agoCorrect malloc of checkpoint iteration size from 500 bytes to max section id
Steven Dake [Fri, 21 Jul 2006 03:07:14 +0000 (03:07 +0000)]
Correct malloc of checkpoint iteration size from 500 bytes to max section id
size bytes for the created checkpoint

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

18 years agoReduce memory usage in large configurations by dynamically allocating
Steven Dake [Fri, 21 Jul 2006 02:39:21 +0000 (02:39 +0000)]
Reduce memory usage in large configurations by dynamically allocating
fragmentation assembly buffer.

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

18 years agoRemove marshall TODO items as they are not needed
Steven Dake [Fri, 21 Jul 2006 02:33:13 +0000 (02:33 +0000)]
Remove marshall TODO items as they are not needed

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

18 years agoRemove unnecessary exit from testevs
Steven Dake [Thu, 20 Jul 2006 22:39:22 +0000 (22:39 +0000)]
Remove unnecessary exit from testevs

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

18 years agoRemove debug printf in totemsrp
Steven Dake [Thu, 20 Jul 2006 10:01:57 +0000 (10:01 +0000)]
Remove debug printf in totemsrp

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

18 years agoDon't segfault if unauthorized user connects
Steven Dake [Thu, 20 Jul 2006 04:51:32 +0000 (04:51 +0000)]
Don't segfault if unauthorized user connects

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

18 years agoMake checkpoint service work according to specifications with regards to the
Steven Dake [Thu, 20 Jul 2006 04:50:15 +0000 (04:50 +0000)]
Make checkpoint service work according to specifications with regards to the
unlink operation.

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

18 years agoRemove compile warning from cfgtool commit.
Steven Dake [Wed, 19 Jul 2006 19:33:20 +0000 (19:33 +0000)]
Remove compile warning from cfgtool commit.

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

18 years agoAdd support for reenabling a failed redundant ring and printing ring status
Steven Dake [Wed, 19 Jul 2006 19:31:01 +0000 (19:31 +0000)]
Add support for reenabling a failed redundant ring and printing ring status
through the test/opeanis-cfgtool application.

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

18 years agoSend the new joinlists using the sync service, so it happens atomically.
Patrick Caulfield [Wed, 19 Jul 2006 15:32:25 +0000 (15:32 +0000)]
Send the new joinlists using the sync service, so it happens atomically.
This should fix some odd sequencing bugs.

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

18 years agoprinting ipv6 addresses often needs more than a 32 byte buffer. THis could
Patrick Caulfield [Tue, 18 Jul 2006 06:33:39 +0000 (06:33 +0000)]
printing ipv6 addresses often needs more than a 32 byte buffer. THis could
causes a crash with sone ipv6 installations.

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

18 years agoSupport for ia64 arch builds.
Steven Dake [Mon, 17 Jul 2006 22:36:13 +0000 (22:36 +0000)]
Support for ia64 arch builds.

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

18 years agoFix synchronization not working properly.
Steven Dake [Mon, 17 Jul 2006 21:52:55 +0000 (21:52 +0000)]
Fix synchronization not working properly.

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

18 years agoEvent marshalling patch for 32/64/endian support.
Steven Dake [Mon, 17 Jul 2006 20:16:14 +0000 (20:16 +0000)]
Event marshalling patch for 32/64/endian support.

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

18 years agoIf version field is NULL as passed to saClmInitialize, return INVALID_PARAM
Steven Dake [Mon, 17 Jul 2006 06:18:19 +0000 (06:18 +0000)]
If version field is NULL as passed to saClmInitialize, return INVALID_PARAM

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

18 years agoIf TRACK_CURRENT is specified in CLM service and notify buffer is null,
Steven Dake [Mon, 17 Jul 2006 06:17:47 +0000 (06:17 +0000)]
If TRACK_CURRENT is specified in CLM service and notify buffer is null,
return tracking data in callback as per specification.

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

18 years agoRemove debug printf in track stop operation
Steven Dake [Mon, 17 Jul 2006 06:15:47 +0000 (06:15 +0000)]
Remove debug printf in track stop operation

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

18 years agoCheck for invalid handles first in API calls.
Steven Dake [Mon, 17 Jul 2006 06:14:33 +0000 (06:14 +0000)]
Check for invalid handles first in API calls.

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

18 years agoIf the max section size is less then the read size, return INVALID_PARAM.
Steven Dake [Mon, 17 Jul 2006 06:12:11 +0000 (06:12 +0000)]
If the max section size is less then the read size, return INVALID_PARAM.

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

18 years agoReturn INVALID_PARAM when section read is larger then checkpoint section
Steven Dake [Mon, 17 Jul 2006 02:20:37 +0000 (02:20 +0000)]
Return INVALID_PARAM when section read is larger then checkpoint section

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

18 years agoCheckpointRead wasn't checking the active replica was set.
Steven Dake [Sun, 16 Jul 2006 21:58:35 +0000 (21:58 +0000)]
CheckpointRead wasn't checking the active replica was set.

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

18 years agoThe creation attributes set bit wasn't set from the library to executive
Steven Dake [Sun, 16 Jul 2006 21:50:39 +0000 (21:50 +0000)]
The creation attributes set bit wasn't set from the library to executive
message handlers causing significant problems with open was called from a app.

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

18 years agoThe open flags are used before they are verified to be valid.
Steven Dake [Sun, 16 Jul 2006 21:49:36 +0000 (21:49 +0000)]
The open flags are used before they are verified to be valid.

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

18 years agoProper barrier operation as requested.
Steven Dake [Fri, 14 Jul 2006 21:09:57 +0000 (21:09 +0000)]
Proper barrier operation as requested.

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

18 years agoAdd support for s390 and s390x architectures.
Steven Dake [Thu, 13 Jul 2006 22:02:47 +0000 (22:02 +0000)]
Add support for s390 and s390x architectures.

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

18 years agoFix library renames to 2.0.0 as needed by distros.
Steven Dake [Thu, 13 Jul 2006 21:57:35 +0000 (21:57 +0000)]
Fix library renames to 2.0.0 as needed by distros.

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

18 years agoUpdate to checkpoint service to use new APIs as rest of services do.
Steven Dake [Tue, 11 Jul 2006 23:41:56 +0000 (23:41 +0000)]
Update to checkpoint service to use new APIs as rest of services do.

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

18 years agoFix broken timers when release type set to RELEASE
Steven Dake [Mon, 10 Jul 2006 23:51:43 +0000 (23:51 +0000)]
Fix broken timers when release type set to RELEASE

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

18 years agoRemove dead definition of struct queue
Steven Dake [Mon, 10 Jul 2006 22:22:21 +0000 (22:22 +0000)]
Remove dead definition of struct queue

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

18 years agoMissing commit from previous rename of saServiceConnectTwo
Steven Dake [Mon, 10 Jul 2006 22:19:46 +0000 (22:19 +0000)]
Missing commit from previous rename of saServiceConnectTwo

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

18 years agoRename saConnectServiceTwo to saConnectService
Steven Dake [Mon, 10 Jul 2006 22:18:32 +0000 (22:18 +0000)]
Rename saConnectServiceTwo to saConnectService

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