- 29 Aug, 2013 3 commits
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We will need to reuse this code in criu library, where libc calls are present thus we will be compiling it in shared mode. Because internal syscalls library won't be needed we wrap them with __sys macro which would hide the details of invocation depending on CR_NOGLIBC preprocessor variable passed from command line. Original-patch-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's not a problem now but in future we might need some special flags to be passed here. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 28 Aug, 2013 12 commits
-
-
Pavel Emelyanov authored
Tun files are attached to tun links, thus we need the latter to be dumped together with the former. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Reading from NetDeviceEntry directly is not safe and may cause buffer overflow. Use stlcpy helper. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Same as kernel provides, adopted from Linux sources. strlcpy is similar to strncpy but _always_ adds \0 at the end of string even if destination is shorter. 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>
-
Andrew Vagin authored
The kernel was compiled without the tun driver. This reverts commit 889a2129. Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
setuid and setgid drops the dumpable flag, so it should be set back. Otherwise proccesses will not able to read a few files in proc (e.g. /proc/pid/pagemap). This patch affects cow01: 11:50:04.429: 4: ERR: cow01.c:99: Unable to read data (errno = 13 (No such file or directory)) v2: typo fix 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>
-
Andrey Vagin authored
This reverts commit 21d94e00. This patch was created for investigating https://bugzilla.openvz.org/show_bug.cgi?id=2676 The bug is fixed and this patch does nothing useful, because tcpdump starts too late. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
(00.023059) 3898: Error (page-read.c:129): Can't read mapping page -1: Bad address Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
This patch fixes running into loop and data loss, when dumping semi-closed unix stream connection. patchv2 has error check, that was missed in v1. Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 24 Aug, 2013 4 commits
-
-
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
We have generic do_pb_show() call and tons of show_foo routines, that just call one with proper args. Compact the code by putting the args into array and calling the do_pb_show() in one place. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 23 Aug, 2013 3 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Tap-s and Veth-s can change one, need to keep it. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The recv-fd stage is only required if we created any transport fd. The post-open one is only required if there's at least one fdtype with post-open callback in ops. Both things can be evaluated in advance and unneeded stages can be skipped. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 24 Aug, 2013 1 commit
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 23 Aug, 2013 12 commits
-
-
Pavel Emelyanov authored
These contain linkage between number, data type and routines for pb messages we write/read to/from image files. Most of them have simple number-type-routines mapping, so introduce a generating script for that. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There's some strange setup on Jenkins boxes, so that /dev/net/tun is inaccessible. Need to check this after holidays :( 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
This thing is pretty straightforward -- on netns creation populate it with tun-s, after this collect tun files, open and attach them with regular fd-s engine. One tricky thing -- when populating namespace with tun links make them all persistent and drop this flag (if required) later, when the first alive opened appears. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
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>
-
Pavel Emelyanov authored
There will be two entities handled: 1. tun file -- an opened char device with misc major and tun minor that can be attached to item #2 2. tun netdevice -- another type of links Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
TUN devices are created with ioctl, but their parameters (e.g. flags with state, mtu, etc.) are to be restored with generic RTM_SETLINK message. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's not quite clean, but on dump non-seekable files dump 0xff...ff into 64-bit pos field of the image. Thus on restore we'd face an error in the do_open_reg. In order not to have separate helper for non-seekable files just skip the position restore for such. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Just a small helper, that reads string from ns' sysfs mount. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Some information about network devices may hide in sysfs, thus it's required to have one at hands while dumping the netns. Create the detached mount for that. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Some (most) network devices would like to have NetDeviceEntry with more fields, than currently present (and enough for lo and veth). Prepare for that by allowing them to define their own callback that would fill the resor of the pb entry and call write_netdev_img(). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 21 Aug, 2013 1 commit
-
-
Yicheng Qin authored
The option can run test with specified name directly without check or match. It can be used to run experimental test that is not in TEST_LIST. Signed-off-by:
Yicheng Qin <yichengq@google.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 20 Aug, 2013 4 commits
-
-
Pavel Emelyanov authored
Now we have a set of cinfo-s, it's possible to collect all this stuff in a plan for-loop. 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>
-