fence-agents: master - fence_ipmilan: Correct return code for diag operation

Marek Grác marx at fedoraproject.org
Mon Apr 4 14:20:47 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=8a97abd04b8492310c1095413c5cf26bbf98e395
Commit:        8a97abd04b8492310c1095413c5cf26bbf98e395
Parent:        f31f957471dea5d955758db98226a727405248d7
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Mon Apr 4 15:19:57 2011 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Mon Apr 4 15:19:57 2011 +0200

fence_ipmilan: Correct return code for diag operation

Return code for diag operation should be 0.

Resolves: rhbz#655764
---
 fence/agents/ipmilan/ipmilan.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/fence/agents/ipmilan/ipmilan.c b/fence/agents/ipmilan/ipmilan.c
index 040babf..177d216 100644
--- a/fence/agents/ipmilan/ipmilan.c
+++ b/fence/agents/ipmilan/ipmilan.c
@@ -1195,6 +1195,15 @@ metaout:
 	
 	if (!strcasecmp(op, "monitor"))
           translated_ret = ret;
+        
+        if (!strcasecmp(op, "diaf")) {
+          /** .. but when a system receive the DIAG signal , it 
+           ** switches to a kdump kernel, but the machine is always
+           ** "on" during the dump phase. It only become temporarily
+           ** "off" at the end of the dump just before rebooting.
+           **/
+          translated_ret = 0;
+        }
 
 	return translated_ret;
 }


More information about the cluster-commits mailing list