]> git.decadent.org.uk Git - nfs-utils.git/commit
errno not be set on RPC errors nfs-utils-1-2-1-rc2
authorSteve Dickson <steved@redhat.com>
Wed, 15 Jul 2009 11:58:22 +0000 (07:58 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 15 Jul 2009 11:58:22 +0000 (07:58 -0400)
commit3339c1f73c05fc9b5cf51e14a2033ec38f671334
tree32cf87800fdd14d63495611c490facc5e48a1ae4
parentb46dc42505da799a05a3a5e8f004b308f6b9eef7
errno not be set on RPC errors

Changed both nfs_advise_umount() and nfs_gp_ping() to
set the errno by calling CLNT_GETERR() after a CLNT_CALL()
error. Also added code to rpc_strerror() that will log
the errno value, when set, via strerror().

These changes added essential information to the error message
making it much easier to detect errorsuch as "Connection refused"

Signed-off-by: Steve Dickson <steved@redhat.com>
support/nfs/getport.c
utils/mount/error.c
utils/mount/network.c