From owner-freebsd-questions Tue May 4 23:42: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from crydee.sai.msu.ru (crydee.sai.msu.ru [195.208.220.203]) by hub.freebsd.org (Postfix) with ESMTP id CB89814E93 for ; Tue, 4 May 1999 23:41:47 -0700 (PDT) (envelope-from asv1@crydee.sai.msu.ru) Received: from localhost (asv1@localhost) by crydee.sai.msu.ru (8.9.2/8.9.2) with ESMTP id JAA25971 for ; Wed, 5 May 1999 09:44:01 +0400 (MSD) (envelope-from asv1@crydee.sai.msu.ru) Date: Wed, 5 May 1999 09:44:01 +0400 (MSD) From: "Sergey Ayukov (mailing lists)" To: questions@FreeBSD.ORG Subject: Re: NFSD limitations? In-Reply-To: <199905050210.WAA00620@cc942873-a.ewndsr1.nj.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 4 May 1999, Crist J. Clark wrote: > > > > > 1) I can't export directories which are not local mount point. E.g., I > > > > > have disk mounted on /vol1 and want to export only /vol1/ftp . Is this > > > > > possible (if I try to export /vol1/ftp/.1, mountd complains about wrong > > > > > mount point)? Even worse, I need to export /var/spool for pcnsfd printing, > > > > > but don't want to export entire /var. In my case, /var is on separate > > > > > partition. > > > > > > > > It can be done. Try using the '-alldirs' flag first; this will let you > > > > mount /vol1 and any subtree, including /vol1/ftp. > > > > > > No, my point was to limit the export. In other words, I don't want to > > > export entire /var or /vol1, just parts of them (which are not > > > mountpoints). > > > > I think there is a way to do this using overlapping specifications (/usr > > then /usr/local), but I'm not sure. > > The 'man exports' page is by no means a model of clarity. But focus > on, > > Each line in the file (other than comment lines that begin with a #) > specifies the mount point(s) and export flags within one local server > filesystem for one or more hosts. A host may be specified only once for > each local filesystem on the server and there may be only one default en- > try for each server filesystem that applies to all other hosts. > > If you want to export /var/spool, just, > > /var/spool -options hosts > > Nothing complicated there. However, what people have trouble with is It does not work! mountd refuses to export it (note that I have local filesystem mounted under /var, and I can export /var, but not /var/spool). I am running 3.1-RELEASE. --------------------------------------------------------------------------- Dr. Sergey Ayukov Sternberg Astronomical Institute http://www.ayukov.com Moscow, Russia http://crydee.sai.msu.ru/index-asv.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message