linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: raven@themaw.net
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: mike@waychison.com, linux-fsdevel@vger.kernel.org,
	jamie@shareable.org, viro@parcelfarce.linux.theplanet.co.uk
Subject: Re: [RFC][PATCH 1/8] namespace: use global namespace semaphore
Date: Sat, 4 Jun 2005 12:53:47 +0800 (WST)	[thread overview]
Message-ID: <Pine.LNX.4.62.0506041241530.1619@donald.themaw.net> (raw)
In-Reply-To: <E1De4ZZ-0002tF-00@dorka.pomaz.szeredi.hu>

On Fri, 3 Jun 2005, Miklos Szeredi wrote:

> > > > > Can someone explain, why autofs needs to walk the mount tree?
> > > > 
> > > > I generally don't need to walk the vfsmount tree except during
> > > > expire (ref may_umount_tree in namespace.c). What I find is that
> > > > I often need to locate a sibling vfsmount given a parent and a
> > > > dentry (aka. lookup_mnt).  This is because, after a mount is
> > > > triggered (the daemon is notified and does the mount) I need it
> > > > in order to follow it. I expect Mike has similar needs.
> > > 
> > > You can use follow_down(), which does just this, and is already
> > > exported.
> > 
> > Sure, but that was the subject of this thread in the begining.
> 
> I think you're mixing it with follow_link().  follow_down() is just a
> nice wrapper for lookup_mnt(), and is exported to modules.
> 
> > The nameidata vfsmount entry is not upto date when this method is called.
> > Therefore I need to look it up.
> > 
> > I could propose a change to link_path_walk to update it prior to the 
> > call but then I can't have a tarball that can be used to build the module 
> > without rebuilding the kernel.
> > 
> > I was planning on doing this to facilitate testing.
> > 
> > Do you really think that it's OK to remove long standing structure 
> > fields on the strength that no other kernel code is using them?
> 
> Yes, if it's not part of an interface.

What interface?

I'm not aware of any clearly defined API for access to in kernel functions 
for the VFS except for the various operations methods. Unfortuneatly, any 
struct that is passed to them should be largely imutable as well. Which 
ultimeatly covers the structs we are talking about here.

All I see is people taking the oppertunity to stop exporting functions 
without consideration to what should be considered part of an API.

Some companies do this really well to foster development.

> 
> > What about the externally developed modules from other places?
> 
> I think it's usually understood, that you shouldn't rely on
> implementation details, or otherwise have to face the consequences.

I dont think that really good enough for a viable software platform.

> 
> But in this case there's no such problem I think, because you can
> solve this with existing exported interfaces, and don't have to bother
> about mnt_list.

Yes. That would be the case except there's a reference held to the 
vfsmount in the struct path prior to point at which follow_link is called, 
which I don't think can be obtained.

In any case I'll find a way to work around it.

Ian


  reply	other threads:[~2005-06-04  5:03 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-30 13:19 [RFC][PATCH 1/8] namespace: use global namespace semaphore Miklos Szeredi
2005-05-31  2:58 ` Ian Kent
2005-05-31  3:23   ` Mike Waychison
2005-05-31  7:02     ` Ian Kent
2005-05-31  7:56       ` Miklos Szeredi
2005-05-31  9:34         ` Ian Kent
2005-05-31 10:05           ` Miklos Szeredi
2005-05-31 10:13             ` Miklos Szeredi
2005-05-31 15:43               ` Mike Waychison
2005-06-01  5:04               ` Ian Kent
2005-06-01  8:35                 ` Miklos Szeredi
2005-06-03  2:10                   ` Ian Kent
2005-06-03  5:28                     ` Miklos Szeredi
2005-06-04  4:13                       ` raven
2005-06-04  6:32                         ` Miklos Szeredi
2005-06-04  6:50                           ` raven
2005-06-04  7:20                             ` Miklos Szeredi
2005-06-04  7:27                               ` raven
2005-06-03 17:22                     ` Mike Waychison
2005-06-04  4:32                       ` raven
2005-06-03 17:13               ` Mike Waychison
2005-06-03 18:20                 ` Miklos Szeredi
2005-06-01  4:36             ` Ian Kent
2005-06-03 17:24               ` Mike Waychison
2005-06-04  4:38                 ` raven
2005-05-31 15:55       ` Mike Waychison
2005-05-31 16:08         ` Miklos Szeredi
2005-06-01  4:18           ` Ian Kent
2005-06-01  8:28             ` Miklos Szeredi
2005-06-03  2:23               ` Ian Kent
2005-06-03  5:18                 ` Miklos Szeredi
2005-06-04  4:53                   ` raven [this message]
2005-06-04  6:57                     ` Miklos Szeredi
2005-06-04  7:13                       ` raven
2005-06-03 17:26             ` Mike Waychison
2005-06-01  3:57         ` Ian Kent
2005-06-03 17:07           ` Mike Waychison

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=Pine.LNX.4.62.0506041241530.1619@donald.themaw.net \
    --to=raven@themaw.net \
    --cc=jamie@shareable.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mike@waychison.com \
    --cc=miklos@szeredi.hu \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /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 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).