Re: FS: hardlinks on directories

From: Neil Brown (neilb@cse.unsw.edu.au)
Date: Tue Aug 05 2003 - 20:12:38 EST


On Tuesday August 5, skraw@ithnet.com wrote:
> > > Hm, and I just found out that re-exporting "mount --bind" volumes does not
> > > work over nfs...
> > >
> > > Is this correct, Neil?
> >
> > Yes, though there is a reasonable chance that it can be made to work
> > with linux-2.6.0 and nfs-utils-1.1.0 (neither of which have been
> > released yet:-)
>
> Is this a complex issue? Can you imagine a not-too-big sized patch can make it
> work in 2.4? What is the basic reason it does in fact not work?

On reflection, it could probably work in 2.4 and current nfs-utils,
but admin might be a bit clumsy.

To allow knfsd to see a mountpoint, you have to export the mounted
directory with the "nohide" option. Currently "nohide" only works
properly for exports to specific hosts, not to wildcarded hosts or
netgroups.
So if your /etc/export contains:

  /path/to/some/--bind/mountpoint servername(nohide,....)

for every mountpoint and every server, then it should work.

In 2.6, you can (will be able to) just export the top level mount
point with "crossmnt" and it should all work for you.

Getting that functionality into 2.4 would be a very big job.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:31 EST