From: Lon Hohberger <lhh@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] fence: Make fence_node return 2 for no fencing
Date: Tue, 23 Jun 2009 11:11:16 -0400 [thread overview]
Message-ID: <1245769876-9815-1-git-send-email-lhh@redhat.com> (raw)
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
fence/fence_node/fence_node.c | 9 ++++++++-
fence/libfence/agent.c | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/fence/fence_node/fence_node.c b/fence/fence_node/fence_node.c
index 98d67c6..1a56078 100644
--- a/fence/fence_node/fence_node.c
+++ b/fence/fence_node/fence_node.c
@@ -225,7 +225,14 @@ int main(int argc, char *argv[])
rv = EXIT_SUCCESS;
}
} else {
- if (error) {
+ if (error == -2) {
+ fprintf(stderr, "fence %s failed: no fencing defined\n",
+ victim);
+ logt_print(LOG_ERR,
+ "fence %s failed: no fencing defined\n",
+ victim);
+ rv = 2;
+ } else if (error) {
fprintf(stderr, "fence %s failed\n", victim);
logt_print(LOG_ERR, "fence %s failed\n", victim);
rv = EXIT_FAILURE;
diff --git a/fence/libfence/agent.c b/fence/libfence/agent.c
index 57163aa..49e6795 100644
--- a/fence/libfence/agent.c
+++ b/fence/libfence/agent.c
@@ -307,7 +307,7 @@ int fence_node(char *victim, struct fence_log *log, int log_size,
left--;
}
count++;
- error = -1;
+ error = -2; /* No fencing */
goto out;
}
--
1.6.0.6
reply other threads:[~2009-06-23 15:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1245769876-9815-1-git-send-email-lhh@redhat.com \
--to=lhh@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox