public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - rgmanager: fix netfsclient cache handling
@ 2009-02-27 14:57 Lon Hohberger
0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-02-27 14:57 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=a112d0283da8dac133041b9bd0c1bcd3d0b905a5
Commit: a112d0283da8dac133041b9bd0c1bcd3d0b905a5
Parent: c0de9cfb54b5e3a8e0de4b95ae80d2ce5dae4aae
Author: Juanjo Villaplana <villapla@si.uji.es>
AuthorDate: Thu Feb 26 10:33:34 2009 -0500
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Fri Feb 27 09:55:35 2009 -0500
rgmanager: 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 e4267aa..0570a7b 100755
--- a/rgmanager/src/resources/nfsclient.sh
+++ b/rgmanager/src/resources/nfsclient.sh
@@ -390,13 +390,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
@@ -405,7 +405,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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-27 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 14:57 cluster: RHEL5 - rgmanager: fix netfsclient cache handling Lon Hohberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).