From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 25 00:56:17 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B54B106566B for ; Mon, 25 Aug 2008 00:56:17 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id 43D1B8FC1E for ; Mon, 25 Aug 2008 00:56:16 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so893263pyb.10 for ; Sun, 24 Aug 2008 17:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=pg51wdpPaxNQXPO8THAcHIpg3LT1nlQ8sbVaXYegVNk=; b=XCs8s00u0RHl9YaeRdFk30G/VZmr6IWD0/LldMx1MZ7koeIXbw1ajpt3nFMo2GhP4F oZG+o6yqFCjLNfyh1nar/cH5e1idACIyAQ71we+PMCktscTfhHV8R/zICHIJEHkXePXT u+SN3eJDdWnaoOMp/W7dsXNqjlOKMOj71L30E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=nTmSO/dM62SNpVNE48tKoDgDgrjrkaOmaa4ErAASJt1yC/MGsizn3PouBTKrha7tOT 06/ApSDB0IKE4p0MXngvPDbLPvZiqHv3SJAcAvVyWb1HvooidVFJ0C4x8Qaw0Gyk3sL4 nf5/ojlqHKWQFY4wHaFsFpVHQbgxt2ZDuNRfw= Received: by 10.114.25.19 with SMTP id 19mr2851041way.225.1219625776053; Sun, 24 Aug 2008 17:56:16 -0700 (PDT) Received: from ?192.168.10.3? ( [99.139.51.19]) by mx.google.com with ESMTPS id v25sm5445831wah.36.2008.08.24.17.56.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 24 Aug 2008 17:56:14 -0700 (PDT) Message-Id: <16CD890F-7E92-4C0C-AA21-D7EA06E764DD@gmail.com> From: Garrett Cooper To: Manolis Kiagias In-Reply-To: <200808242230.m7OMU6hJ024667@freefall.freebsd.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Sun, 24 Aug 2008 17:58:03 -0700 References: <200808242230.m7OMU6hJ024667@freefall.freebsd.org> X-Mailer: Apple Mail (2.926) Cc: freebsd-bugs@FreeBSD.org Subject: Re: misc/126806: exports documentation incorrect or X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 00:56:17 -0000 On Aug 24, 2008, at 3:30 PM, Manolis Kiagias wrote: > The following reply was made to PR misc/126806; it has been noted by > GNATS. > > From: Manolis Kiagias > To: Garrett Cooper > Cc: freebsd-gnats-submit@FreeBSD.org > Subject: Re: misc/126806: exports documentation incorrect or > Date: Mon, 25 Aug 2008 01:05:53 +0300 > > 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. Ok, now I see what you / the manpage meant. Trying my experiment again: optimus# cat /etc/exports /scratch -alldirs -maproot=nobody /store -alldirs -maproot=nobody /boot /etc -maproot=nobody optimus# killall -HUP mountd optimus# showmount -e Exports list on localhost: /store Everyone /scratch Everyone /etc Everyone /boot Everyone Things work as expected. Maybe something should be mentioned in the manpage (comment to the EXAMPLES section under that item). Sometimes people go straight to the examples without reading the full text. Posting a diff with comments soon. -Garrett