<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Hi Rob,</div><div><br></div><div>It was discussed here: <a href="http://www.redhat.com/archives/libvir-list/2009-April/msg00116.html">http://www.redhat.com/archives/libvir-list/2009-April/msg00116.html</a></div>
<div><br></div><div>Ludo</div><div><div><br><div class="gmail_quote">On Sun, Apr 24, 2011 at 6:46 AM, Rob Landley <span dir="ltr"><<a href="mailto:rlandley@parallels.com">rlandley@parallels.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm reading through the LXC code and for some reason it's using<br>
pivot_root() instead of chroot().  Is there a reason for this?  (We need<br>
to iterate through every process in the system and make sure that kernel<br>
threads that are the children of the host's PID 1 get evicted from the<br>
old mount point so we can umount it?  But the host context isn't going<br>
away when we launch a container...)<br>
<br>
I thought that syscall was created to dispose of initrd so the system<br>
could free the ramdisk block device without the kernel threads that were<br>
reparented to init pinning the mount point, and one of the big<br>
advantages of initramfs is it _didn't_ need to call that particular<br>
piece of black magic (because initramfs provides a low-overhead place to<br>
park daemonized kernel threads).<br>
<br>
What's the advantage of using it here?<br>
<br>
Rob<br>
<br>
------------------------------------------------------------------------------<br>
Fulfilling the Lean Software Promise<br>
Lean software platforms are now widely adopted and the benefits have been<br>
demonstrated beyond question. Learn why your peers are replacing JEE<br>
containers with lightweight application servers - and what you can gain<br>
from the move. <a href="http://p.sf.net/sfu/vmware-sfemails" target="_blank">http://p.sf.net/sfu/vmware-sfemails</a><br>
_______________________________________________<br>
Lxc-devel mailing list<br>
<a href="mailto:Lxc-devel@lists.sourceforge.net">Lxc-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-devel</a><br>
</blockquote></div><br></div></div>