- 07 Feb, 2012 21 commits
-
-
Pavel Emelyanov authored
Structure used is the same, logic of connection is the same, and the infrastructure is ready for this. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Required for simpler future patching. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
The unix_dgram_peer coincides with the unix_conn_job. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
The unix_dgram_bound fully coincides with the unix_sk_listen. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
By the time we try to resolve datagram socket connection name the other end may not yet be on the hash. Move the address resolution into the conn job. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
The address length should be the real length, not the buffer size. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
-
Kir Kolyshkin authored
Do not leave it running Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
Otherwise test goes too far. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Andrey Vagin authored
-
Andrey Vagin authored
crtools doesn't restore sockopts, so if a test is executed in a second time bind() may return EADDRINUSE Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Kinsbursky Stanislav authored
v2: cleanup issues fixed What's new: 1) cloning to new IPC ns depends on built option. 2) Check for lookup shared segment by key added. 3) Check for creation new segnent after migration added. 4) Few check for syscalls results added. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
Put echo to a separate line to - keep the text within 80 columns - visually check that the positions of semicolons are the same Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
Remove excessive quotes and uneeded semicolons after breaks Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
echo normalizes spaces, tr converts them into newlines Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
(1) We should use -w so we can't match a substring (2) No need to use quotes Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
If we use shift and $* in run_test(), there is no need to quote arguments. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
Kir Kolyshkin authored
Replace them by just two. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Andrey Vagin <avagin@gmail.com>
-
- 03 Feb, 2012 7 commits
-
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Stanislav Kinsbursky authored
Cleanup patch. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
pthread_join works with this patch Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
According to Oleg the PTRACE_KILL doesn't and was-not-supposed-to work. Thus, kill tasks to final state explicitly and just detach from them. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 02 Feb, 2012 7 commits
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Since we need to operate with sysctls pretty heavy, better to add some common engine for all handlers. Based-on-patch-from: Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
This directory contains image files, which remains after tests Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
Use the save mechanosm as for processes. * Threads should starts together with processes * If a thread segfaulted, we should be able to detect it. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
I added two mechanism of synchronization. The second one is better. This patch deletes the first one. Before we had an entry (pid and lock) for each tasks and all this entries were shared between all processes. Now we don't need "lock" and we use pids from crtools to kill all processes if someone failed. v2: s/malloc/xmalloc Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 01 Feb, 2012 5 commits
-
-
Pavel Emelyanov authored
Otherwise we skip shared segment overflow on big scales and tests sporadically fail. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
When creating zombies we must wait for them to appear to test that we do support zombies, but not some transient state. But the thing is that we cannot use wait() or any other synchronous call here, thus we have to suck and use sleep(1) :( Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Strange fact, but a task seems to live for some time after PTRACE_KILL :( Don't know yet why this happens, I'm poking Oleg on that, but this one makes it die right at once. The streaming file read test passes after this. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
This commit brings the former "Rewrite task/threads stopping engine" commit back. Handling it separately is too complex so better try to handle it in-place. Note some tests might fault, it's expected. --- Stopping tasks with STOP and proceeding with SEIZE is actually excessive -- the SEIZE if enough. Moreover, just killing a task with STOP is also racy, since task should be given some time to come to sleep before its proc can be parsed. Rewrite all this code to SEIZE task and all its threads from the very beginning. With this we can distinguish stopped task state and migrate it properly (not supported now, need to implement). This thing however has one BIG problem -- after we SEIZE-d a task we should seize it's threads, but we should do it in a loop -- reading /proc/pid/task and seizing them again and again, until the contents of this dir stops changing (not done now). Besides, after we seized a task and all its threads we cannot scan it's children list once -- task can get reparented to init and any task's child can call clone with CLONE_PARENT flag thus repopulating the children list of the already seized task (not done also) This patch is ugly, yes, but splitting it doesn't help to review it much, sorry :( Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
This reverts commit 4f83d028. It breaks IPC test-case, need to investigate.
-