Bug 217147

Summary: warning message due to trailing slash in fs.sh:isMounted()
Product: [Retired] Red Hat Cluster Suite Reporter: Navid Sheikhol-Eslami <navid>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: medium    
Version: 4CC: cluster-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007:149 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-21 16:15:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch that makes the path comparison a bit smarter none

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.