Commit Graph

242 Commits

Author SHA1 Message Date
Steven Dake
246687d689 Get rid of magic number 1500 and replace with PACKET_SIZE_MAX.
Also fix a glaring memory overwrite bug in gmi_init which would
init 256k of memory instead of PACKET_SIZE_MAX memory.

(Logical change 1.66)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@242 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-08 03:25:56 +00:00
Steven Dake
f4560a1424 gmi.c:
Get rid of magic number 1500 and replace with PACKET_SIZE_MAX.
  Also fix a glaring memory overwrite bug in gmi_init which would
  init 256k of memory instead of PACKET_SIZE_MAX memory.

BKrev: 413e7bc48wgkqG1E4wSbG9KQkBJMkg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@241 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-08 03:25:56 +00:00
Steven Dake
f8f275973d EVS library makes compiler warning on some compilers. Found and fixed by
Sakai Miyotaka.

(Logical change 1.65)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@240 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Mark Haverkamp
1b7f4fb4a4 Merge
2004/09/04 16:52:55-07:00 broked.org!sdake
Makefile missing clean target for evs bench.  Found and fixed by Sakai Miyotaka.

(Logical change 1.65)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@239 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Steven Dake
e9fc92be20 (Logical change 1.65)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@238 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Mark Haverkamp
1aeec797c7 Merge
2004/09/06 13:30:28-07:00 broked.org!sdake
Added man pages and html generation for the EVS interface.

2004/09/04 16:54:20-07:00 broked.org!sdake
One serious bug in AMF and a few minor nits fixed from patch
from Sakai Miyotaka.
Makefile:
  Makefile missing clean target for evs bench.  Found and fixed by Sakai Miyotaka.
evs.c:
  EVS library makes compiler warning on some compilers.  Found and fixed by
  Sakai Miyotaka.
amf.c:
  State change from standby-active to outofservice could
  result in invalid number of active units.  Found and fixed by
  Sakai Miyotaka.

BKrev: 413dd134zK97xpVttMuRVm6GdcbQlg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@237 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Steven Dake
cc9f12bbd0 State change from standby-active to outofservice could
result in invalid number of active units.  Found and fixed by
Sakai Miyotaka.

(Logical change 1.65)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@236 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Steven Dake
4aa0f75c94 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@235 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:11 +00:00
Mark Haverkamp
c38ad9061f Clean up some comments code. (comments, old macro).
(Logical change 1.64)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@234 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:14:59 +00:00
Mark Haverkamp
352a5b4de4 Add return value to main.
(Logical change 1.64)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@233 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:14:59 +00:00
Mark Haverkamp
2d04633022 Some code cleanup.
BKrev: 413dd073MFU2gjJ72eQd8SOvDfpBwQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@232 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:14:59 +00:00
Mark Haverkamp
7f324361a7 Development, updates, and bug fixes to event service lib.
(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@231 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
e0a5ab3fed Added special SA_CLM_LOCAL_NODE_ID case to receive your own
cluster node data.

(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@230 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
6b342b1a62 (Logical change 1.63)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@229 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
8a0b2d0693 Added event testing programs:
evtbench, subscription, publish

(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@228 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
4c734cb44f Add in list_add_tail and list_empty functions
(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@227 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
502ee57750 Check to make sure that sequence ID passed into sq_item_inuse is
valid.

(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@226 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
30315672ef Event Service Implementation and fixes.
BKrev: 41375569R3AaZBcK1LtaD9gt36SuLQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@225 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
fe5e2f505a Add event service message types.
(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@224 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
acba87e179 Completed most of the event service functionality.
(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@223 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
ee26e7cd90 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@222 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:24 +00:00
Steven Dake
87e120a1f8 Mark a bug for later resolution
(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@221 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
f6b2a745a3 Added the EVS service and changed the library queue
to 256 entries.

(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@220 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
d5fa76ceb9 Major rewrite of saRecvQueue. Fixed is:
activate poll messages are not sent over and over
The message header is read into the return buffer
if the message doesn't match, a new message is allocated
This allows the message buffer for saRecvQueue to be
small, but allows receiving very large messages.

(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@219 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
942efa4085 Add the evs library
(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@218 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
3ce7b69581 Added the evs target.
(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@217 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
8dac3d1f7c This changeset includes major fixes to the IPC from the executive
to the library.  Also included is an entirely new API called the
EVS api (Extended Virtual Synchrony).  This API provides EVS semantics
for those developers that require this model of programming.  The
API is defined in include/evs.h and is very simple.

The API provides:
group semantics with 32 byte group keys.
delivery callback
configuration change callback
join one or more groups
leave one or more groups
multicast a message to the instance's joined groups
multicast a message to any other group

Makefile:
  Add the testevs and evsbench targets.
evs.c, testevs.c, evsbench.c, evs.h:
  new file
Makefile:
  Add the evs library
util.c:
  Major rewrite of saRecvQueue.  Fixed is:
  activate poll messages are not sent over and over
  The message header is read into the return buffer
  if the message doesn't match, a new message is allocated
  This allows the message buffer for saRecvQueue to be
  small, but allows receiving very large messages.
amf.c:
  Mark a bug for later resolution
ais_msg.h:
  Add the evs messages and descriptors.
Makefile:
  Added the evs target.
main.h:
  Added the EVS service and changed the library queue
  to 256 entries.
main.c:
  major rewrite of the IPC code for sending messages
  to the library.  What was there previously was very
  broken.
gmi.c:
  Fix bug where transition from multiple members to
  single members would cause messages not to be sent.
  Also fixed an assertion in transition from multiple
  processors to one processor.

BKrev: 41343518pVUD6aQu4urTw6ClPiOl3w


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@216 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
d3c3c3172a Add the testevs and evsbench targets.
(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@215 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
50a4099c23 major rewrite of the IPC code for sending messages
to the library.  What was there previously was very
broken.

(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@214 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
e499b97318 Add the evs messages and descriptors.
(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@213 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
099ebf3273 (Logical change 1.62)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@212 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
07dd45a275 Fix bug where transition from multiple members to
single members would cause messages not to be sent.
Also fixed an assertion in transition from multiple
processors to one processor.

(Logical change 1.62)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@211 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
b46d9a2ddf Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@210 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:43 +00:00
Steven Dake
343544b5d3 gmi.c:
Flush all multicast messages by delivering them before
  processing the token.  This ensures that the mcast fd
  doesn't buffer too many old messages and avoids an assert.

BKrev: 412fd3cesE7M-pXl9OZs1X2CyK7Y4A


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@209 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-28 00:37:34 +00:00
Steven Dake
287a5c5359 Flush all multicast messages by delivering them before
processing the token.  This ensures that the mcast fd
doesn't buffer too many old messages and avoids an assert.

(Logical change 1.61)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@208 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-28 00:37:34 +00:00
Steven Dake
aeb30a0848 Add initial support for multipathing to group messaging.
(Logical change 1.60)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@207 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
b09ed9faf0 Change gmi interface to support multipathing.
(Logical change 1.60)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@206 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
32005b93cd Change network configuration parser interface to support
multipathing.

(Logical change 1.60)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@205 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
9a7835bc15 parse.h:
Change network configuration parser interface to support
  multipathing.
gmi.h, main.c:
  Change gmi interface to support multipathing.
parse.c:
  Change network configuration parser to read multiple interfaces.
gmi.c:
  Add initial support for multipathing to group messaging.

BKrev: 412a981dC8TjKSqUYOtAx6jKoO-UlA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@204 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
d4fef2d5b2 Change network configuration parser to read multiple interfaces.
(Logical change 1.60)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@203 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Mark Haverkamp
ecdfa6f923 Need to check the size of the response header here.
(Logical change 1.59)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@202 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 22:27:07 +00:00
Mark Haverkamp
22cfdcf95c Need to check the size of the response header instead of the
request header in saRecvQueue.

BKrev: 412a6f3b4NlVb-n94TuM1jqiD4KUgA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@201 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 22:27:07 +00:00
Steven Dake
e325206977 Clean up usage of ais_done. This includes passing a
value for each done type.  Also, libais_disconnect cleaned up
so it doesn't ais_done when its queues are full.  Instead it
disconnects the library connection.  A new connection state
variable added to the conn_info structure in place of active.

(Logical change 1.58)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@200 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 05:24:21 +00:00
Steven Dake
c4523cbe19 Changed number of queueable messages to the library from 8192
to 128 messages.

(Logical change 1.58)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@199 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 05:24:21 +00:00
Steven Dake
f6c49d8d06 Use new connection enumeration with AMF code.
(Logical change 1.58)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@198 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 05:24:21 +00:00
Steven Dake
35bc69551d main.h:
Changed number of queueable messages to the library from 8192
  to 128 messages.
main.c:
  Clean up usage of ais_done.  This includes passing a
  value for each done type.  Also, libais_disconnect cleaned up
  so it doesn't ais_done when its queues are full.  Instead it
  disconnects the library connection.  A new connection state
  variable added to the conn_info structure in place of active.
amf.c:
  Use new connection enumeration with AMF code.

BKrev: 41297f85ZsPdr8oHUfjQ6v_A6b6ybw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@197 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 05:24:21 +00:00
Steven Dake
0da6e1eac3 Missed commit to changes for queue.h.
(Logical change 1.57)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@196 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-22 23:04:53 +00:00
Steven Dake
d6a29832db queue.h:
Missed commit to changes for queue.h.
ais_msg.h:
  Missed commit of changes to ais_msg.h.

BKrev: 41292695YG_qjNyfkNoFlMFaeiR7zg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@195 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-22 23:04:53 +00:00
Steven Dake
4bd78a016e Missed commit of changes to ais_msg.h.
(Logical change 1.57)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@194 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-22 23:04:53 +00:00
Steven Dake
d52f1fdf74 Add flow control documentation to devmap.
.l

2004/08/22 15:24:25-07:00 mvista.com!sdake
Add event service to devmap.

(Logical change 1.56)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@193 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-22 22:46:29 +00:00