From: Mike Waychison <Michael.Waychison@Sun.COM>
To: Ian Kent <raven@themaw.net>
Cc: autofs mailing list <autofs@linux.kernel.org>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] Towards a Modern Autofs
Date: Tue, 13 Jan 2004 14:01:48 -0500 [thread overview]
Message-ID: <4004409C.6040900@sun.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0401130932460.10047-100000@wombat.indigo.net.au>
[-- Attachment #1.1: Type: text/plain, Size: 3103 bytes --]
Ian Kent wrote:
>On Mon, 12 Jan 2004, Mike Waychison wrote:
>
>
>
>>>And I have another question concerning namespaces.
>>>
>>>Given that there may be several namespaces, each of which may or may not
>>>have a trigger on this dentry, is there some sort of list of triggers?
>>>
>>>How do the triggers know who owns them?
>>>
>>>
>>>
>>>
>>>
>>>
>>This is the reason I went with using distinct filesystems to perform the
>>triggers. If we use follow_link logic, we will have a reference to the
>>respective vfsmount. Dentry's themselves know nothing about the
>>triggers, as the triggers just look like a mounted filesystem. The
>>vfsmount information has enough information for autofs to call a
>>userspace agent through hotplug and have userspace handle the mount. In
>>effect, there is no daemon so nobody 'owns' a trigger in the same sense
>>as with autofs3/4.
>>
>>
>
>I'm not familiar with the follow_link mechanism (no prob. I'll pick it up
>as I go).
>
>Correct me if I'm wrong but, the only thing that I can see that is
>duplicated in cloning a namespace is the root dentry. The rest of the
>dentries on the system remain the same. The increase in complexity to the
>VFS to change this would be prohibitive.
>
>
No. Dentries are *never* duplicated. This goes back to Viro's work on
allowing a filesystem to be mounted in multiple locations. See
http://kt.zork.net/kernel-traffic/kt20000424_64.html#9 .
What is duplicated is the current->namespace tree of vfsmounts. After
this is done, current->fs vfsmount members are updated to point to their
cloned counterparts.
>I see we want the triggers in the vfsmount struct. Is this a good idea?
>The vfsmount struct has always been difficult to get hold of during lookup
>and revalidate for me (someone like to help here).
>
>
>
If triggers in the vfsmount struct are done, then there will be no need
to handle lookups or revalidates. In fact, triggers in the vfsmount
struct will not help at all for indirect maps.
>
>Also, something needs to be done about mount table noise. Several hundred
>entries is very bad from an administration viewpoint.
>
>
I don't see what you want here. If you have hundreds of users logged
into the same machine, you *will* have hundreds of entries in the
mount-table.
>Except for the cross namespace issues, which I'm still digesting, I can't
>see why your design can't be done entirely as a filesystem using dentries
>instead of vfsmount, including expirey. Perhaps you could reinterate a few
>of the reasons for this.
>
>
My proposal uses filesystems for all automount mechanism *except*
expiry. I see expiry as a VFS service, and strongly believe that this is
where it belongs.
--
Mike Waychison
Sun Microsystems, Inc.
1 (650) 352-5299 voice
1 (416) 202-8336 voice
mailto: Michael.Waychison@Sun.COM
http://www.sun.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: The opinions expressed in this email are held by me,
and may not represent the views of Sun Microsystems, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-- Attachment #1.2: Type: application/pgp-signature, Size: 251 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
WARNING: multiple messages have this Message-ID (diff)
From: Mike Waychison <Michael.Waychison@Sun.COM>
To: Ian Kent <raven@themaw.net>
Cc: autofs mailing list <autofs@linux.kernel.org>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [autofs] [RFC] Towards a Modern Autofs
Date: Tue, 13 Jan 2004 14:01:48 -0500 [thread overview]
Message-ID: <4004409C.6040900@sun.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0401130932460.10047-100000@wombat.indigo.net.au>
[-- Attachment #1: Type: text/plain, Size: 3103 bytes --]
Ian Kent wrote:
>On Mon, 12 Jan 2004, Mike Waychison wrote:
>
>
>
>>>And I have another question concerning namespaces.
>>>
>>>Given that there may be several namespaces, each of which may or may not
>>>have a trigger on this dentry, is there some sort of list of triggers?
>>>
>>>How do the triggers know who owns them?
>>>
>>>
>>>
>>>
>>>
>>>
>>This is the reason I went with using distinct filesystems to perform the
>>triggers. If we use follow_link logic, we will have a reference to the
>>respective vfsmount. Dentry's themselves know nothing about the
>>triggers, as the triggers just look like a mounted filesystem. The
>>vfsmount information has enough information for autofs to call a
>>userspace agent through hotplug and have userspace handle the mount. In
>>effect, there is no daemon so nobody 'owns' a trigger in the same sense
>>as with autofs3/4.
>>
>>
>
>I'm not familiar with the follow_link mechanism (no prob. I'll pick it up
>as I go).
>
>Correct me if I'm wrong but, the only thing that I can see that is
>duplicated in cloning a namespace is the root dentry. The rest of the
>dentries on the system remain the same. The increase in complexity to the
>VFS to change this would be prohibitive.
>
>
No. Dentries are *never* duplicated. This goes back to Viro's work on
allowing a filesystem to be mounted in multiple locations. See
http://kt.zork.net/kernel-traffic/kt20000424_64.html#9 .
What is duplicated is the current->namespace tree of vfsmounts. After
this is done, current->fs vfsmount members are updated to point to their
cloned counterparts.
>I see we want the triggers in the vfsmount struct. Is this a good idea?
>The vfsmount struct has always been difficult to get hold of during lookup
>and revalidate for me (someone like to help here).
>
>
>
If triggers in the vfsmount struct are done, then there will be no need
to handle lookups or revalidates. In fact, triggers in the vfsmount
struct will not help at all for indirect maps.
>
>Also, something needs to be done about mount table noise. Several hundred
>entries is very bad from an administration viewpoint.
>
>
I don't see what you want here. If you have hundreds of users logged
into the same machine, you *will* have hundreds of entries in the
mount-table.
>Except for the cross namespace issues, which I'm still digesting, I can't
>see why your design can't be done entirely as a filesystem using dentries
>instead of vfsmount, including expirey. Perhaps you could reinterate a few
>of the reasons for this.
>
>
My proposal uses filesystems for all automount mechanism *except*
expiry. I see expiry as a VFS service, and strongly believe that this is
where it belongs.
--
Mike Waychison
Sun Microsystems, Inc.
1 (650) 352-5299 voice
1 (416) 202-8336 voice
mailto: Michael.Waychison@Sun.COM
http://www.sun.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: The opinions expressed in this email are held by me,
and may not represent the views of Sun Microsystems, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-- Attachment #2: Type: application/pgp-signature, Size: 251 bytes --]
next prev parent reply other threads:[~2004-01-13 19:01 UTC|newest]
Thread overview: 91+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-06 19:55 [RFC] Towards a Modern Autofs Mike Waychison
2004-01-06 19:55 ` Mike Waychison
2004-01-06 21:01 ` H. Peter Anvin
2004-01-06 21:01 ` [autofs] " H. Peter Anvin
2004-01-06 21:44 ` Mike Waychison
2004-01-06 21:44 ` [autofs] " Mike Waychison
2004-01-06 21:50 ` Tim Hockin
2004-01-06 21:50 ` [autofs] " Tim Hockin
2004-01-06 22:06 ` H. Peter Anvin
2004-01-06 22:06 ` [autofs] " H. Peter Anvin
2004-01-06 22:17 ` Tim Hockin
[not found] ` <20040106221502.GA7398@hockin.org>
2004-01-06 22:20 ` H. Peter Anvin
2004-01-06 22:20 ` [autofs] " H. Peter Anvin
2004-01-07 16:19 ` Mike Waychison
2004-01-07 16:19 ` [autofs] " Mike Waychison
2004-01-07 17:55 ` H. Peter Anvin
2004-01-07 21:13 ` Mike Waychison
2004-01-06 22:28 ` name spaces good (was: [autofs] [RFC] Towards a Modern Autofs) Dax Kelson
2004-01-06 22:48 ` name spaces good H. Peter Anvin
2004-01-06 22:48 ` H. Peter Anvin
2004-01-07 21:14 ` [RFC] Towards a Modern Autofs Jim Carter
2004-01-07 21:14 ` [autofs] " Jim Carter
2004-01-07 22:55 ` Mike Waychison
2004-01-07 22:55 ` [autofs] " Mike Waychison
2004-01-08 12:00 ` Ian Kent
2004-01-08 12:00 ` [autofs] " Ian Kent
2004-01-08 15:39 ` Mike Waychison
2004-01-09 18:20 ` Ian Kent
2004-01-09 18:20 ` [autofs] " Ian Kent
2004-01-09 20:06 ` Mike Waychison
2004-01-09 20:06 ` [autofs] " Mike Waychison
2004-01-10 5:43 ` Ian Kent
2004-01-12 13:07 ` Mike Waychison
2004-01-12 16:01 ` raven
2004-01-12 16:26 ` Mike Waychison
2004-01-12 22:50 ` Tim Hockin
2004-01-12 23:28 ` Mike Waychison
2004-01-13 1:30 ` Ian Kent
2004-01-13 1:30 ` [autofs] " Ian Kent
2004-01-12 16:28 ` raven
2004-01-12 16:58 ` Mike Waychison
2004-01-13 1:54 ` Ian Kent
2004-01-13 1:54 ` [autofs] " Ian Kent
2004-01-13 19:01 ` Mike Waychison [this message]
2004-01-13 19:01 ` Mike Waychison
2004-01-14 15:58 ` raven
2004-01-14 19:32 ` running out of mount points Greg Bradner
2004-01-19 15:48 ` Greg Bradner
2004-01-19 17:11 ` Mike Waychison
2004-01-19 19:07 ` Greg Bradner
2004-01-20 19:15 ` Jim Carter
2004-01-13 18:46 ` [RFC] Towards a Modern Autofs Mike Waychison
2004-01-13 18:46 ` [autofs] " Mike Waychison
2004-01-09 20:51 ` Jim Carter
2004-01-09 20:51 ` [autofs] " Jim Carter
2004-01-10 5:56 ` Ian Kent
2004-01-08 17:34 ` H. Peter Anvin
2004-01-08 19:41 ` Mike Waychison
2004-01-08 23:42 ` Michael Clark
2004-01-09 20:28 ` Mike Waychison
2004-01-09 20:28 ` [autofs] " Mike Waychison
2004-01-09 20:54 ` H. Peter Anvin
2004-01-09 20:54 ` [autofs] " H. Peter Anvin
2004-01-09 21:43 ` Mike Waychison
2004-01-09 21:43 ` [autofs] " Mike Waychison
2004-01-09 18:32 ` Ian Kent
2004-01-09 18:32 ` [autofs] " Ian Kent
2004-01-09 20:52 ` Mike Waychison
2004-01-09 20:52 ` [autofs] " Mike Waychison
2004-01-10 6:05 ` Ian Kent
2004-01-08 12:29 ` Olivier Galibert
2004-01-08 13:20 ` Robin Rosenberg
2004-01-08 16:23 ` Mike Waychison
2004-01-08 12:35 ` Ian Kent
2004-01-08 13:08 ` Ian Kent
2004-01-08 18:20 ` Jim Carter
2004-01-08 21:01 ` H. Peter Anvin
2004-01-08 0:48 ` Ian Kent
2004-01-08 0:48 ` [autofs] " Ian Kent
-- strict thread matches above, loose matches on Subject: below --
2004-01-06 22:28 Ogden, Aaron A.
2004-01-06 22:53 ` Paul Raines
2004-01-07 14:05 ` Greg Wooledge
2004-01-07 23:14 ` Jim Carter
2004-01-07 23:32 ` H. Peter Anvin
2004-01-08 12:52 ` [autofs] " Ian Kent
2004-01-08 18:31 ` viro
2004-01-09 18:43 ` Ian Kent
2004-01-09 19:41 ` Mike Waychison
2004-01-09 19:57 ` H. Peter Anvin
2004-01-09 21:31 ` Mike Waychison
2004-01-09 21:36 ` H. Peter Anvin
2004-01-06 23:26 Ogden, Aaron A.
2004-01-06 23:34 Ogden, Aaron A.
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=4004409C.6040900@sun.com \
--to=michael.waychison@sun.com \
--cc=autofs@linux.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=raven@themaw.net \
/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.