summaryrefslogtreecommitdiffstats
path: root/support/nfs/nfs_mntent.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-08-03 13:07:37 -0400
committerSteve Dickson <steved@redhat.com>2016-08-03 14:24:47 -0400
commit8cd75bc7b179294347f88baa25e12df0461d8f29 (patch)
tree2d10f04845a9cc448ca1fc585a6c4e8fc14083f0 /support/nfs/nfs_mntent.c
parent89dff32a664e0b8a7777156e642d31e2dfa52e71 (diff)
downloadnfs-utils-8cd75bc7b179294347f88baa25e12df0461d8f29.tar.gz
nfs-utils-8cd75bc7b179294347f88baa25e12df0461d8f29.tar.xz
nfs-utils-8cd75bc7b179294347f88baa25e12df0461d8f29.zip
mount: don't treat temporary name resolution failure as permanent
If getaddrinfo() returns EAI_AGAIN, we shouldn't just give up, but should continue normal retries as the nameserver may be unavailable for the same reason as the NFS server. So move the getaddrinfo() call from nfs_validate_options() into nfs_try_mount() which is always called soon after, except in the 'remount' case when we don't want it anyway. If EAI_AGAIN is returned, set errno to EAGAIN and allow this to be a temporary failure. Otherwise report error and set errno to EALREADY so no further message is given. Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/nfs_mntent.c')
0 files changed, 0 insertions, 0 deletions