Messages in this thread | | | From | Kyle Moffett <> | Subject | Re: Which process context does /sbin/hotplug run in? | Date | Sat, 13 May 2006 03:24:17 -0400 |
| |
On May 12, 2006, at 14:20, Rob Landley wrote: > Anybody know this one? Now that filesystem namespaces are per- > process, and move/bind mounts let us have cycles in our trees,
Actually; it doesn't. Your example below looks like this: > mount -t tmpfs /tmp /tmp > cd /tmp > mkdir sub > mount --bind sub /var > cd /var > mkdir sub2 > mount --move /tmp sub2
/ /var /var/sub /var/sub2 /var/sub2/sub /var/sub2/sub2
The recursion ends there. Basically with the first bind mount you attach the same instance of tmpfs to /tmp and /var, then you move the tmpfs from /tmp to the "/sub2" directory in the "/var" tmpfs _mountpoint_. It's kind of confusing behavior; but the directory tree and the mount tree are basically kind of separate entities in a sense.
Cheers, Kyle Moffett
-- Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian Kernighan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |