cluster/rgmanager include/resgroup.h src/daemo ...
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh at sourceware.org 2006-12-13 18:38:42
Modified files:
rgmanager/include: resgroup.h rgmanager/src/daemons: rg_forward.c rg_state.c rgmanager/src/resources/utils: ra-skelet.sh rgmanager/src/utils: clustat.c clusvcadm.c
Added files:
rgmanager/src/resources: named.metadata named.sh rgmanager/src/resources/utils: named-parse-config.pl
Log message:
Merge from HEAD branch
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/include/resgroup.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.15&r2=1.15.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_forward.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8&r2=1.8.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.24&r2=1.24.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/named.metadata.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/named.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/utils/named-parse-config.pl.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/utils/ra-skelet.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5&r2=1.5.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clustat.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.25&r2=1.25.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clusvcadm.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.12&r2=1.12.2.1
rgmanager/include/resgroup.h +1 -1
@@ -125,7 +125,7 @@msgctx_t *resp_ctx, int max, uint32_t target, int arg0, int arg1); -void send_response (int ret,request_t *req); +void send_response (int ret,int node,request_t *req);void send_ret (msgctx_t *ctx,char *name,int ret,int req);/* do this op on all resource groups. The handler for the request
rgmanager/src/daemons/rg_forward.c +1 -1
@@ -91,7 +91,7 @@msg_free_ctx (ctx);swab_SmMessageSt (&msg); -send_response (msg.sm_data.d_ret, req); +send_response (msg.sm_data.d_ret, msg.sm_data.d_svcOwner, req);rq_free (req);pthread_exit (NULL );
rgmanager/src/daemons/rg_state.c +5 -2
@@ -213,7 +213,7 @@void -send_response (int ret,request_t *req) +send_response (int ret,int nodeid,request_t *req) {SmMessageSt msg, *msgp = &msg;
@@ -226,7 +226,10 @@ msgp->sm_data.d_action = req->rr_orig_request;strncpy (msgp->sm_data.d_svcName, req->rr_group,sizeof (msgp->sm_data.d_svcName)); - msgp->sm_data.d_svcOwner =my_id ();/* XXX Broken */ +if (!nodeid) + msgp->sm_data.d_svcOwner =my_id (); +else + msgp->sm_data.d_svcOwner = nodeid; msgp->sm_data.d_ret = ret;swab_SmMessageSt (msgp);
/cvs/cluster/cluster/rgmanager/src/resources/named.metadata,v --> standard output revision 1.1.2.1
- renamed from rgmanager/src/resources/named.metadata +104 -0
104 lines not on this page · raw message
/cvs/cluster/cluster/rgmanager/src/resources/named.sh,v --> standard output revision 1.1.2.1
- renamed from rgmanager/src/resources/named.sh +223 -0
223 lines not on this page · raw message
/cvs/cluster/cluster/rgmanager/src/resources/utils/named-parse-config.pl,v --> standard output revision 1.1.2.1
- renamed from rgmanager/src/resources/utils/named-parse-config.pl +26 -0
@@ -0,0 +1,26 @@ +#!/usr/bin/perl -w + +## +## Parse named.conf (from STDIN) and add options from cluster.conf +## +## ./named-parse-config.pl "directory" "pid-file" "listen-on" +## +use strict; + +if ($#ARGV < 2) { + die ("Not enough arguments"); +} + +while (my $line = <STDIN>) { + chomp($line); + $line =~ s/(.*?)\s*$/$1/; + if ($line =~ /^\s*options\s+\{/) { + print $line, "\n"; + print "\tdirectory \"$ARGV[0]\";\n"; + print "\tpid-file \"$ARGV[1]\";\n"; + print "\tlisten-on { $ARGV[2] };\n"; + } else { + print $line, "\n"; + } +} +
rgmanager/src/resources/utils/ra-skelet.sh +2 -2
@@ -62,10 +62,10 @@ read pid < "$pid_file" # @todo: PID is not running -> error? - if [ ! -d "/proc/$pid_file" ]; then + if [ ! -d "/proc/$pid" ]; then return 0; fi - + kill -TERM "$pid" if [ $? -ne 0 ]; then
rgmanager/src/utils/clustat.c +88 -50
250 lines not on this page · raw message
rgmanager/src/utils/clusvcadm.c +66 -5
102 lines not on this page · raw message