From nobody@FreeBSD.org  Wed Jun 27 21:11:41 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 42BB937B407
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Jun 2001 21:11:41 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.3/8.11.3) id f5S4BfB33010;
	Wed, 27 Jun 2001 21:11:41 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200106280411.f5S4BfB33010@freefall.freebsd.org>
Date: Wed, 27 Jun 2001 21:11:41 -0700 (PDT)
From: Mike Heffner <mikeh@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mountd fails to export second mount point on same fs
X-Send-Pr-Version: www-1.0

>Number:         28469
>Category:       bin
>Synopsis:       mountd fails to export second mount point on same fs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 27 21:20:00 PDT 2001
>Closed-Date:    Wed Jun 27 21:59:48 PDT 2001
>Last-Modified:  Wed Jun 27 22:10:03 PDT 2001
>Originator:     Mike Heffner
>Release:        4.3
>Organization:
>Environment:
4.3-STABLE FreeBSD 4.3-STABLE #3: Wed Jun 27 23:42:15 EDT 2001 i386
>Description:
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).
>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.
>Fix:
I don't know, haven't looked to deeply into it yet.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Wed Jun 27 21:59:48 PDT 2001 
State-Changed-Why:  
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. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28469 

From: Dima Dorfman <dima@unixfreak.org>
To: Mike Heffner <mikeh@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/28469: mountd fails to export second mount point on same fs 
Date: Wed, 27 Jun 2001 21:50:49 -0700

 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

From: Mike Heffner <mheffner@novacoxmail.com>
To: Dima Dorfman <dima@unixfreak.org>
Cc: freebsd-gnats-submit@FreeBSD.org,
	Mike Heffner <mikeh@FreeBSD.org>
Subject: Re: bin/28469: mountd fails to export second mount point on same
Date: Thu, 28 Jun 2001 00:57:07 -0400 (EDT)

 This message is in MIME format
 --_=XFMail.1.5.0.FreeBSD:20010628005707:405=_
 Content-Type: text/plain; charset=us-ascii
 
 
 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>
 
 
 --_=XFMail.1.5.0.FreeBSD:20010628005707:405=_
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE7OrkiFokZQs3sv5kRAkdwAKCJAPCAl4mjP+CSwDJ90zzXJngd4QCgmVyF
 7W/HmQQalarYFbSFQxfOo6E=
 =lwKK
 -----END PGP SIGNATURE-----
 
 --_=XFMail.1.5.0.FreeBSD:20010628005707:405=_--
 End of MIME message
>Unformatted:
