From owner-freebsd-questions Mon May 13 11:25:34 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA10963 for questions-outgoing; Mon, 13 May 1996 11:25:34 -0700 (PDT) Received: from gvr.win.tue.nl (root@gvr.win.tue.nl [131.155.210.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA10951 for ; Mon, 13 May 1996 11:25:26 -0700 (PDT) Received: by gvr.win.tue.nl (8.6.12/1.53) id UAA02686; Mon, 13 May 1996 20:23:01 +0200 From: guido@gvr.win.tue.nl (Guido van Rooij) Message-Id: <199605131823.UAA02686@gvr.win.tue.nl> Subject: Re: NFS To: terry@lambert.org (Terry Lambert) Date: Mon, 13 May 1996 20:23:00 +0200 (MET DST) Cc: compland@ism.com.br, terry@lambert.org, questions@FreeBSD.org In-Reply-To: <199605102139.OAA02827@phaeton.artisoft.com> from "Terry Lambert" at May 10, 96 02:39:14 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert wrote: > > You must explicitly export the directory. Look at the "mountd" man > page. > > (I assume you are worried about the users mounting the FS further up > in the export, since the FS is mounted on "/usr" on the server, right?). The kernel does not know what port of the filesystem is being exported. Only mountd knows it. Once you have the nfs handle for the specific subdir you get chdir(".."). Of course your need some client code for that, but that is not to difficult. The only way to prevent this is that the kernel holds a table of exported directories. Sun has this and when you think of it, it also explains why exported subdirectories should be disjunct. -Guido