This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

master - gfs_controld: handle cman config update notifications


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=470a9d625f9eea678ec101699e5a798049c803fe
Commit:        470a9d625f9eea678ec101699e5a798049c803fe
Parent:        ab82a56843e0f043f07d9cd005725d36719f6aa4
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Mon Oct 27 10:52:29 2008 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri Oct 31 11:13:14 2008 +0100

gfs_controld: handle cman config update notifications

allow at least logging to be reconfigured runtime

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 group/gfs_controld/member_cman.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/group/gfs_controld/member_cman.c b/group/gfs_controld/member_cman.c
index 0375c7c..eec8ee2 100644
--- a/group/gfs_controld/member_cman.c
+++ b/group/gfs_controld/member_cman.c
@@ -20,13 +20,18 @@ void kick_node_from_cluster(int nodeid)
 
 static void cman_callback(cman_handle_t h, void *private, int reason, int arg)
 {
-	if (reason == CMAN_REASON_TRY_SHUTDOWN) {
+	switch (reason) {
+	case CMAN_REASON_TRY_SHUTDOWN:
 		if (list_empty(&mountgroups))
 			cman_replyto_shutdown(ch, 1);
 		else {
 			log_debug("no to cman shutdown");
 			cman_replyto_shutdown(ch, 0);
 		}
+		break;
+	case CMAN_REASON_CONFIG_UPDATE:
+		setup_logging();
+		break;
 	}
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]