2004-04-18 03:17:15

by Larry McVoy

[permalink] [raw]
Subject: NFS exporting imports?

Long ago I remember that Linux had an unusual feature wherein you could
export /home and on the NFS server you could import something and it
would be exported. It was different than other NFS servers and this was
so long ago it may very well have been the user level NFS server code that
did this (in fact, I'll bet it was, it makes sense).

Regardless, I've finally hit a situation where that would be a nice feature
and I was wondering if there was some way to make the current (2.4) NFS
code do the same thing.

And while I'm here, is anyone maintaining the user level NFS server? Or
has anyone made it work on a recent kernel?

--lm


2004-04-18 04:09:41

by Andre Tomt

[permalink] [raw]
Subject: Re: NFS exporting imports?

Larry McVoy wrote:
<snip>
> And while I'm here, is anyone maintaining the user level NFS server? Or
> has anyone made it work on a recent kernel?

When I was in sudden need for NFS on a server with a nonstandard kernel
installation and didn't have time to recompile, it worked just fine.
This was with kernel 2.4.24 or 2.4.25, on Debian Sarge (package
"nfs-user-server"). Upstream maintainers looks pretty dead, but Debian
has a at least kept it in a working state in their archive.

2004-04-18 11:48:30

by Kurt Fitzner

[permalink] [raw]
Subject: Re: NFS exporting imports?

Larry McVoy wrote:
> Long ago I remember that Linux had an unusual feature wherein you could
> export /home and on the NFS server you could import something and it
> would be exported. It was different than other NFS servers and this was
> so long ago it may very well have been the user level NFS server code that
> did this (in fact, I'll bet it was, it makes sense).

You are talking about re-exporting a filesystem? This is doable with
any v3 server/client using the "nohide" option in /etc/exports. You
have to explicitely export all filesystem mount points that you import,
but once you do, you can transparently switch between them on a client
with a single mount.