diff options
author | Steve Dickson <steved@redhat.com> | 2011-12-05 09:48:46 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-12-05 09:48:46 -0500 |
commit | 6fbbb73f08a8f685a323b2d5221f3e8b87ebba68 (patch) | |
tree | 65131477a18799dc221c931b2504c5ba22f3b265 | |
parent | 24d0b823f10f9cae2eba9b22fb830dd8dc3fb15a (diff) | |
download | nfs-utils-6fbbb73f08a8f685a323b2d5221f3e8b87ebba68.tar.gz nfs-utils-6fbbb73f08a8f685a323b2d5221f3e8b87ebba68.tar.xz nfs-utils-6fbbb73f08a8f685a323b2d5221f3e8b87ebba68.zip |
mount.nfs: Background mounts failing on time out errors.
Mounting with the "-o v3,bg,proto=udp" options will
fail, instead of retrying, when the server is down.
The reason being nfs_rewrite_pmap_mount_options()
does not interrupt RPC timeouts correctly.
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/mount/stropts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index 4032bf3..d52e21a 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -540,6 +540,8 @@ nfs_rewrite_pmap_mount_options(struct mount_options *options) errno = EOPNOTSUPP; else if (rpc_createerr.cf_stat == RPC_AUTHERROR) errno = EACCES; + else if (rpc_createerr.cf_stat == RPC_TIMEDOUT) + errno = ETIMEDOUT; else if (rpc_createerr.cf_error.re_errno != 0) errno = rpc_createerr.cf_error.re_errno; return 0; |