cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Lon Hohberger <lhh@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] ras / RHEL5: Trim trailing slash for nfs clients
Date: Thu,  7 Apr 2011 09:45:09 -0400	[thread overview]
Message-ID: <1302183909-17267-1-git-send-email-lhh@redhat.com> (raw)

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



             reply	other threads:[~2011-04-07 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07 13:45 Lon Hohberger [this message]
2011-04-07 16:59 ` [Cluster-devel] [PATCH] ras / RHEL5: Trim trailing slash for nfs clients Fabio M. Di Nitto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1302183909-17267-1-git-send-email-lhh@redhat.com \
    --to=lhh@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).