From owner-freebsd-bugs Thu Jan 9 07:39:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA04891 for bugs-outgoing; Thu, 9 Jan 1997 07:39:54 -0800 (PST) Received: from george.lbl.gov (george-2.lbl.gov [131.243.2.12]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id HAA04886 for ; Thu, 9 Jan 1997 07:39:52 -0800 (PST) Received: (jin@localhost) by george.lbl.gov (8.6.10/8.6.5) id HAA21743; Thu, 9 Jan 1997 07:39:52 -0800 Date: Thu, 9 Jan 1997 07:39:52 -0800 From: "Jin Guojun[ITG]" Message-Id: <199701091539.HAA21743@george.lbl.gov> To: freebsd-bugs@freefall.freebsd.org, phk@critter.dk.tfs.com Subject: Re: bin/2430: mountd stops on loading if subnet mask is not defined in /etc/networks Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Poul-Henning Kamp wrote: > > 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 seen this too, very annoying. > I did NOT see such problems. Actually, I never made /etc/networks working to set netmask for class B subnets. I tried to use /etc/networks to set mask from 2.1.x to 2.2-x, I got no lucky at all. So, I have to use netmask flag explicitely in ifconfig command and -mask in /etc/exports file to do so. That the only problem I encounted for mountd is it must start at boot time. e.g., if there was no /etc/exports exist at boot time, then, add it after boot up, and try to start mountd at this time, entire file system will hang. -Jin