getport: Convert TCP connection refused to RPC_CANTRECV
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Jul 2009 20:27:54 +0000 (16:27 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 14 Jul 2009 20:27:54 +0000 (16:27 -0400)
commit682a9855b93a7d3545a26eea39a0895b9757cdcb
tree999b8536557e7a58ed5a8613009fbb43f5ff6564
parentaa633adcbe63b7539d23d7e0fb1342659cf22953
getport: Convert TCP connection refused to RPC_CANTRECV

In a similar vein to the timeout logic we just restored, a refused
TCP connection should be mapped to an equivalent UDP error code:
RPC_CANTRECV.

This is new behavior for TCP connections; the legacy mount command
appears to have simply failed immediately if a TCP connection was
refused during an rpcbind query.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/nfs/getport.c