9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] How to implement a moral equivalent of automounter in Plan9?
@ 2008-12-01  7:25 Roman Shaposhnik
  2008-12-01  8:38 ` Fco. J. Ballesteros
  2008-12-01 17:48 ` Russ Cox
  0 siblings, 2 replies; 55+ messages in thread
From: Roman Shaposhnik @ 2008-12-01  7:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi Guys!

I've been trying to implement a "lazy bind/mount" in Plan9 and it
dawned on
me that I don't really know any way of modifying calling process's
namespace
on-demand. In a automounter-like style.

Now, before you tell me that I shouldn't be doing it (well, may be I
shouldn't, but
please keep reading ;-)) let me give you a classical example of what
I'm after.

Consider a way /net is set up on Solaris as an automounter map. Anytime
there's any access requesting /net/<machine name>/<nfs exports>/files...
the namespace of the calling process gets modified because of the
automounter issuing an NFS mount.

Now, if I want the moral equivalent of the above to happen every time
I access /n/sources/plan9/sys/src/cmd/cpu.c on Plan9 I can have a
synthetic fileserver mounted on /n/ and doing the right thing. But that
will not make the following entry be added to my namespace:
     mount '#s/sources' /n/sources

So, the question is: am I missing something really obvious here,
or is writing a kernel driver that really does modify a namespace the
only way to go here?

Thanks,
Roman.



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

end of thread, other threads:[~2008-12-07 20:32 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-01  7:25 [9fans] How to implement a moral equivalent of automounter in Plan9? Roman Shaposhnik
2008-12-01  8:38 ` Fco. J. Ballesteros
2008-12-01 14:34   ` erik quanstrom
2008-12-01 14:40     ` Francisco J Ballesteros
2008-12-01 15:08       ` erik quanstrom
2008-12-01 15:16         ` Francisco J Ballesteros
2008-12-01 17:48 ` Russ Cox
2008-12-01 18:17   ` ron minnich
2008-12-01 18:31     ` Roman V. Shaposhnik
2008-12-01 21:18       ` Dan Cross
2008-12-02 18:12         ` Roman V. Shaposhnik
2008-12-02 18:18           ` [9fans] How to implement a moral equivalent of automounter erik quanstrom
2008-12-02 19:25             ` Roman V. Shaposhnik
2008-12-02 19:29               ` erik quanstrom
2008-12-02 20:12                 ` hiro
2008-12-02 21:14                 ` Roman V. Shaposhnik
2008-12-02 21:35                   ` erik quanstrom
2008-12-03  1:26                     ` Roman V. Shaposhnik
2008-12-03  1:42                       ` Dan Cross
2008-12-03  2:13                       ` erik quanstrom
2008-12-04  7:39                   ` Dave Eckhardt
2008-12-04 14:58                     ` Steve Simon
2008-12-05  4:57                       ` Nathaniel W Filardo
2008-12-05 12:10                         ` Steve Simon
2008-12-04 17:57                     ` Roman V. Shaposhnik
2008-12-05  4:35                       ` Dave Eckhardt
2008-12-05  4:43                         ` erik quanstrom
2008-12-06  5:16                           ` Roman Shaposhnik
2008-12-06 13:58                             ` erik quanstrom
2008-12-06  5:14                         ` Roman Shaposhnik
2008-12-06 14:27                           ` erik quanstrom
2008-12-07  0:03                             ` Roman Shaposhnik
2008-12-07  0:16                               ` [9fans] How to implement a moral equivalent ofautomounter erik quanstrom
2008-12-07  5:20                                 ` Rob Pike
2008-12-07  5:30                                   ` akumar
2008-12-07  5:53                                   ` Roman Shaposhnik
2008-12-07 20:32                                     ` Noah Evans
2008-12-01 18:25   ` [9fans] How to implement a moral equivalent of automounter in Plan9? Roman V. Shaposhnik
2008-12-01 22:48     ` Bakul Shah
2008-12-01 23:11       ` [9fans] How to implement a moral equivalent of automounter in geoff
2008-12-02 18:15         ` Roman V. Shaposhnik
2008-12-02  0:55     ` [9fans] How to implement a moral equivalent of automounter in Plan9? Russ Cox
2008-12-02 18:04       ` Roman V. Shaposhnik
2008-12-02 18:31         ` Nathaniel W Filardo
2008-12-02 19:34           ` Roman V. Shaposhnik
2008-12-02 20:05             ` hiro
2008-12-02 21:17               ` Roman V. Shaposhnik
2008-12-02 21:29                 ` erik quanstrom
2008-12-02 23:55                   ` Russ Cox
2008-12-03  0:07                     ` erik quanstrom
2008-12-03  1:21                       ` Roman V. Shaposhnik
2008-12-03  1:36                       ` Dan Cross
2008-12-06  5:24                         ` Roman Shaposhnik
2008-12-06 10:52                           ` Dan Cross
2008-12-03  5:23                     ` Rob Pike

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).