criu/include
Pavel Emelyanov a3e53658f7 tun: Dump tun files and tun links
The major issue with dump is -- some info id get via netlink,
some via sysfs and some (!) via opened and attached tun file.
But the latter cannot be created, if there's another one attached
(or the mq device is full with threads).

Thus we have to dump this info via existing tun file and keep one
in memory till the link dump code takes place.

Opposite situation is also possible -- we can have a persistent
unattached device. In this case we have to attach to it, dump
things and detach back.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-08-23 19:02:55 +04:00
..
asm-generic asm: Add builtin_memcpy, builtin_memcmp generic helpers 2013-05-23 16:51:14 +04:00
bug.h clang: add an exception for BUG_ON_HANDLER 2013-04-04 14:00:21 +04:00
compiler.h include/compiler.h: Cleanup 2013-02-15 17:34:38 +04:00
cpu.h cpu: Make cpu routines being per-acrh 2013-02-18 18:42:08 +04:00
cr-show.h tun: Initial skeleton for tun support 2013-08-23 18:57:40 +04:00
crtools.h page-server: Convert opts.addr into char * 2013-08-11 12:01:14 +04:00
err.h headers: Add err.h header 2013-04-02 20:27:51 +04:00
eventfd.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
eventpoll.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
fifo.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
file-ids.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
file-lock.h lock: Show long option in log message about using one 2013-03-27 20:17:59 +04:00
files-reg.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
files.h rst: Compact file-descs collects a bit 2013-08-21 01:06:58 +04:00
fsnotify.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
image-desc.h tun: Initial skeleton for tun support 2013-08-23 18:57:40 +04:00
image.h image: Move image descriptors to own files 2013-05-28 22:12:06 +04:00
inet_diag.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
ipc_ns.h crtools: Get rid of on-stack cr_options 2013-05-28 21:11:13 +04:00
kcmp-ids.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
kerndat.h soft-dirty: Check that kernel reports soft-dirty bits 2013-04-15 13:24:32 +04:00
libnetlink.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
list.h headers: list.h -- Add hlist helpers 2013-04-02 20:29:25 +04:00
lock.h atomic: Use atomic_read instead of atomic_get 2013-08-16 19:37:06 +04:00
log-levels.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
log.h log: Make pr_err_once to use pr_err 2013-01-14 14:26:07 +04:00
magic.h tun: Initial skeleton for tun support 2013-08-23 18:57:40 +04:00
mem.h mem: Add PME_ bits for page frame retrieval 2013-05-23 12:51:27 +04:00
mount.h crtools: Get rid of on-stack cr_options 2013-05-28 21:11:13 +04:00
namespaces.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
net.h net: Ability to restore existing link's params with rtm 2013-08-23 18:46:48 +04:00
netfilter.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
netlink_diag.h crtools: add netlink_diag.h 2013-03-26 00:23:13 +04:00
packet_diag.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
page-pipe.h mem: Comment page-read, page-xfer and page-pipe 2013-04-16 11:34:53 +04:00
page-read.h mem: Comment page-read, page-xfer and page-pipe 2013-04-16 11:34:53 +04:00
page-xfer.h page-server: check that all data have been accepted 2013-08-09 15:39:37 +04:00
parasite-syscall.h parasite: Rename ack-waiting function to look better 2013-07-17 08:56:17 +04:00
parasite.h util: Rename pie's util-net.c into util.c 2013-07-29 12:43:30 +04:00
pipes.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
proc_parse.h posix-timer: Parse proc /proc/<pid>/timers and save info in list 2013-07-01 16:19:26 +04:00
protobuf-desc.h tun: Initial skeleton for tun support 2013-08-23 18:57:40 +04:00
protobuf.h collect: Reduce amount of args to collect_image call 2013-08-21 03:27:06 +04:00
pstree.h parasite: use transparent thread indexes 2013-05-24 18:47:11 +04:00
ptrace.h check: check PTRACE_{GET,SET}SIGMASK 2013-07-16 17:24:16 +04:00
rbtree.h x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
restorer.h restore: do not kill processes if not-all of them have been created 2013-08-20 15:17:30 +04:00
shmem.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
sigframe.h restore: Add restoration of alternative signal stack 2013-07-10 17:31:12 +04:00
signalfd.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
sk-inet.h inet: Restore SO_REUSEADDR in case of rollback 2013-07-16 14:48:24 +04:00
sk-packet.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
sk-queue.h show: Remove options args from ->show callback 2013-05-08 00:23:42 +04:00
sockets.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
stats.h stats: Account total time to restore 2013-08-11 21:25:42 +04:00
syscall-types.h syscalls: Add proper syscalls definition. 2013-07-01 16:19:21 +04:00
sysctl.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
tty.h collect: Shorten common images collecting code 2013-08-21 03:52:18 +04:00
tun.h tun: Dump tun files and tun links 2013-08-23 19:02:55 +04:00
unix_diag.h x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
util-pie.h mount: Factor out detached mountpoint opening 2013-07-29 13:12:00 +04:00
util.h util: Make set_proc_mountpoint static 2013-08-11 20:02:33 +04:00
uts_ns.h crtools: Get rid of on-stack cr_options 2013-05-28 21:11:13 +04:00
vdso.h vdso: Diet include/vdso.h 2013-06-13 19:41:09 +04:00
xmalloc.h headers: util.h -- Move memory helpers to xmalloc.h 2013-04-02 21:15:27 +04:00