autofs vs. Sun automount -- new fs proposal

David Mansfield (david@cobite.com)
Mon, 14 Dec 1998 20:48:34 -0500 (EST)


The Solaris automounter allows a "seamless" mount of a local directory
onto another place on the local filesystem. This is frequently used, for
example, when a user logs in to the actual fileserver. The home directory
is usually located at /export/home/joeblow and is automounted to
/home/joeblow when referenced. This could, of course, be achieved by
actually NFS mounting from the local server. I'd rather shoot myself
however (am I sure Solaris doesn't do this? no)

autofs can do this. However, it does so trivially by creating a
symbolic link which is then traversed. This has mostly cosmetic
disadvantages, but a few more substatial ones. Any subprocess will see
the actual 'pwd' of /export/home/joeblow. Thus inexperienced users will
get confused and bother their system administrator, and, more seriously,
an application may wrongly determine the location of its private files,
defeating the 'logical structure' of the filesystem, and preventing
restructuring of the physical layout.

So the question is, how difficult would it be to make a fs implementation
that redirected requests for its top level directory to another fs'es
directory, and did all the necessary house keeping. Would it be possible
to just deal with the top level directory, or would all fs requests pass
through a layer of interpretation?

As you can tell by now, my knowledge of the linux fs internals is very
limited. I have merely scratched the surface of the linux source, but I
would love to learn and this sounds like something doable. From reading
some of the archives on this subject it seems like something others might
be interested in having.

Thanks for your comments (please comment ;-)
David

-- 
/==============================\
| David Mansfield              |
| david@cobite.com             |
\==============================/

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