diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2008-11-22 13:47:03 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2008-11-22 13:47:03 +0000 |
commit | 677b5948499c2aa15c37e6c72640bdfda0d2f9a2 (patch) | |
tree | 958dcc3855550798f07e39c9b0cce9dcbeb4c99f /sys-cluster/cman/files | |
parent | Clean up old revisions. (diff) | |
download | gentoo-2-677b5948499c2aa15c37e6c72640bdfda0d2f9a2.tar.gz gentoo-2-677b5948499c2aa15c37e6c72640bdfda0d2f9a2.tar.bz2 gentoo-2-677b5948499c2aa15c37e6c72640bdfda0d2f9a2.zip |
Renamed patches, added some fixes in r1.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-cluster/cman/files')
-rw-r--r-- | sys-cluster/cman/files/cman-2.03.09-RH_bug_457107.patch (renamed from sys-cluster/cman/files/cman-2.02.39-RH_bug_457107.patch) | 0 | ||||
-rw-r--r-- | sys-cluster/cman/files/cman-2.03.09-add_votes_to_transition_message.patch | 63 | ||||
-rw-r--r-- | sys-cluster/cman/files/cman-2.03.09-fix_signatures_of_cman_get_privdata_and_cman_set_privdata.patch | 49 | ||||
-rw-r--r-- | sys-cluster/cman/files/cman-2.03.09-qdisk-fix-block-size-check-RH_bug_470533.patch (renamed from sys-cluster/cman/files/cman-2.02.39-qdisk-fix-block-size-check-RH_bug_470533.patch) | 0 |
4 files changed, 112 insertions, 0 deletions
diff --git a/sys-cluster/cman/files/cman-2.02.39-RH_bug_457107.patch b/sys-cluster/cman/files/cman-2.03.09-RH_bug_457107.patch index 40a4159a16a3..40a4159a16a3 100644 --- a/sys-cluster/cman/files/cman-2.02.39-RH_bug_457107.patch +++ b/sys-cluster/cman/files/cman-2.03.09-RH_bug_457107.patch diff --git a/sys-cluster/cman/files/cman-2.03.09-add_votes_to_transition_message.patch b/sys-cluster/cman/files/cman-2.03.09-add_votes_to_transition_message.patch new file mode 100644 index 000000000000..6ea26166d141 --- /dev/null +++ b/sys-cluster/cman/files/cman-2.03.09-add_votes_to_transition_message.patch @@ -0,0 +1,63 @@ +From: Christine Caulfield <ccaulfie@redhat.com> +Date: Thu, 6 Nov 2008 11:53:14 +0000 (+0000) +Subject: cman: add votes to transition message +X-Git-Url: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff_plain;h=2a983d103349d8aa1da2a7332bec334b849b0e3e + +cman: add votes to transition message + +This uses a previously unused field in this message to help provide +forward-compatibility with cluster3 systems which need the node votes +to be provided by the node itself, rather than the global configuration +system. + +Signed-off-by: Christine Caulfield <ccaulfie@redhat.com> +--- + +diff --git a/cman/daemon/cnxman-private.h b/cman/daemon/cnxman-private.h +index 0e433a6..27a3c2e 100644 +--- a/cman/daemon/cnxman-private.h ++++ b/cman/daemon/cnxman-private.h +@@ -59,7 +59,7 @@ struct cl_transmsg { + unsigned char cmd; + unsigned char first_trans; + uint16_t cluster_id; +- int high_nodeid; ++ int votes; + int expected_votes; + + unsigned int major_version; /* Not backwards compatible */ +diff --git a/cman/daemon/commands.c b/cman/daemon/commands.c +index 519a10d..00cdb65 100644 +--- a/cman/daemon/commands.c ++++ b/cman/daemon/commands.c +@@ -1538,7 +1538,7 @@ void send_transition_msg(int last_memb_count, int first_trans) + P_MEMB("sending TRANSITION message. cluster_name = %s\n", cluster_name); + msg->cmd = CLUSTER_MSG_TRANSITION; + msg->first_trans = first_trans; +- msg->high_nodeid = get_highest_nodeid(); ++ msg->votes = us->votes; + msg->expected_votes = us->expected_votes; + msg->cluster_id = cluster_id; + msg->major_version = CNXMAN_MAJOR_VERSION; +@@ -1588,7 +1588,7 @@ static void byteswap_internal_message(char *data, int len) + case CLUSTER_MSG_TRANSITION: + transmsg = (struct cl_transmsg *)data; + transmsg->cluster_id = swab16(transmsg->cluster_id); +- transmsg->high_nodeid = swab32(transmsg->high_nodeid); ++ transmsg->votes = swab32(transmsg->votes); + transmsg->expected_votes = swab32(transmsg->expected_votes); + transmsg->major_version = swab32(transmsg->major_version); + transmsg->minor_version = swab32(transmsg->minor_version); +diff --git a/cman/daemon/cnxman-private.h b/cman/daemon/cnxman-private.h +index 27a3c2e..345242d 100644 +--- a/cman/daemon/cnxman-private.h ++++ b/cman/daemon/cnxman-private.h +@@ -5,7 +5,7 @@ + + /* Protocol Version triplet */ + #define CNXMAN_MAJOR_VERSION 6 +-#define CNXMAN_MINOR_VERSION 1 ++#define CNXMAN_MINOR_VERSION 2 + #define CNXMAN_PATCH_VERSION 0 + + /* How we announce ourself in console events */ diff --git a/sys-cluster/cman/files/cman-2.03.09-fix_signatures_of_cman_get_privdata_and_cman_set_privdata.patch b/sys-cluster/cman/files/cman-2.03.09-fix_signatures_of_cman_get_privdata_and_cman_set_privdata.patch new file mode 100644 index 000000000000..b1fea587ee87 --- /dev/null +++ b/sys-cluster/cman/files/cman-2.03.09-fix_signatures_of_cman_get_privdata_and_cman_set_privdata.patch @@ -0,0 +1,49 @@ +From: Christine Caulfield <ccaulfie@redhat.com> +Date: Wed, 19 Nov 2008 11:16:30 +0000 (+0000) +Subject: cman: fix signatures of cman_get_privdata & cman_set_privdata +X-Git-Url: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff_plain;h=6f11a5cb225a9547a18440e9129410c32aa2be3f + +cman: fix signatures of cman_get_privdata & cman_set_privdata + +They do NOT take a pointer to a handle. + +Signed-off-by: Christine Caulfield <ccaulfie@redhat.com> +--- + +diff --git a/cman/lib/libcman.c b/cman/lib/libcman.c +index cee0147..9465412 100644 +--- a/cman/lib/libcman.c ++++ b/cman/lib/libcman.c +@@ -346,7 +346,7 @@ int cman_finish(cman_handle_t handle) + return 0; + } + +-int cman_setprivdata(cman_handle_t *handle, void *privdata) ++int cman_setprivdata(cman_handle_t handle, void *privdata) + { + struct cman_handle *h = (struct cman_handle *)handle; + VALIDATE_HANDLE(h); +@@ -355,7 +355,7 @@ int cman_setprivdata(cman_handle_t *handle, void *privdata) + return 0; + } + +-int cman_getprivdata(cman_handle_t *handle, void **privdata) ++int cman_getprivdata(cman_handle_t handle, void **privdata) + { + struct cman_handle *h = (struct cman_handle *)handle; + VALIDATE_HANDLE(h); +diff --git a/cman/lib/libcman.h b/cman/lib/libcman.h +index 3771176..b4fb4e4 100644 +--- a/cman/lib/libcman.h ++++ b/cman/lib/libcman.h +@@ -196,8 +196,8 @@ cman_handle_t cman_admin_init(void *privdata); + int cman_finish(cman_handle_t handle); + + /* Update/retrieve the private data */ +-int cman_setprivdata(cman_handle_t *h, void *privdata); +-int cman_getprivdata(cman_handle_t *h, void **privdata); ++int cman_setprivdata(cman_handle_t h, void *privdata); ++int cman_getprivdata(cman_handle_t h, void **privdata); + + /* + * Notification of membership change events. Note that these are sent after diff --git a/sys-cluster/cman/files/cman-2.02.39-qdisk-fix-block-size-check-RH_bug_470533.patch b/sys-cluster/cman/files/cman-2.03.09-qdisk-fix-block-size-check-RH_bug_470533.patch index 072951bce205..072951bce205 100644 --- a/sys-cluster/cman/files/cman-2.02.39-qdisk-fix-block-size-check-RH_bug_470533.patch +++ b/sys-cluster/cman/files/cman-2.03.09-qdisk-fix-block-size-check-RH_bug_470533.patch |