- 25 Mar, 2013 6 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
In case if there some error happened better to know which exactly file failed on open, for example | Error (files-reg.c:535): Can't open file /lib64/libgcc_s-4.4.7-20120601.so.1 on restore: No such file or directory Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
In case if there image corruption and page entry addres is invalid -- exit out gracefully instead of BUG_ON hammer. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
| Map 0x0000000000400000-0x00000000004a5000 0x0000000000000000 vma | premap 0x0000000000400000-0x00000000004a5000 -> 00007f26eb898000 Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 20 Mar, 2013 6 commits
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
For example | Error (protobuf.c:574): Unexpected EOF on /home/crtools/tools/cpt2/test/out/utsns-1.img Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
To fetch name of file opened from procfs. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
"Can't fixup VMA's fd" is more understandable than plain "Can't fixup fd". Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise | (00.013475) 1: Collect fdinfo pid=626 fd=4 id=0x 17008 Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 19 Mar, 2013 5 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
If a master point has sid, it doesn't mean, that all slave points will have sid. Look at tty03 for example: PID SID TT COMMAND 26748 26748 ? tty03 26749 26749 pts/2 \_ tty03 26750 26750 ? \_ tty03 The second process has not a file descriptor for the ctl tty, but this tty is opened in tty03. v2: If a slave point with sid has not a master point, the option --shell-job must be set and sid isn't restored for such terminals. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
PID SID TT COMMAND 26748 26748 ? tty03 26749 26749 pts/2 \_ tty03 26750 26750 ? \_ tty03 The second process has not a file descriptor for the ctl tty, but this tty is opened in tty03. Currently CRIU can not restore this test case correctly. Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The system call open can add O_LARGEFILE. A point is reopend for unsharing a file descriptor. So here are two types of points. One is returned by pipe() and all other ones are got via opening /proc/PID/fd. Currently I know only one difference between these types, it's O_LARGEFILE. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Tested-by: Alexander Kartashov <alekskartashov@parallels.com Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
Use decode_pointer() to convert a virtual address into a native pointer. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 18 Mar, 2013 10 commits
-
-
Andrey Vagin authored
I'm really lucky. prepare_ctl_tty: e->fd = get_service_fd(CTL_TTY_OFF); // -1 as fd is not set send_fd_to_self: if (dup2(fd, dfd) != dfd) { // tries to install sfd, but -1 == -1 tty_restore_ctl_terminal: if (!is_service_fd(fd, CTL_TTY_OFF)) return fd == get_service_fd(type); // -1 = -1 Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise we will get nil dereference in shared_fdt_prepare Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Here is updated one. 0001-ids-Make-sure-kIDs-is-present-in-image.patch >From dee67b483f0ed1a6f81ebe95ae9bdf74d3ab2ad7 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov <gorcunov@openvz.org> Date: Fri, 15 Mar 2013 00:43:30 +0400 Subject: [PATCH 1/2] ids: Make sure kIDs is present in image Otherwise yield error instead of nil dereference if we meet a broken image. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
This mode was introduced less than year ago: commit 9883035ae7edef3ec62ad215611cb8e17d6a1a5d Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Sun Apr 29 13:12:42 2012 -0700 pipes: add a "packetized pipe" mode for writing Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
mnt_entry::fstype is a part of image ABI, thus we need to provide some "common" encoding outside tools would know about this field encoding. Thus we instorduce fstype enum in .proto file and use it in source code as well. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
This patch generalizes format strings in the file page-xfer.c to prevent format string warnings on ARM. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.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>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise | (00.002843) 1: Error (files-reg.c:522): Can't find regfile for 0 | : Success which is inappropriate here. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 Mar, 2013 8 commits
-
-
Andrey Vagin authored
Actually rt_sigset_t and k_rtsigset_t are the same Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Otherwise ppage_bitmap and page_bitmap will be updated for wrong VMA Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The iov array for 1-page mapping would be zero. Fix this silly mistake. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This makes it easier to merge with anon vmas dumping and makes use of page server for shared memory. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 14 Mar, 2013 5 commits
-
-
Cyrill Gorcunov authored
Need to have proper fake-item state to make this code work ok: get_task_ids if (item->state != TASK_DEAD) { ret = dump_task_kobj_ids(item); if (ret) goto err_free; Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Without patch | Error (cr-restore.c:414): Unable to reserve memory: Invalid argument with applied | Error (cr-restore.c:414): Unable to reserve memory (0 bytes): Invalid argument more convenient for debugging. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- Free unpacked PB data - Close file descriptor Signed-off-by:
Cyrill Gorcunov <gorcunov@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>
-
Andrey Vagin authored
In Fedora /var/run is on tmpfs, so all directories should be recreated each times. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-