linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sick VFS question
@ 2003-02-25  9:48 H. Peter Anvin
  2003-02-25 16:19 ` Ion Badulescu
  0 siblings, 1 reply; 13+ messages in thread
From: H. Peter Anvin @ 2003-02-25  9:48 UTC (permalink / raw)
  To: linux-fsdevel

Hi everyone,

I'm considering new ideas for autofs v5, and I have a sick question:
would the VFS barf completely if autofs would take a dentry belonging
to another filesystem and replace the inode pointer with a pointer to
an inode belonging to itself (obviously incrementing the counter on
that inode appropriately)?  This would in particular be applicable to
"mount pads", i.e. let's say /auto is an autofs, and /auto/foo is an
autofs mount key, containing two filesystems: /auto/foo and
/auto/foo/bar. After mounting /auto/foo, autofs would access the "bar"
directory in the "foo" filesystem, and replace that inode with an
internal autofs inode.
This internal inode would have a follow_link(!) method which would
cause the /auto/foo/bar mount to happen and then redirect the search
to the topmost directory.

Ideally, this should not impede a umount of the /auto/foo directory if
the /auto/foo/bar directory is not mounted.

Using follow_link this way solves a whole lot of problems in autofs,
both in terms of usability and atomicity.  It solves the same problem
the dentry traps was supposed to solve, but also avoids the "mount
storm" problem by allowing lstat() without triggering a mount.

I would appreciate comments...

    -hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: cris ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-03-06 17:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-25  9:48 Sick VFS question H. Peter Anvin
2003-02-25 16:19 ` Ion Badulescu
2003-02-25 17:30   ` Charles P. Wright
2003-02-25 17:57     ` H. Peter Anvin
2003-02-25 18:46     ` Ion Badulescu
2003-02-25 19:53       ` H. Peter Anvin
2003-02-25 20:39         ` Ion Badulescu
2003-02-25 21:06           ` Ion Badulescu
2003-02-25 21:55           ` H. Peter Anvin
2003-02-26 15:37             ` Erez Zadok
2003-02-26 15:45               ` H. Peter Anvin
2003-03-06 16:53       ` David Chow
2003-03-06 17:18         ` Charles P. Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).