Date: Thu, 7 Feb 2002 01:44:07 -0800 From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: Peter Pentchev <roam@ringlet.net> Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: misc/34666: Last entry in /etc/exports ignored Message-ID: <20020207014407.E2143@blossom.cjclark.org> In-Reply-To: <200202070830.g178U5s90546@freefall.freebsd.org>; from roam@ringlet.net on Thu, Feb 07, 2002 at 12:30:05AM -0800 References: <200202070830.g178U5s90546@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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)?
>
> <snip>
> Mount points for a filesystem may appear on multiple lines each with
> different sets of hosts and export options.
> <snip>
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.
--
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020207014407.E2143>
