All of lore.kernel.org
 help / color / mirror / Atom feed
From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/group/gfs_controld main.c
Date: 14 Nov 2006 20:37:28 -0000	[thread overview]
Message-ID: <20061114203728.9788.qmail@sourceware.org> (raw)

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");



             reply	other threads:[~2006-11-14 20:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-14 20:37 teigland [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-12-05 17:26 [Cluster-devel] cluster/group/gfs_controld main.c teigland
2006-12-05 17:26 teigland
2006-12-05 16:59 teigland
2006-12-01 15:29 teigland
2006-12-01 15:29 teigland
2006-12-01 15:28 teigland
2006-11-28 20:52 teigland
2006-11-28 20:52 teigland
2006-11-28 20:52 teigland
2006-11-27 22:43 teigland
2006-11-27 22:43 teigland
2006-11-27 22:42 teigland
2006-11-15 14:32 teigland
2006-11-14 21:06 teigland
2006-10-20 19:32 teigland
2006-10-06 14:43 teigland
2006-08-31 18:46 teigland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061114203728.9788.qmail@sourceware.org \
    --to=teigland@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.