Bug 217147 - warning message due to trailing slash in fs.sh:isMounted()
Summary: warning message due to trailing slash in fs.sh:isMounted()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: rgmanager
Version: 4
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Lon Hohberger
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-24 11:57 UTC by Navid Sheikhol-Eslami
Modified: 2009-04-16 20:21 UTC (History)
1 user (show)

Fixed In Version: RHBA-2007:149
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-06-21 16:15:03 UTC
Embargoed:


Attachments (Terms of Use)
patch that makes the path comparison a bit smarter (696 bytes, patch)
2006-11-24 11:57 UTC, Navid Sheikhol-Eslami
no flags Details | Diff

Description Navid Sheikhol-Eslami 2006-11-24 11:57:25 UTC
Description of problem:

src/resources/fs.sh is repeatedly printing out a confusing message in function
isMounted() when comparing two paths:

<warning> Device /dev/mapper/VolGroup01-LogVol01 is mounted on /mnt/storage
instead of /mnt/storage/

Version-Release number of selected component (if applicable):

rgmanager-1.9.54-1

How reproducible:

Specify a path with a trailing slash as a mount-point for a file-system resource.

<fs device="/dev/VolGroup01/LogVol01" force_fsck="0" force_unmount="1"
fsid="95145" fstype="ext3" mountpoint="/mnt/storage/" name="disko" options=""
self_fence="0"/>

Steps to Reproduce:
1.
2.
3.
  
Actual results:

Warning message is printed.

Expected results:

No warning message is printed, as the path is the same.

Additional info:

I'm attaching a small patch that strips out the trailing slash before comparing
the two strings.

Comment 1 Navid Sheikhol-Eslami 2006-11-24 11:57:25 UTC
Created attachment 142058 [details]
patch that makes the path comparison a bit smarter

Comment 2 Lon Hohberger 2006-12-13 18:29:03 UTC
Patch in CVS.


Note You need to log in before you can comment on or make changes to this bug.