Red Hat Bugzilla – Bug 217147
warning message due to trailing slash in fs.sh:isMounted()
Last modified: 2009-04-16 16:21:36 EDT
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):
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=""
Steps to Reproduce:
Warning message is printed.
No warning message is printed, as the path is the same.
I'm attaching a small patch that strips out the trailing slash before comparing
the two strings.
Created attachment 142058 [details]
patch that makes the path comparison a bit smarter
Patch in CVS.