Bug 467686

Summary: [PATCH] Fix rhel5 fs.sh fuser parsing
Product: Red Hat Enterprise Linux 5 Reporter: Simone Gotti <simone.gotti>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: cfeist, cluster-maint, cmarthal, edamato, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 20:56:47 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
Fix fuser parsing in fs.sh (should also be applied to clusterfs.sh and netfs.sh) none

Description Simone Gotti 2008-10-20 09:01:24 UTC
Description of problem:

fuser from rhel5 has different output respect the one from rhel4 so fs.sh needs a little change.

Looks like the 2 differences are:

*) mountpoint has an ending colon
*) Everything except the pid file is printed to sdterr instead of stdout


Example:

RHEL4:

[root@node01-rhel4 mnt]# fuser -vm /mnt/

                     USER        PID ACCESS COMMAND
/mnt/                root       8398 ..c..  bash


[root@node01-rhel4 mnt]# fuser -vm /mnt/ 2>/dev/null 

                     USER        PID ACCESS COMMAND
/mnt/                root       8398 ..c..  bash



rhel5:

[root@node01-rhel5 mnt]# fuser -vm /mnt/

                     USER        PID ACCESS COMMAND
/mnt/:               root      24128 ..c.. bash


[root@node01-rhel5 mnt]# fuser -vm /mnt/ 2>/dev/null 
 24128


Attached a little patch that should fix the fuser parsing in rhel5 rgmanager fs.sh. Probably the same patch should also be applied to clusterfs.sh and netfs.sh.

Comment 1 Simone Gotti 2008-10-20 09:03:18 UTC
Created attachment 320854 [details]
Fix fuser parsing in fs.sh (should also be applied to clusterfs.sh and netfs.sh)

Comment 2 Lon Hohberger 2008-10-20 17:10:50 UTC
Pushed.

Comment 3 Chris Feist 2008-10-20 19:16:36 UTC
Setting flags for inclusion.

Comment 10 errata-xmlrpc 2009-01-20 20:56:47 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0101.html