On Thu, 12 Nov 2009 14:23:22 -0500 Steve Dickson <SteveD@xxxxxxxxxx> wrote: > In some recent testing it appears nfsd fails to come up > when an non-loopback network interface is not configured. > This patch solves the problem. > > steved. > > commit 2905358524c0835311501bad04c521479b0525ff > Author: Steve Dickson <steved@xxxxxxxxxx> > Date: Thu Nov 12 14:16:12 2009 -0500 > > Remove the AI_ADDRCONFIG hint flag to getaddrinfo() when it's > call by nfsd to set up the file descriptors that are > sent to the kernel. The flag causes the getaddrinfo() > to fail, with EAI_NONAME, when there is not a non-loopback > network interface configured. > > Signed-off-by: Steve Dickson <steved@xxxxxxxxxx> > > diff --git a/utils/nfsd/nfssvc.c b/utils/nfsd/nfssvc.c > index 12d3253..b8028bb 100644 > --- a/utils/nfsd/nfssvc.c > +++ b/utils/nfsd/nfssvc.c > @@ -212,7 +212,7 @@ int > nfssvc_set_sockets(const int family, const unsigned int protobits, > const char *host, const char *port) > { > - struct addrinfo hints = { .ai_flags = AI_PASSIVE | AI_ADDRCONFIG }; > + struct addrinfo hints = { .ai_flags = AI_PASSIVE }; > > hints.ai_family = family; > Patch looks correct. I think AI_ADDRCONFIG is superfluous here. nfsd already limits what sockets it tries to hand off to the kernel based on the contents of /etc/netconfig so there should be no problem removing that flag. Acked-by: 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