[Cluster-devel] cluster/group/gfs_controld main.c

teigland at sourceware.org teigland at sourceware.org
Tue Nov 14 20:37:28 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland at sourceware.org	2006-11-14 20:37:27

Modified files:
	group/gfs_controld: main.c 

Log message:
	Default plock rate limit of 10 instead of 0.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/main.c.diff?cvsroot=cluster&r1=1.19&r2=1.20

--- cluster/group/gfs_controld/main.c	2006/11/14 20:20:43	1.19
+++ cluster/group/gfs_controld/main.c	2006/11/14 20:37:27	1.20
@@ -15,6 +15,8 @@
 #define OPTION_STRING			"DPhVwpl:"
 #define LOCKFILE_NAME			"/var/run/gfs_controld.pid"
 
+#define DEFAULT_PLOCK_RATE_LIMIT 10
+
 struct client {
 	int fd;
 	char type[32];
@@ -38,7 +40,7 @@
 extern struct list_head withdrawn_mounts;
 int no_withdraw;
 int no_plock;
-uint32_t plock_rate_limit;
+uint32_t plock_rate_limit = DEFAULT_PLOCK_RATE_LIMIT;
 
 
 int do_write(int fd, void *buf, size_t count)
@@ -595,6 +597,7 @@
 	printf("  -P	       Enable plock debugging\n");
 	printf("  -p	       Disable plocks\n");
 	printf("  -l <limit>   Limit the rate of plock operations\n");
+	printf("               Default is %d, set to 0 for no limit\n", DEFAULT_PLOCK_RATE_LIMIT);
 	printf("  -w	       Disable withdraw\n");
 	printf("  -h	       Print this help, then exit\n");
 	printf("  -V	       Print program version information, then exit\n");




More information about the Cluster-devel mailing list