Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 11:42:38 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Incoming Mail List <mailist@whoweb.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: max mount points
Message-ID:  <20040708164237.GH57155@dan.emsphone.com>
In-Reply-To: <200407081559.i68FxZfO043201@whoweb.com>
References:  <200407081559.i68FxZfO043201@whoweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 08), Incoming Mail List said:
> Does FBSD enforce a maximum number of mounted file systems?  If so,
> is it configurable?

I haven't found anyplace that puts a hard limit on it, but you will hit
some internal limit eventually.  Try running this shell script:

 #! /bin/sh
 i=0
 mkdir /tmp/test
 cd /tmp/test
 while : ; do
  echo $i
  mkdir $i
  mount localhost:/ $i || break 
  i=$((i+1))
 done
 echo Removing mountpoints
 for i in * ; do echo $i ; umount $i ; rmdir $i ; done

At the 377th mount, I got this error:

 [udp] localhost:/: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak

If I restart mountd with the -n flag to allow use of unprivileged
ports, the error just changes:

 mount_nfs: /tmp/test/0377: Can't assign requested address

-- 
	Dan Nelson
	dnelson@allantgroup.com



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