From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lon Hohberger Date: Thu, 7 Apr 2011 09:45:09 -0400 Subject: [Cluster-devel] [PATCH] ras / RHEL5: Trim trailing slash for nfs clients Message-ID: <1302183909-17267-1-git-send-email-lhh@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The exportfs command and/or rpc.mountd trim the trailing slashes when reporting things in /var/lib/nfs/etab, causing mismatch problems for the nfsclient resource agent. Resolves: rhbz#592624 Signed-off-by: Lon Hohberger --- rgmanager/src/resources/nfsclient.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/rgmanager/src/resources/nfsclient.sh b/rgmanager/src/resources/nfsclient.sh index 2aeee78..138370d 100755 --- a/rgmanager/src/resources/nfsclient.sh +++ b/rgmanager/src/resources/nfsclient.sh @@ -266,6 +266,8 @@ verify_path() return $OCF_ERR_ARGS fi + OCF_RESKEY_path="${OCF_RESKEY_path%/}" + [ -d "$OCF_RESKEY_path" ] && return 0 ocf_log err "$OCF_RESKEY_path is not a directory" -- 1.7.3.4