From owner-freebsd-bugs Thu Feb 7 18:10:13 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from badboy.mail.pas.earthlink.net (badboy.mail.pas.earthlink.net [207.217.120.20]) by hub.freebsd.org (Postfix) with ESMTP id 2887837B41C for ; Thu, 7 Feb 2002 18:10:06 -0800 (PST) Received: from hawk.mail.pas.earthlink.net ([207.217.120.22]) by badboy.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16Ymif-0007mp-00 for freebsd-bugs@freebsd.org; Thu, 07 Feb 2002 03:28:01 -0800 Received: from dialup-209.245.135.248.dial1.sanjose1.level3.net ([209.245.135.248] helo=blossom.cjclark.org) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16YmiE-0004yY-00 for freebsd-bugs@FreeBSD.ORG; Thu, 07 Feb 2002 03:27:35 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g17BOXf05820; Thu, 7 Feb 2002 03:24:33 -0800 (PST) (envelope-from cjc) Date: Thu, 7 Feb 2002 03:24:32 -0800 From: "Crist J. Clark" To: Peter Pentchev Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: misc/34666: Last entry in /etc/exports ignored Message-ID: <20020207032432.H2143@blossom.cjclark.org> References: <200202070830.g178U5s90546@freefall.freebsd.org> <20020207014407.E2143@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020207014407.E2143@blossom.cjclark.org>; from cjc@FreeBSD.ORG on Thu, Feb 07, 2002 at 01:44:07AM -0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Feb 07, 2002 at 01:44:07AM -0800, Crist J. Clark wrote: > On Thu, Feb 07, 2002 at 12:30:05AM -0800, Peter Pentchev wrote: > [snip] > > > Yes, I am trying to do that. The first two lines work. Further > > experimentation reveals that the third and higher mount points for > > /usr fail. I had originally had only 3 mount points, hence the > > reference to "last" in my original post. I added the /usr/test entry > > for testing. > > > > Here is my /etc/exports. > > > > /usr/src -ro yoda > > /usr/obj -ro yoda > > /usr/ports -maproot=root yoda > > /usr/test -ro yoda > > > > Perhaps I misunderstood exports(5)? > > > > > > Mount points for a filesystem may appear on multiple lines each with > > different sets of hosts and export options. > > > > Yes, the problem is exactly what everyone guessed. The line you quote > doesn't appy since all exports for the one filesystem are for the same > host. I assume /usr is the filesystem and all the others are > directories in it. You want something like, > > /usr/src /usr/obj /usr/ports /usr/test -ro yoda > > However, note that /usr/ports is not '-maproot=root'. You may make > them all '-maproot=root' if you wish. You can only specify one set of > options for a filesystem and a given host/net. The attributions on this got all messed up. What I am quoting was written by the originator, not Peter. I bounced the originator a copy of the mail. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message