From: Michael Richardson Subject: Re: export directory under different name Date: Sun, 26 Sep 2004 14:44:59 -0400 Sender: nfs-admin@lists.sourceforge.net Message-ID: <17453.1096224299@marajade.sandelman.ottawa.on.ca> References: Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: text/plain; charset=US-ASCII Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1CBe33-0003iq-Fy for nfs@lists.sourceforge.net; Sun, 26 Sep 2004 11:47:01 -0700 Received: from cyphermail.sandelman.ottawa.on.ca ([205.150.200.161] helo=noxmail.sandelman.ottawa.on.ca) by sc8-sf-mx2.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1CBe30-0006NK-MN for nfs@lists.sourceforge.net; Sun, 26 Sep 2004 11:47:01 -0700 To: =?ISO-8859-15?Q?Sven_K=F6hler?= In-Reply-To: Message from =?ISO-8859-15?Q?Sven_K=F6hler?= of "Sat, 25 Sep 2004 21:11:20 +0200." Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: -----BEGIN PGP SIGNED MESSAGE----- >>>>> "hler" == hler writes: hler> is it possible to export a directory under a different name? No, it is not. There is no theorectical reason why mountd can not do more complicated mappings before giving out file handles, but it does not (to my knowledge) do so. It does follow symlinks, though. hler> Let's say i have a directory called /mnt/disk1/home3 and other hler> machines would like to mount it as if it was /home3. Is this hler> possible? i wouldn't know, how an entry in /etc/exports would hler> look like. Assuming that you don't have a /home3 already, I'd just do: ln -s /mnt/disk1/home3 /home3 and then list /home3 in exports. hler> At present, i do a "mount -o bind /mnt/disk1/home3 /home3" hler> which works fine *fingers crossed*. Is this a supported hler> configuration, or does this only work "by accident"? That should be supported. - -- ] "Elmo went to the wrong fundraiser" - The Simpson | firewalls [ ] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[ ] mcr@xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[ ] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Finger me for keys iQCVAwUBQVcOKYqHRg3pndX9AQHzpQQAp6y25V2X5e9VJoq7UU/fPL8+oonog930 6iN9XOK3822iWoa4TJd4BR5MzmlW4U6GzgrRL+MIiSFGxGq+BshCFJyUXAtMAYAy NE9dp9fev0CJ1PV/IzCFwaihQPtbtJXMcrSV8Y29nUeSK9T0Ao6cX/vg3brMCICd FsopMxIr3uQ= =bjX3 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs