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 03-15-2011, 07:57 AM
"Fabio M. Di Nitto"
 
Default fs-lib: fix do_monitor device mapping

do_monitor needs to expand _device key to the real device
before performing checks

Resolves: rhbz#669832

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
rgmanager/src/resources/utils/fs-lib.sh | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/resources/utils/fs-lib.sh b/rgmanager/src/resources/utils/fs-lib.sh
index 4f242f7..7b933f8 100644
--- a/rgmanager/src/resources/utils/fs-lib.sh
+++ b/rgmanager/src/resources/utils/fs-lib.sh
@@ -866,7 +866,18 @@ do_stop() {


do_monitor() {
- is_mounted "${OCF_RESKEY_device}" "${OCF_RESKEY_mountpoint}"
+ #
+ # Get the device
+ #
+ real_device "$OCF_RESKEY_device"
+ dev="$REAL_DEVICE"
+ if [ -z "$dev" ]; then
+ ocf_log err "
+start_filesystem: Could not match $OCF_RESKEY_device with a real device"
+ return $OCF_ERR_ARGS
+ fi
+
+ is_mounted "$dev" "${OCF_RESKEY_mountpoint}"

if [ $? -ne $YES ]; then
ocf_log err "${OCF_RESOURCE_INSTANCE}: ${OCF_RESKEY_device} is not mounted on ${OCF_RESKEY_mountpoint}"
--
1.7.4
 
Old 03-15-2011, 12:22 PM
Lon Hohberger
 
Default fs-lib: fix do_monitor device mapping

On Tue, Mar 15, 2011 at 09:57:50AM +0100, Fabio M. Di Nitto wrote:
> do_monitor needs to expand _device key to the real device
> before performing checks

Looks right.

--
Lon Hohberger - Red Hat, Inc.
 

Thread Tools




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

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