[lkml]   [2006]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Which process context does /sbin/hotplug run in?
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


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

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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-05-13 09:27    [W:0.051 / U:1.772 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site