Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 1997 20:23:35 GMT
From:      Peter Radcliffe <pir@pir.net>
To:        davidn@unique.usn.blaze.net.au
Cc:        bugs@freebsd.org
Subject:   Re: bin/2430: mountd stops on loading if subnet mask is not defined in /etc/networks
Message-ID:  <199701092023.UAA00374@pir.net>

next in thread | raw e-mail | index | archive | help
> >Number:         2430
> >Category:       bin
> >Synopsis:       mountd stops on loading if subnet mask is not defined in /etc/networks
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    freebsd-bugs
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Thu Jan  9 05:40:00 PST 1997
> >Last-Modified:
> >Originator:     David Nugent - davidn@blaze.net.au
> >Organization:
> Unique Computing, Melbourne, Australia
> >Release:        FreeBSD 3.0-CURRENT i386
> >Environment:
>
> 	Also occurs with 2.2-ALPHA and 2.2-BETA.
> 	NFS server enabled in /etc/sysconfig.
> 	/etc/exports uses -network and -mask options.
>
> >Description:
>
> 	When /etc/exports contains an export for a subnet (example
> 	follows), /etc/rc freezes until ^C is hit (causing mountd
> 	not to load) if the appropriate subnet mask is not defined
> 	in /etc/networks.
>
> e.g.
> 	/usr/src -alldirs -maproot=0:0 -network=203.17.53.16 -mask 255.255.255.240
>
> >How-To-Repeat:
>
> 	Comment out your subnet mask in /etc/networks, make sure
> 	nfs server is enabled in /etc/sysconfig, reboot, watch
> 	/etc/rc stop as it attempts to load /sbin/mountd.

I've just come across this one, from my ktracing it seems to be trying
to do a DNS lookup on the network, which will fail fairly quickly if
your configured nameservers are relatively fast and you don't have lots
of things in your resolv.conf search path.

I'm not 100% sure about it, because as soon as I found my rfc defined
private network export was failing when the modem line wasn't up and
traced it down to the network not being in /etc/networks I stopped
looking at it.

_If_ it is trying a DNS lookup on the operand of a -network, this is broken
IMO.

Peter.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701092023.UAA00374>