Skip to contentSkip to conversation

cluster/rgmanager ChangeLog src/resources/clus ...

Cluster-devel [email protected] 1 participant 1 message Nov 30, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2007-11-30 20:06:55

Modified files:
rgmanager : ChangeLog
rgmanager/src/resources: clusterfs.sh fs.sh ocf-shellfuncs
service.sh vm.sh
rgmanager/src/utils: clulog.c clustat.c clusvcadm.c

Log message:
Merges from RHEL5 branch - round 1.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&r1=1.59&r2=1.60
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&r1=1.19&r2=1.20
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/fs.sh.diff?cvsroot=cluster&r1=1.23&r2=1.24
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/ocf-shellfuncs.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/service.sh.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/vm.sh.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clulog.c.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clustat.c.diff?cvsroot=cluster&r1=1.35&r2=1.36
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clusvcadm.c.diff?cvsroot=cluster&r1=1.22&r2=1.23

rgmanager/ChangeLog +4 -0
@@ -1,3 +1,7 @@
+2007-11-30 Lon Hohberger <[email protected]>
+	* src/resources/*: Merge from RHEL5 branch.
+	* src/utils/*: Merge from RHEL5 branch.
+
 2007-08-30 Lon Hohberger <[email protected]>
 	* src/daemons/restree.c, rg_state.c: Fix tree-restart bug
 	This is another part of #229650
rgmanager/src/resources/clusterfs.sh +41 -6

78 lines not on this page · raw message

rgmanager/src/resources/fs.sh +5 -2
@@ -535,8 +535,8 @@
 	do
 		#echo "spec=$1 dev=$dev  tmp_dev=$tmp_dev"
 		tmp_dev=$(real_device $tmp_dev)
-		tmp_mp=$(trim_trailing_slash $tmp_mp)
-		mp=$(trim_trailing_slash $mp)
+		tmp_mp=${tmp_mp/%\//}  #$(trim_trailing_slash $tmp_mp)
+		mp=${mp/%\//}		       #$(trim_trailing_slash $mp)
 
 		if [ -n "$tmp_dev" -a "$tmp_dev" = "$dev" ]; then
 			#
@@ -1149,6 +1149,9 @@
 			umount_failed=
 			done=$YES
 			;;
+		$FAIL)
+			return $FAIL
+			;;
 		$YES)
 			sync; sync; sync
 			ocf_log info "unmounting $mp"
rgmanager/src/resources/ocf-shellfuncs +5 -1
@@ -1,5 +1,5 @@
 #
-# 	$Id: ocf-shellfuncs,v 1.4 2007/01/15 19:52:05 lhh Exp $
+# 	$Id: ocf-shellfuncs,v 1.5 2007/11/30 20:06:55 lhh Exp $
 #
 # 	Common helper functions for the OCF Resource Agents supplied by
 # 	heartbeat.
@@ -174,6 +174,10 @@
 	esac
 
 	pretty_echo $__OCF_PRIO "$__OCF_MSG"
+
+	if [ -z "`which clulog 2> /dev/null`" ]; then
+		return 0
+	fi
 	clulog -p $__LOG_PID -n $__LOG_NAME \
 		-s $__OCF_PRIO_N "$__OCF_MSG"
 }
rgmanager/src/resources/service.sh +34 -8

86 lines not on this page · raw message

rgmanager/src/resources/vm.sh +102 -52

227 lines not on this page · raw message

rgmanager/src/utils/clulog.c +3 -5
@@ -92,9 +92,6 @@
     if (argc < 4)
 	usage(argv[0]);
 
-    /* ../daemons/log.c */
-    configure_logging(-1);
-
     while ((opt = getopt(argc, argv, "f:l:s:hp:n:")) != -1) {
 	switch (opt) {
 	case 'l':
@@ -133,9 +130,10 @@
     if (!cmdline_loglevel) {
 	/*
 	 * Let's see what loglevel the SM is running at.
-	 * TODO Get rgmgr log level
+	 * If ccsd's not available, use default.
 	 */
-	clu_set_loglevel(LOGLEVEL_DFLT);
+    	if (configure_logging(-1) < 0)
+		clu_set_loglevel(LOGLEVEL_DFLT);
     }
     result = clulog_pid(severity, pid, progname, logmsg);
     free(progname);
rgmanager/src/utils/clustat.c +197 -62

549 lines not on this page · raw message

rgmanager/src/utils/clusvcadm.c +5 -1
@@ -311,7 +311,11 @@
 			node_specified = 1;
 			break;
 		case 'v':
-			printf("%s\n",RELEASE_VERSION);
+#ifdef RELEASE_VERSION
+			printf("%s\n", RELEASE_VERSION);
+#else
+			printf("DEVEL\n");
+#endif
 			return 0;
 		case 'Z':
 			actionstr = "freezing";