- 04 Jun, 2012 1 commit
-
-
Cyrill Gorcunov authored
- add test for flags recovery - drop sockets, not needed - simplify test for owners and signumber v2: remove polling (by avagin@) Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 01 Jun, 2012 1 commit
-
-
Andrey Vagin authored
SIGABRT may be blocked. We do that in the restorer. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 31 May, 2012 8 commits
-
-
Kinsbursky Stanislav authored
v5: 1) make change directory messages supressed. v4: 1) Fixed apply conflicts. v3: 1) "crtools" goal dependences fixed. v2: 1) wrong "protobuf/tmp.pb-c.h" inclusion removed from cr-dump.c Without this patch "touch parasite.c" will lead to rebuild of the whole project. This patch also introduces "pie" goal as a subsystem. This will be usefull, when other subsystems will apper, because it allows to build them in parallel. "all" becomes default goal. This allows to skip deps inclusion for empty, "all", "zdtm" and "test-legacy" goals. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
v2: Synchronize the argument type of __alloc_pstree_item and the values you put into it. I.e. int-int or bool-bool, not bool-int. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Taking into account the way the dump saves pstrees in the image. If pstree.img isn't edited, a slow path should not be executed at all. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
because they describes a process TREE. It's usefull, when we dump tasks from another pid namespace, because a real pid is got from parasite. In previous version we need to update pid in two places one is in a pstree_item and one is in a children array. A process tree will be necessery to restore sid and pgid, because we should add fake tasks in a tree. For example if a sesion leader is absent. v2: fix rollback actions v3: fix comments from Pavel Emelyanov * add macros for_each_pstree_item * and a few bugs 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
Code to test unix dgarm sockets (extracted from previous sockets00 test case). Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Code to test socketpair (extracted from previous sockets00 test case). Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Don't mix various types of sockets in a single test case, in case of problems it become harder to fins which kind of socket failed. The removed test cases will be addressed in further patches. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 17 May, 2012 2 commits
-
-
Pavel Emelyanov authored
Shifd fd and type left and print ID with %#x Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Print IDs with %#x to get rid of spaces between 0x and numbers. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 30 May, 2012 20 commits
-
-
Kinsbursky Stanislav authored
The reason for this patch is that only phony goal can depend on phony targets. But with protobuf we will have to execute phony targets prior to main target build. So, this patch set add few new goals and dependences: 1) "all" become default goal. 2) new goals "deps" and "preq" introduced. 3) "all" depends on "deps" and "crtools". 4) All global goals like "zdtm" and "test-legacy" now depends on "all". Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Instead of using wildcard expressions like "*.c" lets implicitely specify desired dependence files. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Also, .PHONY have to be specified prior to desired goals, And it's better to have one line for all goals instead on one line per goal. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Replace dances with "|" by simple dependence rule both for DEPS and OBJS. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Use fdtype_ops facility to c/r inet sockets. v2: - Use BUG_ON if socket is attempted to be dumped several times Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Use fdtype_ops facility to c/r unix sockets. v2 - BUG_ON added in dump_one_unix_fd if socket is already dumped since we never should dump same socket several times - The order of restore remains as it was before, the lookup is done via socket inode numbers Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
The task is not complete - this is just a part of what have to be done. I.e. looks like a lot of excessive deps can be fixed. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Victor Konyashkin authored
Need increase buffer in msgque.c to avoid overflow via memcpy, because now mtext[20] less than ANOTHER_TEST_STRING "Yet another test sysv5 msg". Signed-off-by:
Victor Konyashkin <vkonyashkin@parallels.com> Acked-by:
Andrey Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Victor Konyashkin authored
It's need to add -Wno-unused-result option to lib and static Makefile to avoid errors like: msg.c:58:8: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result] Signed-off-by:
Victor Konyashkin <vkonyashkin@parallels.com> Acked-by:
Andrey Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Viktor Konyashkin authored
The mode argument must be supplied when O_CREAT is specified in flags. Otherwise it will cause compile error due to -Werror is specified. Signed-off-by:
Viktor Konyashkin <vkonyashkin@parallels.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The testcase is buggy -- the signal is delivered _before_ we checkpoint and restore it, thus it checks nothing. But after the fix test fails, due to bug in fowners restore. Will fix it later. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Otherwise this memory are initialized from parent and child, but parent may initialize, when a child has written a useful data. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Otherwise waitpid returns -EINTR and the test case fails. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise I see output like | Dumping path for 1536412160 fd via self 27 [/usr/bin/screen] where fd is taken from stack and what is worse -- we work with root privilegues, thus dumping _anything_ from stack is very bad idea. With explicitly cleared stack data and FD_DESC_INVALID the log file will have an entry like | Dumping path for -3 fd via self 27 [/usr/bin/screen] Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
This will allow to implement tty dumping in future. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's really confusing when one use -o option and didn't see update on top of log file. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 25 May, 2012 1 commit
-
-
Cyrill Gorcunov authored
This eliminates the warning below as well | pipes.c: In function ‘open_pipe’: | pipes.c:252:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable] Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 18 May, 2012 3 commits
-
-
Andrey Vagin authored
to fix warning "error: ‘XXXXXX’ defined but not used" 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>
-
Andrey Vagin authored
We want to know about this warnings Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 May, 2012 2 commits
-
-
Cyrill Gorcunov authored
Make it more readable. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The global variable me isn't initialized, when we tried to use it. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 13 May, 2012 2 commits
-
-
Pavel Emelyanov authored
The proc_parse file turns into a strange pile of homebrew scanf/fgets/strtok/strchr/etc. combination. I don't like it :( Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We'll have to parse it all and the format is not scanf friendly, so it's simpler to have it in a separate fn. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-