I am searching a solution in order to have the following situation:
----------------------------------------------------
Consider two users A and B.
When A makes a "cd /virtual/src", he goes in /src/A.
When B makes a "cd /virtual/src", he goes in /src/B.
(this needs to work also when doing things like
"open(/virtual/src/mystuff.c)" )
----------------------------------------------------
This means that /virtual/src is a symbolic link, but a different symbolic
link whose destination is depending on the user (user name, or
some environment variable, whatever)
The only solution I see is to have a special filesystem mounted on
/virtual which intercepts the lookup system calls and returns the good
link.
Am I right? Has anybody already done something similar? Is it difficult to
develop such a filesystem? Where can I find some simple examples of a
filesystem?
(I've never done linux kernel programming, but I have good skills in unix
system programming)
Thanks to everybody.
PS. my english is... poor :)
--- Stelian Pop <spop@captimark.fr>| Too many things happened today Captimark | Too many words I don't wanna say Paris, France | I wanna be cool but the heat's coming up | I'm ready to kill 'cause enough is enough PGP key available on request | (Accept - "Up To The Limit")
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu