Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main-src > by-pkgid > e536fc0c6270ec1d92a0fd41bb1f8360 > files > 28

rgmanager-2.0.52-28.el5_8.2.src.rpm

From 8d523d56d6d36b7b84ebafb923908a3a79b72938 Mon Sep 17 00:00:00 2001
From: Lon Hohberger <lhh@redhat.com>
Date: Tue, 15 Dec 2009 11:28:51 -0500
Subject: [PATCH] rgmanager: Fix erroneous bind mount warning in fs.sh

The previous patch b5be828615a2ed7bd95a3796d96f5cc536e2adc7
produced an incorrect error when mounting the file system.

Resolves: bz526286

Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
 rgmanager/src/resources/fs.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/resources/fs.sh b/rgmanager/src/resources/fs.sh
index 477391c..03cd59a 100755
--- a/rgmanager/src/resources/fs.sh
+++ b/rgmanager/src/resources/fs.sh
@@ -620,7 +620,7 @@ isMounted () {
 		fi
 	done < /proc/mounts
 
-	if [ $found -ne 0 ]; then
+	if [ $ret -eq $YES ] && [ $found -ne 0 ]; then
 		ocf_log warn "Device $dev is mounted on $poss_mp instead of $mp"
 	fi
 
-- 
1.6.2.5