Bug 28469

Summary: mountd fails to export second mount point on same fs
Product: Base System Reporter: Mike Heffner <mikeh>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Mike Heffner freebsd_committer freebsd_triage 2001-06-28 05:20:00 UTC
Using the exports file in 'How-to-repeat' section, I'm unable to get both
mount points exported. Only the first one listed will succeed, the second
entry will fail with messages (switching the dir paths of course):

Jun 27 23:58:53 enterprise mountd[208]: can't change attributes for /usr/ports
Jun 27 23:58:53 enterprise mountd[208]: bad exports list line /usr/ports -maproot

It doesn't make any difference which one comes first, it's always the second
one listed that fails. If I comment one of them out, then everything works
-- but I only have the one mountpoint exported ;(

I believe these should both work, according to exports(5).

Fix: 

I don't know, haven't looked to deeply into it yet.
How-To-Repeat: Try to start, or reload, mountd with the following exports file:

/usr/local/fbsd -maproot=spock -network 192.168.100 -mask 255.255.255.0
/usr/ports -maproot=root -network 192.168.100 -mask 255.255.255.0

Only the first mountpoint succeeds, the second one will always fail.
Comment 1 dima 2001-06-28 05:50:49 UTC
Mike Heffner <mikeh@FreeBSD.org> writes:
> 
> >Number:         28469
> >Category:       bin
> >Synopsis:       mountd fails to export second mount point on same fs
> >How-To-Repeat:
> Try to start, or reload, mountd with the following exports file:
> 
> /usr/local/fbsd -maproot=spock -network 192.168.100 -mask 255.255.255.0
> /usr/ports -maproot=root -network 192.168.100 -mask 255.255.255.0
> 
> Only the first mountpoint succeeds, the second one will always fail.

How's your filesystem layout?  Are /usr/local/fbsd and /usr/ports on
the same filesystem?  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/networking.html#EXPORTS-ERRORS
Comment 2 mheffner 2001-06-28 05:57:07 UTC
On 28-Jun-2001 Dima Dorfman wrote:
| Mike Heffner <mikeh@FreeBSD.org> writes:
|> 
|> >Number:         28469
|> >Category:       bin
|> >Synopsis:       mountd fails to export second mount point on same fs
|> >How-To-Repeat:
|> Try to start, or reload, mountd with the following exports file:
|> 
|> /usr/local/fbsd -maproot=spock -network 192.168.100 -mask 255.255.255.0
|> /usr/ports -maproot=root -network 192.168.100 -mask 255.255.255.0
|> 
|> Only the first mountpoint succeeds, the second one will always fail.
| 
| How's your filesystem layout?  Are /usr/local/fbsd and /usr/ports on
| the same filesystem?  See:
| http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/networking.html#EXPORTS-E
| RRORS

Yea, I think I screwed up...hadn't noticed that FAQ. Thanks for pointing it out.

P.S. I'll close the pr up.


Mike

-- 
  Mike Heffner         <mheffner@[acm.]vt.edu>
  Fredericksburg, VA       <mikeh@FreeBSD.org>
Comment 3 Mike Heffner freebsd_committer freebsd_triage 2001-06-28 05:59:48 UTC
State Changed
From-To: open->closed

My own user error ;( 
For reference, there is a FAQ at: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/networking.html#EXPORTS-ERRORS 
describing the problem.