Re: [PATCH] mount.nfs: ensure AF priority when mounting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 8 Nov 2011 12:51:21 +0800
Hamo <hamo.by@xxxxxxxxx> wrote:

> On Tue, Nov 8, 2011 at 11:57 AM, Chuck Lever <chuck.lever@xxxxxxxxxx> wrote:
> >
> > On Nov 7, 2011, at 10:14 PM, Hamo wrote:
> >
> >> On different architectures, getaddrinfo() may return different
> >> orders of address families. This may confuse the users.
> >
> > Isn't this controlled by /etc/gai.conf ?  I'm not sure we want mount.nfs to override that.
> >
> 
> After digging into this file, I found the order can be controlled by
> this file, but without it, the order is not predictable.
> Should we first try IPv6 then IPv4? This sounds reasonable.
> So now, I am also not sure should we override this. Waiting for the
> opinions from others.


I don't think we ought to try and do this in nfs-utils. I see no reason
that the architecture should have any effect at all on the sort order of
address families being returned. If there is, then that sounds like a
(libc?) bug on those arches.

-- 
Jeff Layton <jlayton@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux