From: rohara@sourceware.org <rohara@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/fence_node fence_node.c
Date: 10 Jul 2006 17:05:54 -0000 [thread overview]
Message-ID: <20060710170554.24022.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rohara at sourceware.org 2006-07-10 17:05:54
Modified files:
fence/fence_node: fence_node.c
Log message:
Added "self" parameter to dispatch_fence_agent.
Added "-s" option as way to pass name of current node.
This is needed for SCSI persistent reservation (fence_scsi).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/fence_node/fence_node.c.diff?cvsroot=cluster&r1=1.6&r2=1.7
--- cluster/fence/fence_node/fence_node.c 2006/07/07 20:01:17 1.6
+++ cluster/fence/fence_node/fence_node.c 2006/07/10 17:05:53 1.7
@@ -20,7 +20,7 @@
#include "copyright.cf"
#include "ccs.h"
-#define OPTION_STRING ("hOuV")
+#define OPTION_STRING ("hOs:uV")
#define die(fmt, args...) \
do \
@@ -34,7 +34,7 @@
static char *prog_name;
static int force;
-int dispatch_fence_agent(int cd, char *victim);
+int dispatch_fence_agent(int cd, char *victim, char *self);
static void print_usage(void)
{
@@ -46,6 +46,7 @@
printf("\n");
printf(" -h Print this help, then exit\n");
printf(" -O Force connection to CCS\n");
+ printf(" -s Name of current node\n");
printf(" -V Print program version information, then exit\n");
printf("\n");
}
@@ -54,6 +55,7 @@
{
int cont = 1, optchar, error, cd;
char *victim = NULL;
+ char *self = NULL;
prog_name = argv[0];
@@ -67,6 +69,10 @@
exit(EXIT_SUCCESS);
break;
+ case 's':
+ self = optarg;
+ break;
+
case 'O':
force = 1;
break;
@@ -116,7 +122,7 @@
goto fail;
}
- error = dispatch_fence_agent(cd, victim);
+ error = dispatch_fence_agent(cd, victim, self);
if (error)
goto fail_ccs;
next reply other threads:[~2006-07-10 17:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 17:05 rohara [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-10-29 5:48 [Cluster-devel] cluster/fence/fence_node fence_node.c fabbione
2006-12-01 19:57 rohara
2006-12-01 19:17 rohara
2006-07-07 20:01 teigland
2006-07-07 19:41 teigland
2006-07-07 19:40 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=20060710170554.24022.qmail@sourceware.org \
--to=rohara@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.