Re: Which process context does /sbin/hotplug run in?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 13 May 2006 3:24 am, Kyle Moffett wrote:
> /
>    /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.

I can CD into them endlessly, and both "ls -lR" and "find ." report cycles in 
the tree, which surprised me that they had a specific error message for that, 
actually.  Good enough for me. :)

And I'm not _complaining_ about it.  Just fiddling around with fun stuff.  If 
I get really bored I'll figure a way to split the tree so there are two 
completely unconnected mount trees in different processes.  (Get a private 
namespace that's chrooted into something that somebody else does a umount -l 
on from their space.  Or without using umount -l, just have two processes 
chroot into other mount points which should theoretically garbage collect the 
old root if no processes still references it, which presumably means one of 
the processes is init...)

Don't mind me, I do this for fun.

Rob
-- 
Never bet against the cheap plastic solution.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux