- 07 Feb, 2014 11 commits
-
-
Kir Kolyshkin authored
setup_opts_from_req() prints an error message, so there's no need for its caller to print another one. While at it, simplify/unify error checking, treating any non-zero value as an error. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Adrian Reber authored
Using a soname makes it easy for applications to detect if the ABI of libcriu.so has changed. It still creates libcriu.so as before in lib. During 'make install' additional links are created: libcriu.so -> libcriu.so.1.0 libcriu.so.1 -> libcriu.so.1.0 Signed-off-by:
Adrian Reber <adrian@lisas.de> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
CONFIG_HAS_PEEKSIGINFO_ARGS is used there. Cc: Christopher Covington <cov@codeaurora.org> Reported-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kir Kolyshkin authored
For x86_64, LIBDIR can be tricky to find out. Nevertheless, this works for at least RedHat/CentOS/Fedora, SLES/openSUSE, Debian/Ubuntu and Gentoo. So, while it can guess LIBDIR wrong, this is still a good approximation for those installing criu from source. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Adrian Reber <adrian@lisas.de> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
After previous fixes we can merge and move a couple of them for easier reading. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Same for previous patch with vmas -- we do it on collect and on real open. Just put the pointer on fifo_info structure. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We do it first -- on collect, second -- on restore. The 2nd lookup is excessive, we can put fd pointer on vm_area at lookup and reuse one later. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
On restore we only need to know currnet task mappings' start and end to find where to put the restorer blob. And since the smaps file in /proc/pid is up to 3 times slower, than the maps one, it makes perfect sense just to parse the latter one. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Those opened for cwd, root, exe link and vma-s do not care about the pos value. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 05 Feb, 2014 11 commits
-
-
Pavel Emelyanov authored
Usefult to test restore time, for example. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
With new remap refcount users will get the counter eventually as they appear. Reported-by: Andrew Vagin <avagin@parallels.com> via Jenkins Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Adrian Reber authored
To link Open MPI against CRIU I need the header files installed. Attached is a patch which adds the necessary Makefile rules to install libcriu.so and the header file to compile against CRIU. Signed-off-by:
Adrian Reber <adrian@lisas.de> Acked-by:
Kir Kolyshkin <kir@openvz.org> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
With packed reg-files we have a complex fd - file - vma - remap interaction. I think this should be reflected in the code comment. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
If a file mmaped or pointed by exe link is unlinked, we will generate a ghost file for it. On restore the ghost file will be created with the users counter 1 and the very first open (e.g. for mmap) will unlink the file. Handle this by bumping up user counter for every mapping pointing on the file. This appeared after previous patches that packed the reg-files image. Before it each vma and exe link created separate entry in the reg-files image. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We have tons of files with equal IDs, e.g. libraries mapped to different tasks. No need in writing all this duplicate stuff into images -- cache the IDs with dev:ino keys. Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
For unlinked opened and mmaped files we'd need to care about remaps, for this the callback with both file_desc and fdinfo_list_entry will be required. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 04 Feb, 2014 18 commits
-
-
Andrey Vagin authored
When a process is started in a new pid namespace, the init process must colleck zombies. But before this the init process must waits the root test process, which returns a status of preparation stage. Currently these two operation can race, because the both ones call waitpid(). Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Useful to test restore time -- just abort restore with this action and that's it. Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
If we specify log level to none (0) the result is LOG_INFO (2). Acked-by:
Andrew Vagin <avagin@parallels.com> Acked-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Broken by 3929c853Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Broken by bbab13ebSigned-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
There are two reasons to ban subdirs in logfile name. First, process might be in different namespace, so it is right to give us fd for work dir, just like we did with images dir. Second, as service might be ran as root, it is unsafe to give an opportunity to fill any dir with trash. If you wan't to put logs/stats somwhere else than images_dir, you could set work_dir_fd. Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
As we've added work_dir_fd to RPC, lets add support for it to libcriu. Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
otherwise it won't compile: util.c: In function ‘cr_daemon’: util.c:594:8: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Werror=unused-result] chdir("/"); ^ Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We errorneously report nr_compared as total number of restored pages. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
If we've found zero VMAs in MmEntry try to look for VMAs in vma-.img image file. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When writing VMAs we perform too many small writes into vma-.img files. This can be easily fixed by moving the vma-s into mm-s, all the more so they cannot be splitted from each other. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We'll merge mm and vma images, so mm should be read in the same place where vmas are. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
After previous patch is't now possible. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-