All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-fsdevel@vger.kernel.org
Subject: Sick VFS question
Date: 25 Feb 2003 01:48:39 -0800	[thread overview]
Message-ID: <b3fe5n$em8$1@cesium.transmeta.com> (raw)

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

             reply	other threads:[~2003-02-25  9:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-25  9:48 H. Peter Anvin [this message]
2003-02-25 16:19 ` Sick VFS question 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='b3fe5n$em8$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.