1 Mar 2009 02:33
Re: How much of a mess does OpenVZ make? ;) Was: What can OpenVZ do?
On Fri, Feb 27, 2009 at 01:31:12AM +0300, Alexey Dobriyan wrote: > This is collecting and start of dumping part of cleaned up OpenVZ C/R > implementation, FYI. OK, here is second version which shows what to do with shared objects (cr_dump_nsproxy(), cr_dump_task_struct()), introduced more checks (still no unlinked files) and dumps some more information including structures connections (cr_pos_*) Dumping pids in under thinking because in OpenVZ pids are saved as numbers due to CLONE_NEWPID is not allowed in container. In presense of multiple CLONE_NEWPID levels this must present a big problem. Looks like there is now way to not dump pids as separate object. As result, struct cr_image_pid is variable-sized, don't know how this will play later. Also, pid refcount check for external pointers is busted right now, because /proc inode pins struct pid, so there is almost always refcount vs ->o_count mismatch. No restore yet. ;-) arch/x86/include/asm/unistd_32.h | 2 arch/x86/kernel/syscall_table_32.S | 2 include/linux/Kbuild | 1 include/linux/cr.h | 169 +++++++++++++ include/linux/ipc_namespace.h | 3(Continue reading)
RSS Feed