Date: Tue, 16 Feb 1999 23:39:55 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: henrich@flnet.com (Charles Henrich) Cc: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Subject: Re: How do you export a file system tree? Message-ID: <199902170439.XAA03293@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <19990216162911.33424@orbit.flnet.com> from Charles Henrich at "Feb 16, 99 04:29:11 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902170439.XAA03293>
