- 19 Jun, 2012 19 commits
-
-
Cyrill Gorcunov authored
It's static function near the file_desc_ops, no need for a long name. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Checkpoint and restore do use fdtype_ops and file_desc_ops intensively so reorder pipes functions, this allow us to make them static and drop additional declarations. No func changes. 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
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
There is no need to make it xmalloc'ed, it's global for all processes dumped. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
xemul: Why we haven't done this earlier? Because the pe entry contained the amount of bytes in the pipe and this value had to be calculated before we wrote this entry into the image. Now the pipe data is stored in another img file and we can happily split pe dump and pde dump into two calls. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need it for fifo data dumping. At moment the helper is pushed out of compilation procedure for easier review, and will be real used in next patch. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need it for pipes data dumping. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
And make it dep. on PIPE_DEF_BUFFERS, this points to a limit from kernel side. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
| Restoring fd 5 (state -> create) | Create fd for 5 | Going to dup 5 into 5 | Restoring fd 0 (state -> receive) 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> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
sys_exit() takes down only the currect thread. exit_group() should be used to take down all threads. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Looks-good-to: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Victor Konyashkin authored
If address already in use then need increase port. The problem occured because the socket_listen.c и socket_aio.c can try to use the same address. Signed-off-by:
Victor Konyashkin <vkonyashkin@parallels.com> Acked-by:
Andrew Vagin <avagin@parallels.com> 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
That is what it is -- a hash for file descriptors based on their ID. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
* Create fifo and two descriptors rw and ro * Write data and close rw descriptor * Suspend/resume * Read data from ro descriptor 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
Use them explicitly. This fixes problem | LINK crtools | /usr/lib/librt.so: could not read symbols: File in wrong format | collect2: ld returned 1 exit status | make[1]: *** [crtools] Error 1 | make: *** [all] Error 2 Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Kinsbursky Stanislav <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 04 Jun, 2012 3 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Ad addition to commit 63000f5b, this place was missed to fix. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
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 7 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>
-