From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 25 01:50:08 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E3D0106566C for ; Mon, 25 Aug 2008 01:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9288FC16 for ; Mon, 25 Aug 2008 01:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7P1o7qG042672 for ; Mon, 25 Aug 2008 01:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7P1o7uT042666; Mon, 25 Aug 2008 01:50:07 GMT (envelope-from gnats) Date: Mon, 25 Aug 2008 01:50:07 GMT Message-Id: <200808250150.m7P1o7uT042666@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Garrett Cooper Cc: Subject: Re: misc/126806: exports documentation incorrect or X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Garrett Cooper List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 01:50:08 -0000 The following reply was made to PR misc/126806; it has been noted by GNATS. From: Garrett Cooper To: Manolis Kiagias Cc: Garrett Cooper , freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/126806: exports documentation incorrect or Date: Sun, 24 Aug 2008 18:20:19 -0700 --Apple-Mail-3-801850719 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Aug 24, 2008, at 3:05 PM, Manolis Kiagias wrote: > Garrett Cooper wrote: >> >> optimus# cat /etc/exports /scratch -alldirs -maproot=nobody >> /store -alldirs -maproot=nobody >> /var /usr -alldirs -maproot=nobody >> >> What I got however was /var and /usr aren't being exported: >> >> optimus# showmount -e >> Exports list on localhost: >> /store Everyone >> /scratch Everyone >> >> According to /var/log/messages from syslog it was a bad "line" in >> exports: >> >> Aug 24 14:28:00 optimus mountd[686]: bad exports list line /var /usr >> >> > The problem is that you are trying to export *two different* > filesystems in one line: > > /var /usr -alldirs -maproot=nobody > > Have a better look at the man page: > > "In a mount entry, the first field(s) specify the directory path(s) > within > a server file system that can be mounted on by the corresponding > client(s)" > > The above would not work on a typical FreeBSD setup, where /usr and / > var are different filesystems > The example in the man page correctly shows two different mount > points inside the *same* filesystem: > > /usr /usr/local -maproot=0:10 friends > > If you were to write this as two different lines, it would work: > > /var -alldirs -maproot=nobody > /usr -alldirs -maproot=nobody > > I don't see a documentation problem here. Here's a proposed patch to highlight that some assumptions are made in the examples. Thanks, -Garrett --Apple-Mail-3-801850719 Content-Disposition: attachment; filename=exports.5.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="exports.5.diff" Content-Transfer-Encoding: 7bit --- exports.5.orig 2008-08-24 17:59:04.000000000 -0700 +++ exports.5 2008-08-24 18:11:55.000000000 -0700 @@ -296,6 +296,10 @@ .El .Sh EXAMPLES .Bd -literal -offset indent + +# IMPORTANT: Please read comments below for related assumptions +# about filesystems. + /usr /usr/local -maproot=0:10 friends /usr -maproot=daemon grumpy.cis.uoguelph.ca 131.104.48.16 /usr -ro -mapall=nobody --Apple-Mail-3-801850719 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-3-801850719--