• Kinsbursky Stanislav's avatar
    restore: socket queues support · e6f39a41
    Kinsbursky Stanislav authored
    This patch was designed to be generic and thus usable for all kinds of
    sockets. Not sure, thah this goal has been reached, but at least I tried.
    
    Key ideas:
    1) sockets queue dump file have to be readed first and then packets entries
       with offset for it's data in image will be collected in doubly linked list by
       read_sockets_queue() function.
    
    Note: list will contain sockets queues for all (!) the sockets of the task.
    
    2) socket queue can be restored by restore_socket_queue(), which selects
       packets from the list by passed id and use sendfile() top send them to the
       passed socket. It also removes packet from the list and frees it.
    
    Based on xemul@ patches.
    Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@openvz.org>
    Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    e6f39a41
Name
Last commit
Last update
Documentation Loading commit data...
include Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...
README Loading commit data...
cr-dump.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
file-ids.c Loading commit data...
files.c Loading commit data...
gen-offsets.sh Loading commit data...
ipc_ns.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
namespaces.c Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
parasite.lds.S Loading commit data...
proc_parse.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
restorer-log.c Loading commit data...
restorer.c Loading commit data...
restorer.lds.S Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
util-net.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...