From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/group/gfs_controld main.c plock.c
Date: 9 Oct 2006 21:49:03 -0000 [thread overview]
Message-ID: <20061009214903.31911.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-10-09 21:48:58
Modified files:
group/gfs_controld: main.c plock.c
Log message:
add -p option to completely disable plocks/ckpts
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/main.c.diff?cvsroot=cluster&r1=1.15&r2=1.16
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/plock.c.diff?cvsroot=cluster&r1=1.21&r2=1.22
--- cluster/group/gfs_controld/main.c 2006/10/06 14:43:58 1.15
+++ cluster/group/gfs_controld/main.c 2006/10/09 21:48:57 1.16
@@ -12,7 +12,7 @@
#include "lock_dlm.h"
-#define OPTION_STRING "DPhVw"
+#define OPTION_STRING "DPhVwp"
#define LOCKFILE_NAME "/var/run/gfs_controld.pid"
struct client {
@@ -35,6 +35,7 @@
extern struct list_head mounts;
extern struct list_head withdrawn_mounts;
int no_withdraw;
+int no_plock;
int do_write(int fd, void *buf, size_t count)
@@ -566,6 +567,10 @@
plock_debug_opt = 1;
break;
+ case 'p':
+ no_plock = 1;
+ break;
+
case 'h':
print_usage();
exit(EXIT_SUCCESS);
--- cluster/group/gfs_controld/plock.c 2006/10/06 15:34:52 1.21
+++ cluster/group/gfs_controld/plock.c 2006/10/09 21:48:57 1.22
@@ -47,6 +47,7 @@
extern int our_nodeid;
static int plocks_online = 0;
extern int message_flow_control_on;
+extern int no_plock;
static SaCkptHandleT ckpt_handle;
static SaCkptCallbacksT callbacks = { 0, 0 };
@@ -275,12 +276,16 @@
SaAisErrorT err;
int rv;
+ if (no_plock)
+ goto control;
+
err = saCkptInitialize(&ckpt_handle, &callbacks, &version);
if (err == SA_AIS_OK)
plocks_online = 1;
else
log_error("ckpt init error %d - plocks unavailable", err);
+ control:
rv = open_control();
if (rv)
return rv;
next reply other threads:[~2006-10-09 21:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-09 21:49 teigland [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-14 20:20 [Cluster-devel] cluster/group/gfs_controld main.c plock.c teigland
2006-11-14 20:33 teigland
2006-11-14 21:31 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=20061009214903.31911.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.