- 12 Nov, 2012 5 commits
-
-
Cyrill Gorcunov authored
The per-thread information requires own space in parasite data. In particular we will keep the blocked signals bound to thread pids. For this sake the caller need to provide the parasite how many threads will be used to calculate space. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It will hold the blocked signals for threads. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise we might get nil dereference in sigreturn restore. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We will need to extend non-zombie tests. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Don't forget to test thread leader as well. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Nov, 2012 2 commits
-
-
Cyrill Gorcunov authored
No func change. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Better to stick with the convention we're trying to follow in general -- negative codes for error. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 06 Nov, 2012 11 commits
-
-
Pavel Emelyanov authored
Linux kernel emulates anon-shared mappings by mapping internal tmpfs file in. We try to detect this by checking that the file under map is such, but do it with error -- major == 0 check is wrong, as regular tmpfs file can be such as well as btrfs or ecryptfs can screw things up. The only working way of doing this is to get the dev_t of this internal tmpfs mount. 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
Fix a few places where positive value returned as an error sign. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Fix a typo. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's a predicate function, boolean value is more appropriate here. Signed-off-by:
Cyrill Gorcunov <gorcunov@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>
-
Vladimir Davydov authored
During live migration timer overrun can jump forward too. Signed-off-by:
Vladimir Davydov <vdavydov@parallels.com> Acked-by:
Stanislav Kinsbursky <skinsbursky@openvz.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
This sneaked during parasite error handling code rework. When parasite returned negative error code we should not invert it. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Print "<empty>" message for such filed instead. #2425 Signed-off-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
If the kernel is misconfigured (say UDP diag module is not set) we should detect such situation and report an error. This patch adds a test for error code. Note the kernel requires a patch as well. Without kernel patch this test do not harm anyway, thus safe to merge. #2412 Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
In case if the pr_err happens before pr_msg, the string buffer will have dangling timestamp prefix. Skip it here. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Nov, 2012 19 commits
-
-
Andrey Vagin authored
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
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This is required to work with tcpdump. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Three parts. Proc: open of map_files' link doesn't work on sockets. We fstatat it and check that it's a socket (it will be packet), then save the socket inode on vma_area. Dump: we resolve socket inode to socket id and save it on vma. We use id, not inode, since on restore we'll have to mmap some opened file, not just abstract socket with inode. Restore: when reading vma-s we just need to find out on what fd the respective packet socket is opened (i.e. -- no map-and-close sockets supported by now) and dup() it to let restorer mmap it back. All this make it possible to c/r the tcpdump tool! 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>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
We can have a situation, when a socket is bound, but isn't listen yet. I can't find a situation, when we should not restore parameters. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
https://bugzilla.openvz.org/show_bug.cgi?id=2408Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A stream socket may be bound, but is not listen yet. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Looks like it can be restored already. #2408 Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's no longer true, we've deresigned the parasite pretty time ago. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
No need for explicit conversion here. It simply brings more noise. 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>
-
Huang Qiang authored
We have more than 2 levels right now, update the usage message. Signed-off-by:
Huang Qiang <h.huangqiang@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Huang Qiang authored
If we use -v [num] to set log_level and we happen to set it in the end of arguments, the [num] we set may not work. This patch will fix it. Signed-off-by:
Huang Qiang <h.huangqiang@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Sizes of send and recv buffers are set to maximum to restore queues, after that sizes of buffers are restored. O_NONBLOCK is set to a socket to prevent blocking during restore. #2411 v2: do the same for unix sockets. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 01 Nov, 2012 3 commits
-
-
Pavel Emelyanov authored
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
One thing to note. The socket filter proggie is a set of struct-s wuth 8 and 16 bits values in it. Protobuf doesn't support such thing and it's too annoying to mess with yet another message for that. Instead, I encode all this stuff into array of fixed64 fields to handle endianity (yes, protobuf handles it, but each field is not just 64-bit value, but a structure). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-