Bug 206958 - rpc.statd not obeying -o switch
Summary: rpc.statd not obeying -o switch
Keywords:
Status: CLOSED DUPLICATE of bug 210283
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: nfs-utils
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Steve Dickson
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-18 14:29 UTC by Richard Cunningham
Modified: 2007-11-17 01:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-31 01:52:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to fix statd -o option (705 bytes, patch)
2006-10-25 09:12 UTC, Howard Johnson
no flags Details | Diff

Description Richard Cunningham 2006-09-18 14:29:40 UTC
Description of problem:
when rpc.statd is started with a -o option it is ignored and random port is used
instead

Version-Release number of selected component (if applicable):
# rpm -q nfs-utils
nfs-utils-1.0.6-70.EL4

How reproducible:
Start rpc.statd with a -o option and argument, look at netstat to see what
really happened

Steps to Reproduce:
1. pkill statd
2. rpc.statd -p 31002 -o 31003
  
Actual results:
# netstat -lep --numeric-ports |grep statd
tcp        0      0 *:31002                     *:*                        
LISTEN      root       861353     11065/rpc.statd
udp        0      0 *:641                       *:*                            
        root       861342     11065/rpc.statd
udp        0      0 *:31002


Expected results:
# netstat -lep --numeric-ports |grep statd
tcp        0      0 *:31002                     *:*                        
LISTEN      rpcuser    861567     11078/rpc.statd
udp        0      0 *:31002                     *:*                            
        rpcuser    861564     11078/rpc.statd
udp        0      0 *:31003                     *:*                            
        root       861556     11078/rpc.statd

Additional info:
This seems to work ok when using rpc.netstat from nfs-utils 1.0.9 
(http://prdownloads.sourceforge.net/nfs/nfs-utils-1.0.9.tar.gz)

Comment 1 Howard Johnson 2006-10-25 09:10:42 UTC
I've come across this too. Looks like upstream fixed it with this patch:

http://marc.theaimsgroup.com/?l=linux-nfs&m=110891787507544&w=2

This doesn't apply to the RHEL4 source. I'll attach a patch that works for me.

Comment 2 Howard Johnson 2006-10-25 09:12:14 UTC
Created attachment 139317 [details]
Patch to fix statd -o option

Comment 3 Steve Dickson 2006-10-31 01:52:43 UTC

*** This bug has been marked as a duplicate of 210283 ***


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