From owner-freebsd-questions Tue May 4 19:10:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 002481561C for ; Tue, 4 May 1999 19:10:30 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id WAA00620; Tue, 4 May 1999 22:10:30 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199905050210.WAA00620@cc942873-a.ewndsr1.nj.home.com> Subject: Re: NFSD limitations? In-Reply-To: from Doug White at "May 4, 99 03:04:19 pm" To: dwhite@resnet.uoregon.edu (Doug White) Date: Tue, 4 May 1999 22:10:30 -0400 (EDT) Cc: asv1@crydee.sai.msu.ru, questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug White wrote, > On Mon, 3 May 1999, Sergey Ayukov (mailing lists) wrote: > > > On Mon, 3 May 1999, Doug White 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 when you have multiple subdirs on one file system you want to export, but not all. What the above means is that you can say, /vol1/ftp /vol1/http /vo1/ftp/.1 -options hosts To specify _just_ those dirs. The key is that you cannot specify the same host for the same filesystem on multiple lines. Multiple subdirectories on one line is fine. A different set of hosts on different lines for one filesystem is fine too... at least that's how it is supposed to work. Is that what you were asking? Is that what you tried and it did not work? -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message