No description
Find a file
Cyrill Gorcunov 7ff9efda4a zdtm: fifo-rowo-pair test update
Address Andrew's comments

 - use TEST_VALUE macro instead of open coded value
 - use WIFx macros for child status testing
 - kill child/parent on error

Note that it was not clear from an initiall patch
change log -- the difference between fifo_wronly
test case and this one is that we use fork() call
here which allow us to make sure that fifo restoration
code logic will be tested more widely.

Basically the flowchart of the test case:

parent				child
------				-----
open RW fifo (slave)
open RO fifo (master)
				open WO fifo (master)
				dup parent slave to slave1

				... waiting c/r to happen ...
				... waking up from c/r ...

				send bytes to master
				send bytes to slave1

				finish
... initiating c/r ...
... waking up from c/r ...

read bytes from master
read bytes from slave

PASS :D

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-07-02 16:56:01 +04:00
Documentation docs: Add -s option 2012-05-03 16:21:15 +04:00
include restore: wait while restroring pgid (v2) 2012-07-02 16:53:54 +04:00
test zdtm: fifo-rowo-pair test update 2012-07-02 16:56:01 +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 fifo: Add checkpoint restore for fifos v4 2012-07-01 17:15:48 +04:00
cr-restore.c restore: restore pgid in two phases 2012-07-02 16:53:55 +04:00
cr-show.c fifo: Add checkpoint restore for fifos v4 2012-07-01 17:15:48 +04:00
crtools.c crtools: Celan crtools.c from unneeded headers 2012-06-28 03:15:01 +04:00
eventfd.c eventfd: Tune up fdinfo format for new kernel output 2012-07-01 15:35:40 +04:00
eventpoll.c eventpoll, inotify: Don't fail on watchees absence 2012-05-12 16:23:33 +04:00
fifo.c fifo: Sanitize fifo restore 2012-07-01 21:47:24 +04:00
file-ids.c kcmp: Introduce generic object ID generator 2012-04-09 18:01:18 +04:00
files-reg.c fifo: Sanitize fifo restore 2012-07-01 21:47:24 +04:00
files.c pstree: move all code about pstree in a separate file 2012-06-27 21:07:30 +04:00
gen-offsets.sh make: Generate offsets from linked files only 2012-04-18 18:22:15 +04:00
image.c fifo: Add checkpoint restore for fifos v4 2012-07-01 17:15:48 +04:00
inotify.c inotify: Tune up fdinfo format for new kernel output 2012-07-01 15:35:54 +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 fifo: Add checkpoint restore for fifos v4 2012-07-01 17:15:48 +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: Mounting code core 2012-06-27 20:57:39 +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 pipes: Make dump_one_pipe_data/restore_pipe_data being non-static 2012-07-01 17:13:11 +04:00
proc_parse.c mount: Build mount points tree out of a plain list 2012-06-27 20:57:34 +04:00
pstree.c restore: create fake process group leaders 2012-07-02 16:53:56 +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: Restore unbound inet sockets v5 2012-07-01 14:42:42 +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 sockets: Restore unbound inet sockets v5 2012-07-01 14:42:42 +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 img: Move all the img files management code to image.c 2012-06-28 03:12:08 +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)