cluster: STABLE3 - Cman: Handle corosync exit codes
Jan Friesse
honzaf at fedoraproject.org
Wed Sep 29 10:24:26 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2197cb026309d18b864dd2eb10754b095090db40
Commit: 2197cb026309d18b864dd2eb10754b095090db40
Parent: c0259b307aa771dd6848bc6eaf4b1ad98b657d31
Author: Jan Friesse <jfriesse at redhat.com>
AuthorDate: Mon Sep 27 15:20:16 2010 +0200
Committer: Jan Friesse <jfriesse at redhat.com>
CommitterDate: Wed Sep 29 12:23:45 2010 +0200
Cman: Handle corosync exit codes
Resolves: rhbz#617247
---
cman/cman_tool/join.c | 32 +++++++++++++++++++-------------
1 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/cman/cman_tool/join.c b/cman/cman_tool/join.c
index 308d19b..60460d5 100644
--- a/cman/cman_tool/join.c
+++ b/cman/cman_tool/join.c
@@ -40,45 +40,51 @@ static const char *corosync_exit_reason(signed char status)
{
static char reason[256];
switch (status) {
- case -2:
+ case 1:
return "Could not determine UID to run as";
break;
- case -3:
+ case 2:
return "Could not determine GID to run as";
break;
- case -4:
+ case 3:
return "Error initialising memory pool";
break;
- case -5:
+ case 4:
return "Could not fork";
break;
- case -6:
+ case 5:
return "Could not bind to libais socket";
break;
- case -7:
+ case 6:
return "Could not bind to network socket";
break;
- case -8:
+ case 7:
return "Could not read security key for communications";
break;
- case -9:
+ case 8:
return "Could not read cluster configuration";
break;
- case -10:
+ case 9:
return "Could not set up logging";
break;
- case -11:
+ case 11:
return "Could not dynamically load modules";
break;
- case -12:
+ case 12:
return "Could not load and initialise object database";
break;
- case -13:
+ case 13:
return "Could not initialise all required services";
break;
- case -14:
+ case 14:
return "Out of memory";
break;
+ case 15:
+ return "Fatal error";
+ break;
+ case 16:
+ return "Required directory not present /var/lib/corosync.";
+ break;
default:
sprintf(reason, "Error, reason code is %d", status);
return reason;
More information about the cluster-commits
mailing list