No description
Find a file
Pavel Emelyanov 95964f1b13 mount: Core for creating mount namespace
Namespace restore goes in two steps -- first, clean old mountpoints
(except root) that are left after clone(CLONE_NEWNS) call. Next,
repopulate the namespace with new mountpoints (except root) read
from the image file.

This patch adds the skeleton for the above -- reading the mountpoints
from current proc and image and calling for mount/umount. The real
action will come in further patches.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-06-27 20:57:36 +04:00
Documentation docs: Add -s option 2012-05-03 16:21:15 +04:00
include mount: Core for creating mount namespace 2012-06-27 20:57:36 +04:00
test zdtm: add two test cases for tty-s 2012-06-22 12:17:54 +04:00
tools tools: Update commit bot 2012-02-07 18:37:03 +04:00
.gitignore gitignore: Add syscall generated files 2012-04-28 16:35:40 +04:00
.mailmap repo: Add mailmap file 2012-03-25 23:31:20 +04:00
COPYING Add COPYING file 2011-12-05 14:11:05 +04:00
cr-check.c tcp: Add code for "check"-ing TCP repair support 2012-05-03 15:21:37 +04:00
cr-dump.c dump: don't check xids 2012-06-22 12:14:35 +04:00
cr-restore.c files: Drop redundant declarations from files.h 2012-06-22 17:02:23 +04:00
cr-show.c pipes, show: Fix tail message in show_pipes_data 2012-06-25 18:25:53 +04:00
crtools.c crtools: add "pid" to the --namespaces cmdline option arguments (v3) 2012-06-22 12:08:57 +04:00
eventfd.c crtools: remove unused variables (v3) 2012-05-18 19:01:21 +04:00
eventpoll.c eventpoll, inotify: Don't fail on watchees absence 2012-05-12 16:23:33 +04:00
file-ids.c kcmp: Introduce generic object ID generator 2012-04-09 18:01:18 +04:00
files-reg.c util: Helper for reading a string from image 2012-06-27 20:57:35 +04:00
files.c files: Drop redundant declarations from files.h 2012-06-22 17:02:23 +04:00
gen-offsets.sh make: Generate offsets from linked files only 2012-04-18 18:22:15 +04:00
inotify.c crtools: remove unused variables (v3) 2012-05-18 19:01:21 +04:00
ipc_ns.c crtools: remove unused variables (v3) 2012-05-18 19:01:21 +04:00
kcmp-ids.c parasite: remove excessive header deps from parasite.h and friends 2012-05-30 12:50:18 +04:00
libnetlink.c log: log-engine slight redesign 2012-03-02 01:05:43 +04:00
log.c log: Open logc files with O_TRUNC 2012-05-30 12:29:50 +04:00
Makefile files: Move regular files handling code to files-reg 2012-06-21 12:10:13 +04:00
Makefile.inc make: Eliminate deps build on no-deps targets in zdtm 2012-01-25 19:14:39 +04:00
Makefile.pie make: Split generation of %.bin and %.bin.o into two rules 2012-04-19 12:12:06 +04:00
Makefile.syscall make: Fix typo in Makefile.syscall 2012-04-19 12:11:08 +04:00
mount.c mount: Core for creating mount namespace 2012-06-27 20:57:36 +04:00
namespaces.c mount: Core for creating mount namespace 2012-06-27 20:57:36 +04:00
netfilter.c Escape using unsafe sprintf helper 2012-06-20 15:04:51 +04:00
parasite-head-x86-64.S parasite: Move bootstrap code into parasite-head-x86-64.S 2012-04-18 18:22:52 +04:00
parasite-syscall.c parasite: remove the useless BUG_ON 2012-06-27 14:52:27 +04:00
parasite.c parasite: remove parasite_status_t, a return code is enough 2012-06-27 14:52:01 +04:00
pie.lds.S make: Generate offsets from linked files only 2012-04-18 18:22:15 +04:00
pipes.c fd: Remove ID from fd_parm 2012-06-20 19:24:46 +04:00
proc_parse.c mount: Build mount points tree out of a plain list 2012-06-27 20:57:34 +04:00
ptrace.c Helper for si_code event extraction. 2012-04-25 21:35:40 +04:00
rbtree.c fown: Fix compilation for older distros 2012-04-25 21:36:43 +04:00
README Drop kernel patching from README 2012-01-29 16:26:36 +04:00
restorer-log.c crtools: remove unused variables (v3) 2012-05-18 19:01:21 +04:00
restorer.c restorer: exit all threads in case of error 2012-06-19 12:45:44 +04:00
shmem.c Escape using unsafe sprintf helper 2012-06-20 15:04:51 +04:00
sk-inet.c sockets, inet: Use general machnism for checkpoint/restore v2 2012-05-30 12:56:04 +04:00
sk-queue.c crtools: remove unused variables (v3) 2012-05-18 19:01:21 +04:00
sk-tcp.c sockets, inet: Use general machnism for checkpoint/restore v2 2012-05-30 12:56:04 +04:00
sk-unix.c sockets, unix: Use general machnism for checkpoint/restore v2 2012-05-30 12:54:31 +04:00
sockets.c sk: Do not lookup a socket twice 2012-06-20 19:24:49 +04:00
syscall-common-x86-64.S syscalls: Complete redesign v9 2012-04-18 18:23:19 +04:00
syscalls-x86-64.sh syscalls: Complete redesign v9 2012-04-18 18:23:19 +04:00
sysctl.c parasite: remove excessive header deps from parasite.h and friends 2012-05-30 12:50:18 +04:00
util-net.c util-net: Make send/recv fds carry fd flags in message 2012-04-10 18:36:13 +04:00
util.c Escape using unsafe sprintf helper 2012-06-20 15:04:51 +04:00
uts_ns.c parasite: remove excessive header deps from parasite.h and friends 2012-05-30 12:50:18 +04:00

crtools
=======

An utility to checkpoint/restore tasks.

Some code snippets are borrowed from

 - Linux kernel (http://kernel.org/)
 - git (http://git-scm.com/)
 - kvm-tools (https://github.com/penberg/linux-kvm)
 - ptrace-parasite (https://code.google.com/p/ptrace-parasite/)

Many thanks to these projects.

Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt)