Skip to contentSkip to conversation

ras / RHEL5: Trim trailing slash for nfs clients

PATCH New Lon Hohberger 2 participants 2 messages Apr 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 rgmanager/src/resources/nfsclient.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
rgmanager/src/resources/nfsclient.sh +2 -0
index 2aeee78..138370d 100755
@@ -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"
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 ras / RHEL5: Trim trailing slash for nfs clients

ACK

Quoted 24 lines · Lon Hohberger

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

---
 rgmanager/src/resources/nfsclient.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
rgmanager/src/resources/nfsclient.sh +2 -0
index 2aeee78..138370d 100755
@@ -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"