- 09 Aug, 2017 24 commits
-
-
Pavel Emelyanov authored
Same here -- now when we collect info and driver at the same place late enough we can verify info once, then attach to files. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Since we need tty driver for info, we may lookup the guy when collecting info, not when attaching it to a file. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
There are two object for TTY files -- the file itself and tty_info. The latter is effectively an inode image. Right now we collect infos before files, so that latter can find former and attach to it. In order to move tty files on generic file entry we need to collect files very early, much earlier, that infos. So here's the patch that changes the order of tty file vs info collection. The general idea is -- when collecting files put them in a list and when an info arrives it walks that list and attaches ttys to self. Next patches will also add some optimization available with that scheme. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
There are two goals of this merge. First is to reduce the amount of image files we generate and scan on restore. The latter is more importaint, as even if we have no weird stuff like signalfd, we still try to open this file. So after the merge we try to open ~15 image files (out of ~30) less %) which is nice. The 2nd goal is to simplify the C/R support for SCM messages. This becomes possible with the fact, that all files we have can be distinguished by their ID only, w/o type. This, in turn, makes image layout for SCMs much simpler. Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
I'm about to merge all the file images into one big image, so here's the place that would read it and collect. Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Update README.md
-
Pavel Begunkov authored
Signed-off-by:
Pavel Begunkov <asml.silence@gmail.com>
-
- 08 Aug, 2017 1 commit
-
-
Pavel Emelyanov authored
(Try to) Fix the readme problems found by the feedmereadmes guys: * Tuned up the tagline * Added info about what for, history, competitors, etc. * Put more links for potential contributors
-
- 25 Jul, 2017 1 commit
-
-
Pavel Emelyanov authored
This device is an API endpoint, just skip it. Also, prepare the ground for sit dump. Issue #11 Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
- 18 Jul, 2017 14 commits
-
-
Pavel Emelyanov authored
Most of the changes this time are preparation for future new features and optimizations, that hasn't yet been well tested and polished. However, we have several new features. The most important one is the --tcp-close option to help migration of Docker containers, that constantly change their IP address. And, as usually, a set of bugfixes. Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Cyrill Gorcunov authored
The struct fd_link link allocated in inner context might be freed before dump call (depending on compiler), instead use a safer approach. Signed-off-by:
Cyrill Gorcunov <gorcunov@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
The unified hierarchy controller doesn't have any name, so criu hangs while parsing this sort of strings. Let's skip those for now, until we implement cgroup2 support. https://github.com/xemul/criu/issues/252 v2: Code comments Reported-and-tested-by:
Adrian Reber <adrian@lisas.de> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
It looks like this call to open_image was left from the times when we reworked packets sending and collected them early. ✓ travis-ci: success for sk-packet: Don't open image when not needed Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Bernhard M. Wiedemann authored
in order to allow for reproducible builds. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. Signed-off-by:
Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Veronika Kabatova authored
Code for tcp-close option was added after boolean-valued options were modified to accept their negations as well. Since tcp-close option works only with boolean values and does not accept any argument, it should be wriiten in the same manner to allow users to override the value when using configuration files. Signed-off-by:
Veronika Kabatova <vkabatov@redhat.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Veronika Kabatova authored
Only long options are supported in configuration files. "-v" is the only short option which doesn't have a corresponding long option, therefore users wouldn't be able to setup verbosity in configuration files without this patch. Signed-off-by:
Veronika Kabatova <vkabatov@redhat.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Alice Frosi authored
Use "union semun" for semctl() to make testcase also work on s390x. Signed-off-by:
Alice Frosi <alice@linux.vnet.ibm.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Michael Holzheu authored
The TEST_STRING "Hello World!" has 13 bytes size. Therefore the 10 bytes used for the buffer size are not sufficient. Fix this and use sizeof() to be on the safe side. Signed-off-by:
Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Michael Holzheu authored
The "args" parameter in apply_sb_flags() is unsigned long. Therefore also use unsigned long for the cast. The "sflags" variable in do_new_mount() is unsigned long. Therefore use sizeof(sflags) instead of sizeof(int). Signed-off-by:
Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Michael Holzheu authored
The htole64() function returns a 64 bit value. This is stored in a 32 bit integer in wait_fds_event() which results in 0 for big-endian 64 bit platforms. The fuxtex() system call also requires 32 bit values. Fix this and use htole32() also for 64 bit platforms. Signed-off-by:
Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Andrei Vagin authored
We have to collect all zombies Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Adrian Reber authored
Newer glibc releases have removed SIGUNUSED from bits/signum.h which breaks building criu on those systems: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8082d91e1c449e0cb137468b731004a5e605c8c6 SIGSYS returns the same value as SIGUNUSED and testing has shown that criu still successfully completes zdtm with this patch. Signed-off-by:
Adrian Reber <areber@redhat.com> Reviewed-by:
Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
The remap is searhced by dev:ino pair that is known only when root task starts (and opend the remap). The collection stage is about to happen in crtools, so move the resolve in post-prep. Reviewed-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
-