Overview
| Artifact ID: | 2d557236bfdbefbf30010735c50ec2513ad75aef |
|---|---|
| Ticket: | 941872ffffffffffffffffffffffffffffffffff
path -->FS function limitations |
| User & Date: | andreas_kupries on 2004-05-05 04:01:55 |
Changes
- icomment:
Logged In: YES user_id=75003 I have come to the conclusion that we have two fundamentally different pieces of functionality here: (a) Path rewriting, possibly with side effects. That is (1) in don's original essay. Example of true rewriting: Jailing all paths in some directory, i.e. diverting them into this directory. Example of side-effect based schemes, where rewriting is identity, sideeffect can be security check and denial of access, or logging of the acess. (b) Correct lookup of the correct filesystem handling a path. The current linear list does not cut it. Because the of the inherent tree structure of the filesystem the mount points are in a tree as well, where deeper mount points have preference over the one nearer to the root. This can be handled in a linear list, for simplest and most common cases by adding the new filesystem to the beginning of the list, where it intercepts early. however a tree data structure should be better. We traverse this mount tree as we scan through the components of the path, and then use the last mount point we found before traversal became impossible. We can have back pointers from the mountpoint to the path objects refering to it and its FS. When mountpoints are added or removed we know easily for which path objects we will have to renew the FS association. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"