Commit Graph

126 Commits

Author SHA1 Message Date
Steven Dake
f6c12e54d9 (Logical change 1.44)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@126 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:47 +00:00
Steven Dake
13180ca19b Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@125 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:30:46 +00:00
Steven Dake
4ab8129ccb Remove handle state and handle instance information.
Also cleanup saHandleCreate to return unsigned int
handle instead of int handle.

(Logical change 1.43)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@124 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:27:13 +00:00
Steven Dake
2cdf0b28d6 Hide handle state and handle instance information
in this file instead of in global header file.

(Logical change 1.43)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@123 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:27:13 +00:00
Steven Dake
9ad2184513 util.h:
Remove handle state and handle instance information.
  Also cleanup saHandleCreate to return unsigned int
  handle instead of int handle.
util.c:
  Hide handle state and handle instance information
  in this file instead of in global header file.

BKrev: 4106e4d1-Ntb973S5ymyNwgL6e0PDw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@122 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-27 23:27:13 +00:00
Steven Dake
f446ed6a5b Remove BINDTODEVICE socket option and replace with MULTICAST_IF
to be more portable and require less root privs.

(Logical change 1.42)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@121 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-26 22:17:36 +00:00
Steven Dake
093cccd334 gmi.c:
Remove BINDTODEVICE socket option and replace with MULTICAST_IF
  to be more portable and require less root privs.

BKrev: 410583008afZgkQ66_jDep-8pFf_nw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@120 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-26 22:17:36 +00:00
Steven Dake
c6a4b25b12 Additional information for using the saRecvQueue call in a
library.

(Logical change 1.41)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@119 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-23 22:15:04 +00:00
Steven Dake
61d7f71031 README.devmap:
Additional information for using the saRecvQueue call in a
  library.

BKrev: 41018de8tOmRhu_QtrtzbSGzWHSMKA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@118 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-23 22:15:04 +00:00
Steven Dake
32ff7abeb8 (Logical change 1.40)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@117 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-20 23:47:28 +00:00
Steven Dake
48aa1bfad9 SECURITY:
Description of the security policy of the openais project.  Includes a
  description of the techniques used in openais.

BKrev: 40fdaf10zR42cuBrfB9UB-Bc-edNsQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@116 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-20 23:47:28 +00:00
Steven Dake
1f45493f13 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@115 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-20 23:47:27 +00:00
Steven Dake
7298c7d9c0 Major improvements to fragmentation. It works alot better now.
(Logical change 1.39)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@114 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-15 00:03:02 +00:00
Steven Dake
70749c2bbd Major improvements to quality in the GMI. Previously with 12 processors
and running ckptstress from two nodes, one node would fail to make
forward progress.  Sometimes the nodes would assert or crash.  All the
fragmentation code has been rewritten to be more stable and of better
design (at the cost of a little more memory).

BKrev: 40f5c9b6KnXRw3_UyUgLV-cIvI7YpA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@113 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-15 00:03:02 +00:00
Steven Dake
69c97fb5ff Allow NULL delivery_fn in gmi_join. This basically has no
effect but allows the processor to participate in multicasting
and membership.

(Logical change 1.38)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@112 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:20:56 +00:00
Steven Dake
0ee13ef6b5 gmi.c:
Allow NULL delivery_fn in gmi_join.  This basically has no
  effect but allows the processor to participate in multicasting
  and membership.

BKrev: 40f419f8lTr8W134C7CXrtXRnzoMzw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@111 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:20:56 +00:00
Steven Dake
7f49b68e27 Extraneous tokens were not being rejected on token retransmits
that occurred during configuration changes.  The result was bad
behavior, especially with larger rings.  Also cleaned up the
token retransmit timer to be deleted if necessary.

(Logical change 1.37)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@110 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:19:43 +00:00
Steven Dake
edb6179338 gmi.c:
Extraneous tokens were not being rejected on token retransmits
  that occurred during configuration changes.  The result was bad
  behavior, especially with larger rings.  Also cleaned up the
  token retransmit timer to be deleted if necessary.

BKrev: 40f419afbeZlmKywfUpsrDkU5kMnHg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@109 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 17:19:43 +00:00
Steven Dake
dc3e957f9b Add ip to deliver_fn callback
(Logical change 1.36)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@108 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:51:52 +00:00
Steven Dake
ffbb2cb19f Add ip to deliver_fn callback
BKrev: 40f35c58ypi89e5Nq53F73OF8QGakA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@107 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:51:52 +00:00
Steven Dake
7e0c9753ea Add ip to deliver_fn callback
Add ip to deliver_fn callback
Add ip to deliver_fn callback

(Logical change 1.36)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@106 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:51:52 +00:00
Steven Dake
6e980d7b47 Removed something that was necessary in last changeset.
(Logical change 1.35)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@105 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:48:48 +00:00
Steven Dake
a99007e491 gmi.c:
Removed something that was necessary in last changeset.

BKrev: 40f35ba0CGzAzJZVAZx-QxSIYzQlNQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@104 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-13 03:48:48 +00:00
Steven Dake
a8514efa00 gmi.c:
Fix debug exit.

BKrev: 40f3069ao4cKWSuICZHrMdMIqJDlMw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@103 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:46:02 +00:00
Steven Dake
33a8e4f137 Fix debug exit.
(Logical change 1.34)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@102 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:46:02 +00:00
Steven Dake
39d0551093 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2004/07/12 14:40:19-07:00 mvista.com!sdake
gmi.c:
  When a processor left the membership, the next configuration would sometimes
  cause a form token timeout.  While not particularly harmful, it was wasteful
  and not part of the original design of the group messaging protocol.
  There was some extra junk code that was added to workaround some other bug
  that has since been fixed.
  This junk code removed and now the form token never times out (woohoo).
  Also removed some extra code that calculates the next ORF processor twice.
  We only really need to do it once.

BKrev: 40f3054fipDDp-KdB8CJpzw0vS3PfA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@101 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:40:31 +00:00
Steven Dake
263b91f277 Auto merged
2004/07/12 14:37:13-07:00 mvista.com!sdake
When a processor left the membership, the next configuration would sometimes
cause a form token timeout.  While not particularly harmful, it was wasteful
and not part of the original design of the group messaging protocol.
There was some extra junk code that was added to workaround some other bug
that has since been fixed.
This junk code removed and now the form token never times out (woohoo).
Also removed some extra code that calculates the next ORF processor twice.
We only really need to do it once.

(Logical change 1.33)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@100 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 21:40:31 +00:00
Steven Dake
0d16710464 Retransmit orf token if no multicast or token received within a timeout
period.  This could mean that the token was lost, but no configuration
change has really occured.  Rather then execute the heavyweight
membership protocol, just retry the token and if it fails after the
token timeout, execute a configuration change sequence.

BKrev: 40f21082dvUxH0aOPvKmpqoqlkEgEA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@99 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 04:16:02 +00:00
Steven Dake
d886159e29 Add retransmit of token if no multicast or token received
within a timeout period (100 msec).  This helps avoid
a reconfiguration when only the token is lost, but no
real configuration changes have occured.

(Logical change 1.32)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@98 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 04:16:02 +00:00
Steven Dake
dd7f1e67d3 Changeset 1.22 introduced problem with managing messages
in the sort queue.  The result was memory leakage.

(Logical change 1.31)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@97 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 03:49:04 +00:00
Steven Dake
7a6f27be80 Fix memory leak introduced in changeset 1.22.
BKrev: 40f20a301E28mF_1r27z43zk2MqHeA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@96 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-12 03:49:04 +00:00
Steven Dake
088ecb238b Clean up warnings found with -pedantic.
BKrev: 40f0eaa4fMlsgdXtJH-HQEl5nRh78Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@95 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-11 07:22:12 +00:00
Steven Dake
447bfc6813 Clean up warnings found with -pedantic.
(Logical change 1.30)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@94 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-11 07:22:12 +00:00
Steven Dake
94ef3baf55 Changed references to C99 initializers after pedantic cleanup
(Logical change 1.30)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@93 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-11 07:22:12 +00:00
Steven Dake
6ae7d96ecd Removes the external dependency from the gmi to the global variable
this_ip.  This is still passed in for gmi_init users to be notified
of which IP was selected, but copied for local use.

BKrev: 40ef692cfv-e5JCQ8T9iC-_i3AaBcg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@92 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-10 03:57:32 +00:00
Steven Dake
d33384faea Fixes build problem with rename of aispoll.c.
(Logical change 1.29)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@91 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-10 03:57:32 +00:00
Steven Dake
a16954f562 Removes this_ip external dependency and instead copies the
bound to address to storage local to the group messaging
interface.

(Logical change 1.29)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@90 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-10 03:57:32 +00:00
Steven Dake
cc11e4db80 Rename: exec/poll.h -> exec/aispoll.h
}(Logical change 1.28)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@89 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
7d043c3fda Rename aispoll.h so that people using the aispoll header file do not
collide with sys/poll.h.

BKrev: 40ef0fadvg4jQb-J9VhBM25mh_mdMQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@88 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
844937b6cd Rename: exec/poll.h -> exec/aispoll.h
(Logical change 1.28)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@87 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
fc3435c50d Rename: exec/poll.c -> exec/aispoll.c
(Logical change 1.28)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@86 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
9524f13926 Rename: exec/poll.c -> exec/aispoll.c
}(Logical change 1.28)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@85 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
295d70a3c8 Rename poll.h to aispoll.h
(Logical change 1.28)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@84 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
a8b9d96da0 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@83 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:40 +00:00
Steven Dake
619fc3a59d Fix a merge problem with the previous update to the amf with
the conn_info structure.
the track list was not being initialized at start.

(Logical change 1.27)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@82 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 20:47:25 +00:00
Steven Dake
48c503d2e2 Fix merge bugs from changeset 1.23.
BKrev: 40edb2ddF4jV4bxQYmbXj7nCSPCe2w


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@81 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 20:47:25 +00:00
Steven Dake
e95e1e25cc Fix a couple merge problems with the previous update to clm with the
conn_info structure.
the track list was not being initialized.  When track start was called
the tracking wasn't added to a list.  When track stop was called
the tracking was not deleted.
The result of all this is that cluster membership tracking was broken
previously.

(Logical change 1.27)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@80 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 20:47:25 +00:00
Steven Dake
354363f512 Development documentation update. After reading these docs, it should
be possible to add a service to the AIS.

(Logical change 1.26)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@79 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 19:45:04 +00:00
Steven Dake
87e321e70d Learn how to develop an AIS service with README.devmap.
BKrev: 40eda440k9_Mia7kFQvGzgthaN_bWQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@78 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 19:45:04 +00:00
Steven Dake
3f9257a297 Fix build errors after previous commit.
(Logical change 1.25)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@77 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:05:19 +00:00