From owner-freebsd-questions@FreeBSD.ORG Tue Aug 21 09:40:19 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49A3816A417 for ; Tue, 21 Aug 2007 09:40:19 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb7:ef56]) by mx1.freebsd.org (Postfix) with ESMTP id BB6EB13C48D for ; Tue, 21 Aug 2007 09:40:18 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l7L9eC1R000435; Tue, 21 Aug 2007 11:40:12 +0200 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Tue, 21 Aug 2007 11:40:11 +0200 User-Agent: KMail/1.9.7 References: <20070821113011.W7559@obelix.home.rakhesh.com> <20070821114033.V8623@obelix.home.rakhesh.com> In-Reply-To: <20070821114033.V8623@obelix.home.rakhesh.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708211140.11973.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Rakhesh Sasidharan Subject: Re: NFS export subdirs on different file systems? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 09:40:19 -0000 On Tuesday 21 August 2007, Rakhesh Sasidharan wrote: > > I have a directory /net/store. This directory is exported to all machines > > on my network. > > > > I have a sub-directory /net/store/photos. That too is exported to all > > machines on my network. > > > > What I want is that when I mount /net/store from another machine, the > > contents of /net/store/photos too be visible. Is there any way I can do > > that? > > > > From the manpage and the handbook and Google etc I get the idea that it > > might not be possible. Still, asking just in case there are any > > round-about ways ... I would assume a scenario like this is common. > > > > [I need /net/store/photos to be on a separate partition coz its encrypted > > and stuff. And I'd rather have it appear as part of the /net/store > > namespace ...] > > Forgot to add: the two directories are imported "dynamically" on the > client side. So I can't just make fstab entries on the client side to > mount both points. I use AMD to mount /net/store when needed. And I can't > for the life of me figure how to make it mount /net/store/photos too when > needed -- I dont think that's possible(?) ... I have that configuration working. In /etc/exports: /pub -alldirs client /pub/video -alldirs client On the client side, I didn't change anything to the configuration of AMD. Simply cd'ing to /host/server/pub and then 'cd video' does the right thing. I don't think -alldirs is really needed, but it's there for convenience. Regards, Pieter de Goeje