From owner-freebsd-questions Tue Feb 16 20:38:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 30D1211053 for ; Tue, 16 Feb 1999 20:38:21 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id XAA03293; Tue, 16 Feb 1999 23:39:55 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199902170439.XAA03293@cc942873-a.ewndsr1.nj.home.com> Subject: Re: How do you export a file system tree? In-Reply-To: <19990216162911.33424@orbit.flnet.com> from Charles Henrich at "Feb 16, 99 04:29:11 pm" To: henrich@flnet.com (Charles Henrich) Date: Tue, 16 Feb 1999 23:39:55 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Charles Henrich wrote, > This used to be so easy :) I have a question, I want to export a subtree > of my root filesystem (aka /localhome). If I do a > > /localhome -alldirs > > I get nothing but errors: > > Feb 16 16:23:30 vev mountd[851]: could not remount /localhome: Invalid argument > Feb 16 16:23:30 vev mountd[851]: bad exports list line /localhome -alldirs crh.mvfx.com > > However, if I export from the top of the tree, (aka /) it works as advertised, > but I do not want to exports the whole disk! What am I missing here, can this > not be done anymore? I don't think you are missing anything. From 'man exports,' "The second [form of export specification] is to specify the pathname of the root of the filesys- tem followed by the -alldirs flag; this form allows the host(s) to mount at any point within the filesystem..." It implies the '-alldirs' option only works for entire filesystems. Otherwise, you need to use the first method listed, "...list all mount points as absolute directory paths separated by whitespace." I can think of three ways to go, (1) make /localhome a filesystem of its own, (2) explicitly list every subdirectory of /localhome that you might want to be exported as its own mount point, or (3) mount it without '-alldirs' and if you want to get at something farther up the tree, you have to still mount at /localhost and climb it from there. Sorry if that's not what you want, but I believe it's well within the RFCs. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message