This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

resource-agents: master - resource-agents: fix netfsclient cachehandling


Gitweb:        http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=commitdiff;h=787c4e1893044a6a47473996cdb197d59c995445
Commit:        787c4e1893044a6a47473996cdb197d59c995445
Parent:        ae33db76636140289967c56ccf5835b386ff7bc0
Author:        Juanjo Villaplana <villapla@si.uji.es>
AuthorDate:    Thu Feb 26 10:33:34 2009 -0500
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu Feb 26 10:33:34 2009 -0500

resource-agents: fix netfsclient cache handling

Ensures correct removal of temporary file when client
caching is disabled.

Resolves: rhbz486329

Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
 rgmanager/src/resources/nfsclient.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rgmanager/src/resources/nfsclient.sh b/rgmanager/src/resources/nfsclient.sh
index a526cca..0437d32 100644
--- a/rgmanager/src/resources/nfsclient.sh
+++ b/rgmanager/src/resources/nfsclient.sh
@@ -383,13 +383,13 @@ status|monitor)
 	rv=$? 
 
 	if [ $rv -eq 0 ]; then
-		[ -z "$OCF_RESKEY_service_name" ] && rm -f $tmpfn
+		[ "$OCF_RESKEY_use_cache" = "1" ] || rm -f $tmpfn
 		exit 0
 	fi
 
 	declare OCF_RESKEY_target_tmp=$(clufindhostname -i "$OCF_RESKEY_target")
 	if [ $? -ne 0 ]; then
-		[ -z "$OCF_RESKEY_service_name" ] && rm -f $tmpfn
+		[ "$OCF_RESKEY_use_cache" = "1" ] || rm -f $tmpfn
 		ocf_log err "nfsclient:$OCF_RESKEY_name is missing!"
 		exit 1
 	fi
@@ -398,7 +398,7 @@ status|monitor)
 		"^${OCF_RESKEY_path}[\t ]*.*${OCF_RESKEY_target_tmp}" 
 	rv=$? 
 
-	[ -z "$OCF_RESKEY_service_name" ] && rm -f $tmpfn
+	[ "$OCF_RESKEY_use_cache" = "1" ] || rm -f $tmpfn
 	if [ $rv -eq 0 ]; then
 		exit 0
 	fi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]