Skip to contentSkip to conversation

cluster/rgmanager ChangeLog include/reslist.h ...

Cluster-devel [email protected] 1 participant 1 message May 3, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: lhh at sourceware.org 2007-05-03 15:02:48

Modified files:

	rgmanager      : ChangeLog 
	rgmanager/include: reslist.h 
	rgmanager/make : defines.mk.input 
	rgmanager/src/clulib: Makefile alloc.c clulog.c msgsimple.c 
	                      vft.c 
	rgmanager/src/daemons: groups.c rg_state.c 
	rgmanager/src/daemons/tests: delta-test004-test005.expected 
	                             delta-test005-test006.expected 
	                             delta-test006-test007.expected 
	                             delta-test007-test008.expected 
	                             delta-test008-test009.expected 
	                             delta-test009-test010.expected 
	                             delta-test010-test011.expected 
	                             delta-test011-test012.expected 
	                             delta-test012-test013.expected 
	                             delta-test013-test014.expected 
	                             delta-test014-test015.expected 
	                             delta-test015-test016.expected 
	                             delta-test016-test017.expected 
	                             test005.expected test006.expected 
	                             test007.expected test008.expected 
	                             test009.expected test010.expected 
	                             test011.expected test012.expected 
	                             test013.expected test014.expected 
	                             test015.expected test016.expected 
	                             test017.expected 
	rgmanager/src/resources: fs.sh nfsclient.sh nfsexport.sh 
	rgmanager/src/utils: clulog.c 

Added files:
rgmanager/src/clulib: wrap_lock.c

Log message:
2007-05-03 Lon Hohberger <[email protected]>
* Merge patch from Crosswalk development team:
* Scott Cannata
* Henry Harris
* Leonard Maiorani
* src/daemons/groups.c, rg_state.c: Apply patch from Andrey Mirkin to fix bug #237144; prevents exclusive services from being accidentally (or intentionally) being started on the same node
* src/daemons/restree.c: Don't print (null) when an attr isn't inherited
* src/daemons/reslist.c: Try all direct ancestors while performing run-time inheritance resolution #231521
* src/daemons/tests/*: Clean up test cases; don't look for (null) any more

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.5.2.24&r2=1.5.2.25
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/include/reslist.h.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.8.2.6&r2=1.8.2.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/make/defines.mk.input.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/wrap_lock.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.2&r2=1.4.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/alloc.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3.2.4&r2=1.3.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/clulog.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.2.2.3&r2=1.2.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/msgsimple.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.1&r2=1.4.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/vft.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.7.2.7&r2=1.7.2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/groups.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.8.2.18&r2=1.8.2.19
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/rg_state.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.19&r2=1.4.2.20
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test004-test005.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test005-test006.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test006-test007.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test007-test008.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test008-test009.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test009-test010.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test010-test011.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test011-test012.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test012-test013.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test013-test014.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test014-test015.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test015-test016.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/delta-test016-test017.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test005.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test006.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test007.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test008.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test009.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test010.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test011.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test012.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test013.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test014.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test015.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test016.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/test017.expected.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/fs.sh.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.21&r2=1.4.2.22
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/nfsclient.sh.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3.2.11&r2=1.3.2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/nfsexport.sh.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.5&r2=1.4.2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clulog.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.2&r2=1.1.2.3

rgmanager/ChangeLog +18 -0
@@ -1,3 +1,21 @@
+2007-05-03 Lon Hohberger <[email protected]>
+	* Merge patch from Crosswalk development team:
+		* Scott Cannata
+		* Henry Harris
+		* Leonard Maiorani
+	* src/daemons/groups.c, rg_state.c: Apply patch from Andrey
+	Mirkin to fix bug #237144; prevents exclusive services from
+	being accidentally (or intentionally) being started on the
+	same node
+	* src/daemons/restree.c: Don't print (null) when an attr
+	isn't inherited
+	* src/daemons/reslist.c: Try all direct ancestors while 
+	performing run-time inheritance resolution #231521
+	* src/daemons/tests/*: Clean up test cases; don't look for (null)
+	any more
+
+=====
+
 2006-11-03 Lon Hohberger <[email protected]>
 	* src/daemons/restree.c: Merge patch from Jeff Layton to instrument
 	res_exec more closely. (#213246)
rgmanager/include/reslist.h +15 -7
@@ -25,11 +25,6 @@
 #include <libxml/xpath.h>
 
 
-#define RA_PRIMARY	(1<<0)
-#define RA_UNIQUE	(1<<1)
-#define RA_REQUIRED	(1<<2)
-#define RA_INHERIT	(1<<3)
-
 #define RF_INLINE	(1<<0)
 #define RF_DEFINED	(1<<1)
 #define RF_NEEDSTART	(1<<2)	/** Used when adding/changing resources */
@@ -70,11 +65,24 @@
 #include <res-ocf.h>
 
 
+typedef enum {
+/*
+#define RA_PRIMARY	(1<<0)
+#define RA_UNIQUE	(1<<1)
+#define RA_REQUIRED	(1<<2)
+#define RA_INHERIT	(1<<3)
+ */
+	RA_PRIMARY = (1<<0),
+	RA_UNIQUE  = (1<<1),
+	RA_REQUIRED= (1<<2),
+	RA_INHERIT = (1<<3),
+	RA_SPEC    = (1<<4)
+} ra_flag_t;
+
 typedef struct _resource_attribute {
-	int	ra_flags;
-	/* XXX possible alignment problem on ia64 */
 	char	*ra_name;
 	char	*ra_value;
+	ra_flag_t ra_flags;
 } resource_attr_t;
 
 
rgmanager/make/Attic/defines.mk.input +8 -0
@@ -32,3 +32,11 @@
 
 # Default CFLAGS
 CFLAGS += -DSHAREDIR=\"@SHAREDIR@\" -Wall ${INCLUDE}
+
+#
+# Wrappers around pthread_mutex / pthread_rwlock calls for deadlock
+# detection (and other things)
+#
+#CFLAGS += -DSHAREDIR=\"/usr/share/cluster\" -Wall ${INCLUDE} -DWRAP_LOCKS -DMAX_DISPATCH_RETRIES=3
+#LDFLAGS += -Wl,-wrap,pthread_mutex_lock,-wrap,pthread_mutex_unlock,-wrap,pthread_rwlock_rdlock,-wrap,pthread_rwlock_wrlock,-wrap,pthread_rwlock_unlock
+

/cvs/cluster/cluster/rgmanager/src/clulib/wrap_lock.c,v --> standard output revision 1.1.2.1

- renamed from rgmanager/src/clulib/wrap_lock.c +224 -0

224 lines not on this page · raw message

rgmanager/src/clulib/Makefile +1 -1
@@ -30,7 +30,7 @@
 uninstall:
 
 libclulib.a: clulog.o daemon_init.o signals.o msgsimple.o \
-		vft.o gettid.o rg_strings.o
+		vft.o gettid.o rg_strings.o wrap_lock.o
 	${AR} cru $@ $^
 	ranlib $@
 
rgmanager/src/clulib/alloc.c +4 -0
@@ -155,7 +155,11 @@
 
 #ifndef NOPTHREADS
 #include <pthread.h>
+#ifdef WRAP_LOCKS
+static pthread_mutex_t _alloc_mutex = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;
+#else
 static pthread_mutex_t _alloc_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif /* WRAP_LOCKS */
 #else
 #define pthread_mutex_trylock(x) (0)
 #define pthread_mutex_lock(x)
rgmanager/src/clulib/clulog.c +7 -2
@@ -20,7 +20,7 @@
 /** @file
  * Library routines for communicating with the logging daemon.
  *
- *  $Id: clulog.c,v 1.2.2.3 2006/10/05 17:52:27 lhh Exp $
+ *  $Id: clulog.c,v 1.2.2.4 2007/05/03 15:02:46 lhh Exp $
  *
  *  Author: Jeff Moyer <[email protected]>
  */
@@ -50,7 +50,7 @@
 #include <string.h>
 
 
-static const char *version __attribute__ ((unused)) = "$Revision: 1.2.2.3 $";
+static const char *version __attribute__ ((unused)) = "$Revision: 1.2.2.4 $";
 
 #ifdef DEBUG
 #include <assert.h>
@@ -70,7 +70,12 @@
 static int   syslog_facility = LOG_DAEMON;
 static char  *daemon_name = NULL;
 static pid_t daemon_pid = -1;
+
+#ifdef WRAP_LOCKS
+static pthread_mutex_t log_mutex = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;
+#else
 static pthread_mutex_t log_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
 
 CODE logger_prioritynames[] = 
 { {"emerg", LOG_EMERG},
rgmanager/src/clulib/msgsimple.c +24 -3
@@ -51,6 +51,8 @@
 int
 msg_send_simple(int fd, int cmd, int arg1, int arg2)
 {
+	int       status;
+	int       my_errno;
 	generic_msg_hdr msg;
 
 	msg.gh_magic = GENERIC_HDR_MAGIC;
@@ -60,7 +62,25 @@
 	msg.gh_arg2 = arg2;
 	swab_generic_msg_hdr(&msg);
 
-	return msg_send(fd, (void *) &msg, sizeof (msg));
+	my_errno = 0;
+	status = msg_send(fd, (void *) &msg, sizeof (msg));
+	my_errno = errno;
+
+	if (status <= 0)
+	{
+		/*
+		 *  Should never be the case since msg_send() is 
+		 *  wrapped in a retry loop. Give one more try
+		 *  calling msg_send() for a few errnos, others, return
+		 *  error as they cannot and should not be retried.
+		 */
+		if ((my_errno == EINTR) || (my_errno == EAGAIN) ||
+		    (my_errno == ENOSPC)) {
+			status = msg_send(fd, (void *) &msg, sizeof (msg));
+		}
+	}
+
+	return (status);
 }
 
 
@@ -95,7 +115,7 @@
 			fprintf(stderr, "fd%d peek: %d/%d bytes\n", fd,
 			       ret, (int)sizeof (generic_msg_hdr));
 		else if (ret == 0)
-			errno = EAGAIN;
+			errno = ECONNRESET;
 		return -1;
 	}
 
@@ -110,7 +130,6 @@
 	 * allocate enough memory to receive the header + diff buffer
 	 */
 	*buf = malloc(peek_msg.gh_length);
-	memset(*buf, 0, peek_msg.gh_length);
 
 	if (!*buf) {
 		fprintf(stderr, "%s: malloc: %s", __FUNCTION__,
@@ -118,6 +137,8 @@
 		return -1;
 	}
 
+	memset(*buf, 0, peek_msg.gh_length);
+
 	/*
 	 * Now, do the real receive.  2 second timeout, if none specified.
 	 */
rgmanager/src/clulib/vft.c +115 -25

240 lines not on this page · raw message

rgmanager/src/daemons/groups.c +101 -1

120 lines not on this page · raw message

rgmanager/src/daemons/rg_state.c +34 -0
@@ -41,6 +41,8 @@
 int set_rg_state(char *servicename, rg_state_t *svcblk);
 int get_rg_state(char *servicename, rg_state_t *svcblk);
 void get_recovery_policy(char *rg_name, char *buf, size_t buflen);
+int have_exclusive_resources();
+int check_exclusive_resources(cluster_member_list_t *membership, char *svcName);
 
 
 uint64_t
@@ -603,6 +605,10 @@
 			ret = 1;
 			break;
 		}
+		if (req == RG_START_RECOVER) {
+			ret = 1;
+			break;
+		}
 
 		clulog(LOG_DEBUG, "Not starting disabled RG %s\n",
 		       svcName);
@@ -1308,6 +1314,7 @@
 }
 
 
+pthread_mutex_t exclusive_mutex = PTHREAD_MUTEX_INITIALIZER;
 /**
  * handle_start_req - Handle a generic start request from a user or during
  * service manager boot.
@@ -1323,6 +1330,7 @@
 {
 	int ret, tolerance = FOD_BEST;
 	cluster_member_list_t *membership = member_list();
+	int need_check = have_exclusive_resources();
 
 	/*
 	 * When a service request is from a user application (eg, clusvcadm),
@@ -1338,6 +1346,18 @@
 		cml_free(membership);
 		return FAIL;
 	}
+	if (need_check) {
+		pthread_mutex_lock(&exclusive_mutex);
+		ret = check_exclusive_resources(membership, svcName);
+		if (ret != 0) {
+			cml_free(membership);
+			pthread_mutex_unlock(&exclusive_mutex);
+			if (ret > 0)
+				goto relocate;
+			else
+				return FAIL;
+		}
+	}
 	cml_free(membership);
 	
 	/*
@@ -1345,6 +1365,8 @@
 	 * mask here - so that we can try all nodes if necessary.
 	 */
 	ret = svc_start(svcName, req);
+	if (need_check)
+		pthread_mutex_unlock(&exclusive_mutex);
 
 	/* 
 	   If services are locked, return the error 
@@ -1384,6 +1406,7 @@
 		return RG_EABORT;
 	}
 	
+relocate:
 	/*
 	 * OK, it failed to start - but succeeded to stop.  Now,
 	 * we should relocate the service.
@@ -1421,6 +1444,7 @@
 	int x;
 	uint64_t me = my_id();
 	cluster_member_list_t *membership = member_list();
+	int need_check = have_exclusive_resources();
 
 	/* XXX ok, so we need to say "should I start this if I was the
 	   only cluster member online */
@@ -1441,9 +1465,19 @@
 		cml_free(membership);
 		return FAIL;
 	}
+ 	if (need_check) {
+ 		pthread_mutex_lock(&exclusive_mutex);
+ 		if (check_exclusive_resources(membership, svcName) != 0) {
+ 			pthread_mutex_unlock(&exclusive_mutex);
+ 			cml_free(membership);
+ 			return FAIL;
+ 		}
+ 	}
 	cml_free(membership);
 
 	x = svc_start(svcName, req);
+	if (need_check)
+ 		pthread_mutex_unlock(&exclusive_mutex);
 	if (x == 0)
 		return 0;
 	if (x == RG_ERUN)
rgmanager/src/daemons/tests/delta-test004-test005.expected +0 -1
@@ -49,7 +49,6 @@
   ip [ NEEDSTART ] {
     address = "192.168.1.2";
     monitor_link = "1";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test005-test006.expected +0 -2
@@ -48,7 +48,6 @@
   ip [ NEEDSTOP ] {
     address = "192.168.1.2";
     monitor_link = "1";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -62,7 +61,6 @@
   ip [ NEEDSTART ] {
     address = "192.168.1.2";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test006-test007.expected +0 -2
@@ -48,7 +48,6 @@
   ip [ NEEDSTOP ] {
     address = "192.168.1.2";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -62,7 +61,6 @@
   ip [ NEEDSTART ] {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test007-test008.expected +0 -2
@@ -58,7 +58,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -72,7 +71,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test008-test009.expected +0 -3
@@ -68,7 +68,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -84,12 +83,10 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
   }
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test009-test010.expected +0 -4
@@ -79,12 +79,10 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
   }
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -100,12 +98,10 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
   }
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test010-test011.expected +0 -10
@@ -138,12 +138,10 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
   }
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -159,27 +157,20 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport [ NEEDSTART ] {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
     }
@@ -187,7 +178,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test011-test012.expected +0 -18
@@ -188,27 +188,20 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
     }
@@ -216,7 +209,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -232,35 +224,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient [ NEEDSTART ] {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
     }
@@ -268,7 +251,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test012-test013.expected +0 -20
@@ -188,35 +188,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient [ NEEDSTOP ] {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
     }
@@ -224,7 +215,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -240,35 +230,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient [ NEEDSTART ] {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -276,7 +257,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test013-test014.expected +0 -30
@@ -212,35 +212,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -248,7 +239,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -264,35 +254,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -300,7 +281,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -315,35 +295,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -351,7 +322,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test014-test015.expected +0 -40
@@ -236,35 +236,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient [ NEEDSTOP ] {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -272,7 +263,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -287,35 +277,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient [ NEEDSTOP ] {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -323,7 +304,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -339,35 +319,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient [ NEEDSTART ] {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -375,7 +346,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -390,35 +360,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient [ NEEDSTART ] {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -426,7 +387,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test015-test016.expected +0 -40
@@ -237,35 +237,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -273,7 +264,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -288,35 +278,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -324,7 +305,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -340,35 +320,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -376,7 +347,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -391,35 +361,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -427,7 +388,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/delta-test016-test017.expected +0 -41

173 lines not on this page · raw message

rgmanager/src/daemons/tests/test005.expected +0 -1
@@ -26,7 +26,6 @@
   ip {
     address = "192.168.1.2";
     monitor_link = "1";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test006.expected +0 -1
@@ -26,7 +26,6 @@
   ip {
     address = "192.168.1.2";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test007.expected +0 -1
@@ -26,7 +26,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test008.expected +0 -1
@@ -36,7 +36,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test009.expected +0 -2
@@ -38,12 +38,10 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
   }
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test010.expected +0 -2
@@ -47,12 +47,10 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
   }
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test011.expected +0 -8
@@ -97,27 +97,20 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
     }
@@ -125,7 +118,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test012.expected +0 -10
@@ -97,35 +97,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
     }
@@ -133,7 +124,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test013.expected +0 -10
@@ -97,35 +97,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -133,7 +124,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test014.expected +0 -20
@@ -121,35 +121,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -157,7 +148,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -172,35 +162,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "ro";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -208,7 +189,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test015.expected +0 -20
@@ -121,35 +121,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -157,7 +148,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -172,35 +162,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -208,7 +189,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test016.expected +0 -20
@@ -122,35 +122,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -158,7 +149,6 @@
   ip {
     address = "192.168.1.3";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
@@ -173,35 +163,26 @@
     mountpoint = "/mnt/cluster2";
     device = "/dev/sdb9";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb9";
       path = "/mnt/cluster2";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -209,7 +190,6 @@
   ip {
     address = "192.168.1.4";
     monitor_link = "yes";
-    nfslock = "(null)";
   }
   script {
     name = "initscript";
rgmanager/src/daemons/tests/test017.expected +0 -21
@@ -135,35 +135,26 @@
     mountpoint = "/mnt/cluster";
     device = "/dev/sdb8";
     fstype = "ext3";
-    nfslock = "(null)";
     nfsexport {
       name = "Dummy Export";
       device = "/dev/sdb8";
       path = "/mnt/cluster";
-      fsid = "(null)";
-      nfslock = "(null)";
       nfsclient {
         name = "Admin group";
         target = "@admin";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
       nfsclient {
         name = "User group";
         target = "@users";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw,sync";
       }
       nfsclient {
         name = "red";
         target = "red";
         path = "/mnt/cluster";
-        fsid = "(null)";
-        nfslock = "(null)";
         options = "rw";
       }
     }
@@ -183,42 +174,32 @@
     ip {
       address = "192.168.1.3";
       monitor_link = "yes";
-      nfslock = "(null)";
     }
     fs {
       name = "mount2";
       mountpoint = "/mnt/cluster2";
       device = "/dev/sdb9";
       fstype = "ext3";
-      nfslock = "(null)";
       nfsexport {
         name = "Dummy Export";
         device = "/dev/sdb9";
         path = "/mnt/cluster2";
-        fsid = "(null)";
-        nfslock = "(null)";
         nfsclient {
           name = "Admin group";
           target = "@admin";
           path = "/mnt/cluster2";
-          fsid = "(null)";
-          nfslock = "(null)";
           options = "rw";
         }
         nfsclient {
           name = "User group";
           target = "@users";
           path = "/mnt/cluster2";
-          fsid = "(null)";
-          nfslock = "(null)";
           options = "rw,sync";
         }
         nfsclient {
           name = "red";
           target = "red";
           path = "/mnt/cluster2";
-          fsid = "(null)";
-          nfslock = "(null)";
           options = "rw";
         }
       }
@@ -226,12 +207,10 @@
     script {
       name = "script2";
       file = "/etc/init.d/script2";
-      service_name = "(null)";
     }
     ip {
       address = "192.168.1.4";
       monitor_link = "yes";
-      nfslock = "(null)";
     }
   }
   script {
rgmanager/src/resources/fs.sh +1 -1
@@ -145,7 +145,7 @@
 	    <content type="boolean"/>
 	</parameter>
 
-	<parameter name="nfslock" inherit="nfslock">
+	<parameter name="nfslock" inherit="service%nfslock">
 	    <longdesc lang="en">
 	        If set and unmounting the file system fails, the node will
 		try to kill lockd and issue reclaims across all remaining
rgmanager/src/resources/nfsclient.sh +1 -1
@@ -95,7 +95,7 @@
             <content type="string"/>
         </parameter>
 
-        <parameter name="nfslock" inherit="nfsexport%nfslock">
+        <parameter name="nfslock" inherit="service%nfslock">
             <longdesc lang="en">
 	    	This tells us whether the service in question has the
 		NFS lock workarounds enabled.  If so, we always unexport
rgmanager/src/resources/nfsexport.sh +1 -1
@@ -98,7 +98,7 @@
 	    <content type="string"/>
         </parameter>
 
-        <parameter name="nfslock" inherit="nfslock">
+        <parameter name="nfslock" inherit="service%nfslock">
             <longdesc lang="en">
                 If you can see this, your GUI is broken.
 		This inherits an unspecified nfslock parameter so that
rgmanager/src/utils/clulog.c +6 -0
@@ -123,6 +123,12 @@
     /* Add two bytes for linefeed and NULL terminator */
     len = strlen(argv[argc-1]) + 2;
     logmsg = (char*)malloc(strlen(argv[argc-1])+2);
+    if (logmsg == NULL) {
+        fprintf(stderr,
+            "clulog: malloc fail err=%d\n", errno);
+        exit(0);
+    }
+
     snprintf(logmsg, len, "%s\n", argv[argc-1]);
 
     if (!cmdline_loglevel) {