linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Steve Dickson <steved@redhat.com>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 1/2 V2] mount.nfs: Continue to trying address when the server return EACCES
Date: Wed, 28 Nov 2012 09:40:12 -0500	[thread overview]
Message-ID: <50B6224C.1040405@RedHat.com> (raw)
In-Reply-To: <1354035684-15802-1-git-send-email-steved@redhat.com>



On 27/11/12 12:01, Steve Dickson wrote:
> With recent changes to the /etc/hosts file, the 'localhost'
> host name is now multiply defined as both an IPv4 address (127.0.01)
> and an IPv6 address (::1). This causes first address returned
> by getaddrinfo('localhost') to be the IPv6 address instead of
> the IPv4 address.
> 
> The change in the default 'localhost' address type causes
> existing exports using '127.0.0.1' to fail, because the
> '::1' address is tried first and fails. The problem is
> not all the addresses in the address list are being tried.
> 
> So this patch allows that address list to continue to be
> process when a 'EACCES' error is returned by the server.
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed...

steved.
> ---
>  utils/mount/stropts.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
> index 9b4197b..8ee3024 100644
> --- a/utils/mount/stropts.c
> +++ b/utils/mount/stropts.c
> @@ -666,6 +666,7 @@ static int nfs_try_mount_v3v2(struct nfsmount_info *mi)
>  		case EOPNOTSUPP:
>  		case EHOSTUNREACH:
>  		case ETIMEDOUT:
> +		case EACCES:
>  			continue;
>  		default:
>  			goto out;
> @@ -761,6 +762,7 @@ static int nfs_try_mount_v4(struct nfsmount_info *mi)
>  		case ECONNREFUSED:
>  		case EHOSTUNREACH:
>  		case ETIMEDOUT:
> +		case EACCES:
>  			continue;
>  		default:
>  			goto out;
> 

      parent reply	other threads:[~2012-11-28 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27 17:01 [PATCH 1/2 V2] mount.nfs: Continue to trying address when the server return EACCES Steve Dickson
2012-11-27 17:01 ` [PATCH 2/2 V2] mount.nfs: error message clean up Steve Dickson
2012-11-28 14:41   ` Steve Dickson
2012-11-28 14:40 ` Steve Dickson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50B6224C.1040405@RedHat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).