From: lhh@sourceware.org <lhh@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager/src/resources fs.sh
Date: 13 Dec 2006 18:28:42 -0000 [thread overview]
Message-ID: <20061213182842.22839.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: lhh at sourceware.org 2006-12-13 18:28:41
Modified files:
rgmanager/src/resources: fs.sh
Log message:
Fix #217147; patch by Navid Sheikhol-Eslami (navid redhat com)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/fs.sh.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.18&r2=1.4.2.19
--- cluster/rgmanager/src/resources/fs.sh 2006/11/03 16:26:19 1.4.2.18
+++ cluster/rgmanager/src/resources/fs.sh 2006/12/13 18:28:41 1.4.2.19
@@ -496,6 +496,18 @@
#
+# trim_trailing_slash path
+#
+# Trim trailing slash from given path.
+#
+trim_trailing_slash() {
+ declare mpath=$1
+
+ echo $mpath | sed -e 's/\/*$//'
+}
+
+
+#
# isMounted device mount_point
#
# Check to see if the device is mounted. Print a warning if its not
@@ -523,6 +535,8 @@
do
#echo "spec=$1 dev=$dev tmp_dev=$tmp_dev"
tmp_dev=$(real_device $tmp_dev)
+ tmp_mp=$(trim_trailing_slash $tmp_mp)
+ mp=$(trim_trailing_slash $mp)
if [ -n "$tmp_dev" -a "$tmp_dev" = "$dev" ]; then
#
next reply other threads:[~2006-12-13 18:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-13 18:28 lhh [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-15 22:44 [Cluster-devel] cluster/rgmanager/src/resources fs.sh lhh
2008-01-15 22:34 lhh
2007-02-13 15:56 lhh
2007-02-13 15:55 lhh
2007-02-13 15:52 lhh
2007-02-13 15:51 lhh
2006-07-26 15:31 lhh
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=20061213182842.22839.qmail@sourceware.org \
--to=lhh@sourceware.org \
/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).