From jin@pesto.lbl.gov  Fri Dec 22 12:18:37 1995
Received: from pesto.lbl.gov (pesto.lbl.gov [128.3.196.67])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA16022
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Dec 1995 12:18:36 -0800 (PST)
Received: (from jin@localhost) by pesto.lbl.gov (8.6.12/8.6.12) id MAA28959; Fri, 22 Dec 1995 12:18:12 -0800
Message-Id: <199512222018.MAA28959@pesto.lbl.gov>
Date: Fri, 22 Dec 1995 12:18:12 -0800
From: "Jin Guojun[ITG]" <jin@pesto.lbl.gov>
Reply-To: jin@pesto.lbl.gov
To: FreeBSD-gnats-submit@freebsd.org
Subject: exports: Bad lines. mountd won't export FS
X-Send-Pr-Version: 3.2

>Number:         909
>Category:       kern
>Synopsis:       exports: Bad lines. mountd won't export FS
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 22 12:20:01 PST 1995
>Closed-Date:    Sat Dec 23 12:54:51 MET 1995
>Last-Modified:  Sat Dec 23 12:56:36 MET 1995
>Originator:     Jin Guojun[ITG]
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
/-------------- Jin Guojun ------------ v ---- Internet: g_jin@lbl.gov ----\
|	Imaging & Distributed Computing | Usenet: ucbvax!g_jin@lbl.gov	   |
|	Lawrence Berkeley Laboratory	| Bitnet:	--		   |
|	50B-2239, Berkeley, CA 94720	-  jin%george.lbl.gov@Csa3.LBL.Gov |
\--Ph#:(510) 486-7531 + Fax: 486-6363 --^--http://www-itg.lbl.gov/ITG.html-/
>Environment:

	2.1.0-RELEASE

>Description:

	There is no way to export two (2) subdirectories on a same
	files system.
	-----------------------------------------------------------------
	This is working when /usr/other is on /usr, and /usr/local is
	on a different file system:
# more /etc/fstab
/dev/wd0s2b              none            swap    sw 0 0
/dev/wd0a                /               ufs     rw 1 1
/dev/wd0s2e              /usr            ufs     rw 1 1
/dev/wd0s3e              /usr/local      ufs     rw 1 1
# more /etc/exports
/usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
/usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d

	-----------------------------------------------------------------
	This is not working:
# more /etc/fstab
/dev/wd0s2b              none            swap    sw 0 0
/dev/wd0a                /               ufs     rw 1 1
/dev/wd0s2e              /usr            ufs     rw 1 1
# more /etc/exports
/usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
/usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d

Dec 22 05:56:17 myname mountd[76]: Can't change attributes for /usr/local. 
Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall
Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall

	If changing the /etc/exports to
/usr -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
	then the clients can only mount entire /usr, but not /usr/local and
	/usr/other.
	-----------------------------------------------------------------


>How-To-Repeat:

	This can be repeated following above description.

>Fix:
	
	I hope this can be fixed. If this problem is the original
	design for the kernel and won't be resolved, please let me know.
	Thanks.

>Release-Note:
>Audit-Trail:

From: J Wunsch <j@uriah.heep.sax.de>
To: jin@pesto.lbl.gov
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/909: exports: Bad lines. mountd won't export FS
Date: Sat, 23 Dec 1995 10:36:14 +0100 (MET)

 As Jin Guojun[ITG] wrote:
 > 
 > 	There is no way to export two (2) subdirectories on a same
 > 	files system.
 
 > /usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
 > /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
 > 
 > Dec 22 05:56:17 myname mountd[76]: Can't change attributes for /usr/local. 
 > Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall
 > Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall
 
 Please, read the man page for exports(5).
 
 By the nature of how NFS exporting works, you can have only one set of
 attributes per physical file system.  Our exports enforces this by
 only allowing multiple subdirectories of a single physical file system
 if they appear in the same line:
 
 /usr/other /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Dec 23 12:54:51 MET 1995 
State-Changed-Why:  
Pilot error.  The behaviour is described in the man page of 
exports(5). 

>Unformatted:
