From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 30 Nov 2008 23:25:23 -0800 From: Roman Shaposhnik To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-id: <1FAD6133-18F8-444F-BD6E-795999DE3170@sun.com> MIME-version: 1.0 Content-type: text/plain; delsp=yes; format=flowed; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: [9fans] How to implement a moral equivalent of automounter in Plan9? Topicbox-Message-UUID: 544030d6-ead4-11e9-9d60-3106f5b1d025 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///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.