From owner-freebsd-questions Tue Feb 4 01:09:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA03967 for questions-outgoing; Tue, 4 Feb 1997 01:09:35 -0800 (PST) Received: from david.siemens.de (david.siemens.de [146.254.1.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA03957 for ; Tue, 4 Feb 1997 01:09:30 -0800 (PST) Received: from salomon.mchp.siemens.de (salomon.mchp.siemens.de [139.23.33.13]) by david.siemens.de (8.8.5/8.8.0) with ESMTP id KAA09221 for ; Tue, 4 Feb 1997 10:05:08 +0100 (MET) Received: from curry.mchp.siemens.de (daemon@curry.mchp.siemens.de [146.180.31.23]) by salomon.mchp.siemens.de (8.8.4/8.8.4) with ESMTP id KAA28783 for ; Tue, 4 Feb 1997 10:09:23 +0100 (MET) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.8.5/8.8.5) id KAA04098 for ; Tue, 4 Feb 1997 10:09:21 +0100 (MET) From: Andre Albsmeier Message-Id: <199702040909.KAA02994@server.us.tld> Subject: Re: How to export directory with subdirs In-Reply-To: from Doug White at "Feb 3, 97 11:29:13 pm" To: dwhite@resnet.uoregon.edu Date: Tue, 4 Feb 1997 10:09:12 +0100 (MET) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > On Sun, 2 Feb 1997, Andre Albsmeier wrote: > > > is it possible to export a directory including all its subdirs without > > exporting the whole filesystem? I want to export /var/spool/pcnfs including > > all subdirectories. As far as I have understood exports(5), the alldirs > > option works only with the root of a filesystem (which in my case is the > > /var filsystem) which I don't want to export to all the PCs. > > Then just add the line > > /var/spool/pcnfs > > and it should export it plus everything below it. > > It does on my machines (a 2.1.5 and a 2.2-BETA). :-/ OK, maybe i expressed my problem unclearly, sorry. Let's assume I have /var/spool/pcnfs /var/spool/pcnfs/host0 /var/spool/pcnfs/host1 /var/spool/pcnfs/host2 /var/spool/pcnfs/host3 /var/spool/pcnfs/host4 and I have an /etc/exports conatining /var/spool/pcnfs I can do a mount server:/var/spool/pcnfs /anywhere and access all directories. What I want to do is mount server:/var/spool/pcnfs/hostx /anywhere without changing /etc/exports. The reason is, that if I attach a new PC to our network, a new directory named /var/spool/pcnfs/name_of_new_pc is created automtically by pcnfsd. Then I would like to export this directory automatically without changing /etc/exports. At the moment, I have patches mountd.c to do this (same behaviour as Linux, IRIX 5.3, Solaris and HP-UX 9), but I wonder if there isn't a "legal" way to do this. Thanks -Andre