- 17 Aug, 2012 3 commits
-
-
Pavel Emelyanov authored
Long time ago the conn jobs were implemented in a bad manner -- they tried to connect to peer until it succeeds sleeping in the middle. Time to stop doing so and switch to proper futex-based waiting for bound event. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's unclear why we've had two different names for same argument. Moreover, "tsk" is definitely misnamed feature. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 16 Aug, 2012 2 commits
-
-
Pavel Emelyanov authored
These are used by single process, no need in keeping them in such a strange way. Plus, turn this array into a hash table for better search. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This one allocates a memory, that will be shared (MAP_SHARED) between all the subsequent children. This can now be just used for fd resote, later it will be required at inet socket port binding. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 Aug, 2012 8 commits
-
-
Pavel Emelyanov authored
The implementation is rather straightforward. One thing to note is that non-single membership of each type is not supported. It can be done, but I'm unaware of any software doing so. Note: the pb show routine should be tuned to support showing bytes. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Broken by 92b6d86c. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
No test for it, sorry :( There's no easy way to check it works. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We hash socket with inode and family, but search only by inode. Well, yes, family should match, since all sockets are in one sockfs in kernel, but let's make sure _we_ did things right by checking the family as well. 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>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's in net-next already and does provide all we currently need (and more). Implementation is like for inet and unix sockets. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
zdtm.sh copies all required libraries in a new root Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 14 Aug, 2012 23 commits
-
-
Pavel Emelyanov authored
protobuf.c: In function ‘pb_show_msg’: protobuf.c:384:68: error: ‘fsize’ may be used uninitialized in this function [-Werror=uninitialized] protobuf.c:247:9: note: ‘fsize’ was declared here The warning about 'may be uninitialized' is false -- the BUG() is a never-returning function. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
v4: 1) Only address specificator ('A') left New custom specificators: 'A': output as socket address Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
v2: 1) parser updated to properly parse strings like this: "11:%x 1:%d" Protobuf generic show function now accept a string with pretty specificators. The string have to look like below (an example): "0:%d 3:%u" where numbers with colon specifies field number (the same number as in proto-file) and "%[a-zA-Z]" specifies output format. If pretty specificator for specified for a field, then it will be used for output instead of generic hexidecimal view. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Let's pass field structure to show functions. Hope, it makes the mess less anoying... Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Will be usefull later with "pretty" show support. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
"depth" variable was moved to field structure. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Enable debugging only if DEBUG=1 provided. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Since we use some kernel tricks for CMSG_FIRSTHDR some compilers (in particular gcc version 4.4.5 20110214 (Red Hat 4.4.5-6)) do complain about strict aliasing. Thus pass -fno-strict-aliasing to be on the same coast as kernel is. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When we fork a pidns init there's no need in specifying its pid, as it will be autogenerated to 1. Clean the code not to mess with the last_pid sysctl at all in that case, rather than just omitting the write into it. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A test will be executed in new set of namespaces if the environment variable ZDTM_NEWNS is set. A pid of the root task will be written in $ZDTM_PIDFILE and a root fyle system will be changed on $ZDTM_ROOT. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
When we restore a pid namespace the root task will get some unknown pid in the original (i.e. -- the ns crtools a launched from) one. To find this pid out one can use this option -- it will make the pid obtained by the new init to be written into a pid file. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
It's required for compiling on RHEL6 Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
If netns is dumped, crtools fails if it collects unsupported sockets. If netns isn't dumped, crtools will fail only if an unsupported socket should be dumped. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Most part of services (ssh, httpd, ...) create two separate sockets one for ipv4 and one for ipv6. If IPV6_V6ONLY isn't dumped, bind() returns EADDRINUSE v2: use do_dump_opt and initialize yes = 1 Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Now crtools checks address, but it may be zero. For example, a listen socket is bound to zero address to accept connections from any addresses. v2: add a comment about zero port Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Aug, 2012 4 commits
-
-
Pavel Emelyanov authored
It doesn't makemuch sense in pulling this further. The generic genid generation seems to be enough for eny file type. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There is no need in 6 receive callbacks -- we can find out family and protocol (and thus -- type) out of the inet_diag_req_v2 passed through transparent arg of nlk request engine. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There are more in test/ (and checkpatch.pl crashes in the middle =), but seem to be all. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-