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