From owner-freebsd-questions Tue May 4 23:28:31 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 5A98614BF7 for ; Tue, 4 May 1999 23:28:02 -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 JAA25879 for ; Wed, 5 May 1999 09:30:15 +0400 (MSD) (envelope-from asv1@crydee.sai.msu.ru) Date: Wed, 5 May 1999 09:30:15 +0400 (MSD) From: "Sergey Ayukov (mailing lists)" To: questions@FreeBSD.ORG Subject: Re: NFSD limitations? In-Reply-To: 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, 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. It does not work. I have tried /var c.room44.net /var/spool -alldirs -network 195.208.220 (room44.net is 10.0.0.0 network, on crossover cable) and mountd complains: could not remount /var/spool: Invalid argument bad exports list line /var/spool -alldirs -network 195.208.220 There were no more references to /var in the /etc/exports. It is possible to do the following: /var /var/spool -network 195.208.220 but then my /var gets exported to the entire network and it is not what I want! > > > > 2) NFS mount does not seem to go through local filesystems. E.g., I have > > > > another disk mounted on /vol1/ftp/.1 and want export of /vol1/ftp to > > > > transparently "bleed" through to /vol1/ftp/.1 ? > > > > > > NFS mounts do not cross mountpoints. You'll have to mount that yourself. > > > > Pity. That results in two additional drive letters :-( Ugly. > > This isn't to say you can't mount an NFS partition on top of a > mountpoint on another NFS mount. I'd have to test this. Fortunately, I don't need this functionality under Unix (DOS and OS/2 apparently cannot mount anything on directories, only on new drive letters). --------------------------------------------------------------------------- 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