[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] Return error proper error code for pacemaker



Fix for bz#709400 - Return an error code useful for pacemaker in fs agent.

Matches the behavior of the upstream heartbeat agent.
>From e96a1afa19ea98a6c9b2f0f53318e1e93d4a1f8c Mon Sep 17 00:00:00 2001
From: Chris Feist <cfeist redhat com>
Date: Wed, 20 Jul 2011 14:26:51 -0500
Subject: [PATCH] rgmanager: Return error proper error code for ocf

---
 rgmanager/src/resources/utils/fs-lib.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/resources/utils/fs-lib.sh b/rgmanager/src/resources/utils/fs-lib.sh
index bc9ff31..38c242d 100644
--- a/rgmanager/src/resources/utils/fs-lib.sh
+++ b/rgmanager/src/resources/utils/fs-lib.sh
@@ -892,7 +892,7 @@ do_monitor() {
 	if [ -z "$dev" ]; then
 			ocf_log err "\
 start_filesystem: Could not match $OCF_RESKEY_device with a real device"
-			return $OCF_ERR_ARGS
+			return $OCF_NOT_RUNNING
 	fi
 
 	is_mounted "$dev" "${OCF_RESKEY_mountpoint}"
-- 
1.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]