No description
Find a file
Andrey Vagin f2664d6524 pipe: don't reopen pipes via /proc, if it's not required
The system call open can add O_LARGEFILE.

A point is reopend for unsharing a file descriptor. So here are two
types of points. One is returned by pipe() and all other ones are
got via opening /proc/PID/fd.

Currently I know only one difference between these types, it's
O_LARGEFILE.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Tested-by: Alexander Kartashov <alekskartashov@parallels.com
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-03-19 23:00:59 +04:00
arch crtools: remove declaration of rt_sigset_t 2013-03-15 19:11:25 +04:00
Documentation docs: crtools -- Use bold format for parameters 2013-02-18 18:42:07 +04:00
include restore: reserve the service descriptor for a control tty 2013-03-18 23:04:09 +04:00
pie crtools: remove declaration of rt_sigset_t 2013-03-15 19:11:25 +04:00
protobuf mount: Add PB entries for FS types 2013-03-18 22:32:57 +04:00
scripts make: Provide mandatory options in cflags-y variable 2013-02-23 00:36:36 +04:00
test pipe: don't reopen pipes via /proc, if it's not required 2013-03-19 23:00:59 +04:00
.gitignore make: pie -- Switch to a new scheme 2013-02-18 18:10:45 +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 check: Check for pipe return value in check_unaligned_vmsplice 2013-02-22 15:56:50 +04:00
cr-dump.c mem: Introduce page server 2013-03-14 18:16:44 +04:00
cr-exec.c vma: Introduce list-of-vmas object 2013-03-01 20:11:51 +04:00
cr-restore.c cr-restore.c: fixed compilation errors on ARM 2013-03-19 15:46:00 +04:00
cr-show.c mem: Protobuf format for page dumps 2013-03-14 18:16:41 +04:00
CREDITS Add the CREDITS file 2012-07-30 13:52:37 +04:00
crtools.c mem: Introduce page server 2013-03-14 18:16:44 +04:00
eventfd.c cr: generalized format strings 2013-01-16 19:20:08 +04:00
eventpoll.c cr: generalized format strings 2013-01-16 19:20:08 +04:00
fifo.c files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
file-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
file-lock.c locks: Move dump_task_file_locks into file-locks.c 2013-02-08 02:58:10 +04:00
files-reg.c files-reg: Use pr_err instead of pr_perror if fd not found 2013-03-18 22:25:32 +04:00
files.c restore: reserve the service descriptor for a control tty 2013-03-18 23:04:09 +04:00
fsnotify.c fsnotify: Don't fail on old versions where no inotify/fanotify image present 2013-01-17 19:20:41 +04:00
image.c ids: Don't forget to setup task state in write_img_inventory 2013-03-14 21:24:48 +04:00
ipc_ns.c ipc: restore IPC objects credentials 2013-01-17 16:00:48 +04:00
kcmp-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
libnetlink.c libnetlink: Make sure there is no error happened when dumping is done 2012-11-06 13:41:36 +04:00
log.c log: Add generic __print_on_level helper 2013-01-14 14:26:18 +04:00
Makefile make: Provide mandatory options in cflags-y variable 2013-02-23 00:36:36 +04:00
Makefile.crtools mem: Abstraction layer for putting pages into image 2013-03-14 18:16:43 +04:00
mount.c mount: Add PB entries for FS types 2013-03-18 22:32:57 +04:00
namespaces.c rst: Evaluate per-task clone mask early 2013-01-19 01:16:19 +04:00
net.c net: Do not BUG() if unsupported link type met 2013-02-11 17:14:20 +04:00
netfilter.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
page-pipe.c page-pipe: Don't forget to free page pipe buffer itself 2013-03-18 22:26:04 +04:00
page-xfer.c page-xfer.c: fixed format strings 2013-03-18 22:31:45 +04:00
parasite-syscall.c dump: Fix one-page mapping dump 2013-03-15 18:23:19 +04:00
pipes.c pipe: don't reopen pipes via /proc, if it's not required 2013-03-19 23:00:59 +04:00
proc_parse.c vma: Keep track of lonest vma in list and sum of its lengths 2013-03-01 20:12:33 +04:00
protobuf.c mem: Protobuf format for page dumps 2013-03-14 18:16:41 +04:00
pstree.c ids: Make sure the kIDs obtained from root_ids are sane 2013-03-18 22:42:28 +04:00
ptrace.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
rbtree.c code: Fix spaced indentation where found 2012-08-11 21:36:03 +04:00
README Drop kernel patching from README 2012-01-29 16:26:36 +04:00
shmem.c dump: Fix one-page mapping dump 2013-03-15 18:23:19 +04:00
signalfd.c files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
sk-inet.c protobuf: cast the result of the macro pb_repeated_size to size_t 2013-01-18 11:41:43 +04:00
sk-packet.c cr: use the length modifier %z to print an integer of the type size_t 2013-01-18 11:41:38 +04:00
sk-queue.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
sk-tcp.c check: Check for ability to get tcp timestamp 2013-02-14 20:27:55 +04:00
sk-unix.c sk-unix: dump/restore a file permissions 2013-01-30 03:28:01 +04:00
sockets.c sk: Fail is SO_BINDTODEVICE and SO_GET_FILTER are missing 2013-02-20 13:32:20 +04:00
sysctl.c cr: generalized format strings 2013-01-16 19:20:08 +04:00
tty.c tty: require stdin to be a terminal only if shell_job is set 2013-01-22 22:45:31 +04:00
util.c restore: reserve the service descriptor for a control tty 2013-03-18 23:04:09 +04:00
uts_ns.c ns: Introduce ns descriptors 2013-01-15 23:24:01 +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)