OpenVZ Forum


Home » Mailing lists » Devel » [RFC] [PATCH 0/3] containers: introduction
[RFC] [PATCH 0/3] containers: introduction [message #17096] Wed, 20 December 2006 06:01 Go to previous message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
Following is a small patchset implementing what I was describing
about earlier, namely semantics for a hierarchical container
naming scheme.

What works:

	1.  ls -l /proc/$$/container
	  shows the full hierarchical name of the container;

	2.  mount -t containerfs none /container
	  results in a file tree under /container representing the
	  full container hierarchy

	3.  cd /proc/$$/container; ls
	  results in a listing of child containers

What doesn't work:
	1. The /proc/$$/container link always appears dead (red
	in bash on my fedora test system) because it points
	into a kern_mounted fs.

	2. Features like

		cd /proc/$$/container
		mv container_3 my_child_container
	
	  to rename a container or

		cd /proc/$$/container
		rm container_3

	  to kill all processes a container are unimplemented.

	3. Semantics for entering a namespace are not only
	  unimplemented, but entirely unconsidered thus far.
	  I suppose one cool way to enter a container would
	  be

	  	ln -s /proc/$$/container/child_container /proc/$$/container

	  but that

	  	a. Does not provide the ability to switch only
		   some of the namespaces, as Herbert wants.
		b. May be unimplementable using proc support
		   as is - not sure.

thanks,
-serge
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] attach_pid() with struct pid parameter
Next Topic: + rename-attach_pid-to-find_attach_pid.patch added to -mm tree
Goto Forum:
  


Current Time: Mon Jul 28 09:31:11 GMT 2025

Total time taken to generate the page: 0.36502 seconds