You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB

From e334f036ab02ec6cdf4cf463e26d4f32e592f15c Mon Sep 17 00:00:00 2001
From: David Vossel <dvossel@redhat.com>
Date: Fri, 15 Aug 2014 11:03:36 -0500
Subject: [PATCH] High: exportfs: support exit reason string
---
heartbeat/exportfs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/heartbeat/exportfs b/heartbeat/exportfs
index 471da24..3f91037 100755
--- a/heartbeat/exportfs
+++ b/heartbeat/exportfs
@@ -239,7 +239,7 @@ exportfs_monitor ()
ocf_log info "Directory ${OCF_RESKEY_directory} is not exported to ${OCF_RESKEY_clientspec} (stopped)."
return $OCF_NOT_RUNNING;;
*)
- ocf_log err "Unable to determine export status for ${OCF_RESKEY_directory}."
+ ocf_exit_reason "Unable to determine export status for ${OCF_RESKEY_directory}."
return $OCF_ERR_GENERIC;;
esac
}
@@ -340,7 +340,7 @@ exportfs_stop ()
ocf_log info "Un-exported file system"
return $OCF_SUCCESS
else
- ocf_log err "Failed to un-export file system"
+ ocf_exit_reason "Failed to un-export file system"
exit $OCF_ERR_GENERIC
fi
}
@@ -348,7 +348,7 @@ exportfs_stop ()
exportfs_validate_all ()
{
if [ ! -d $OCF_RESKEY_directory ]; then
- ocf_log err "$OCF_RESKEY_directory does not exist or is not a directory"
+ ocf_exit_reason "$OCF_RESKEY_directory does not exist or is not a directory"
return $OCF_ERR_INSTALLED
fi
}
--
1.8.4.2