FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 04-07-2011, 01:45 PM
Lon Hohberger
 
Default ras / RHEL5: Trim trailing slash for nfs clients

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 <lhh@redhat.com>
---
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
 
Old 04-07-2011, 04:59 PM
"Fabio M. Di Nitto"
 
Default ras / RHEL5: Trim trailing slash for nfs clients

ACK

On 04/07/2011 03:45 PM, Lon Hohberger wrote:
> 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 <lhh@redhat.com>
> ---
> 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"
 

Thread Tools




All times are GMT. The time now is 10:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org