Bug 467686 - [PATCH] Fix rhel5 fs.sh fuser parsing
Summary: [PATCH] Fix rhel5 fs.sh fuser parsing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rgmanager
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lon Hohberger
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-20 09:01 UTC by Simone Gotti
Modified: 2009-04-16 22:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 20:56:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix fuser parsing in fs.sh (should also be applied to clusterfs.sh and netfs.sh) (473 bytes, patch)
2008-10-20 09:03 UTC, Simone Gotti
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0101 0 normal SHIPPED_LIVE rgmanager bug-fix and enhancements update 2009-01-20 16:04:34 UTC

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


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