- 02 Apr, 2013 6 commits
-
-
Pavel Emelyanov authored
Multi-task/thread apps spoil log as simple logger does char-by-char output. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This info is not in per-ID file, not per-PID, so need special care. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Show only image info relevant to given pid. Also reuse the introduced --pid argument for exec action. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Print delimiters and image names for easier reading of the output. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Threads' IDs were not initialized on img load. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 01 Apr, 2013 8 commits
-
-
Andrey Vagin authored
It's required for per-test cleaning. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A parasite code returns zero sid for such cases. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The root task must remain a session leader after c/r. The root task can be executed in another pidns and the sid from another name space will be invalid. Cc: Cyrill Gorcunov <gorcunov@openvz.org> Reported-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-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>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Actually this test case is a frame work for creating a process tree. It creates a process tree according with a predefined sequence of actions. This test case create the following process tree: 5 5 \_ session02 ( 0) 6 6 \_ session02 ( 1) 8 7 | \_ session02 ( 3) 15 12 | \_ session02 (10) 10 10 \_ session02 ( 5) 11 7 \_ session02 ( 6) 13 12 \_ session02 ( 8) v2: improve log messages Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
The image data may have no futex provided but we have no "optional" entry for that (because futex data is a part of thread_core_entry message). Still we know that futex length can't be zero thus make it "optional" by a value -- if length is zero, we consider it as a sign to skip. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
James Bottomley authored
We've received some requests to create a way to interface with crtools that doesn't involve forking the utilities, so we're going to create a linkable library for this. In order to be fair, we plan to allow proprietary code to link with this library and thus want to change the licence of the CRIU code base to be LGPL *only* for this library directory, preserving the rest of the code as GPL. Because creating the library may involve refactoring, I anticipate that some code that's currently GPL will have to move into lib/ and become LGPL (and this may occur in future as well), so I've amended the COPYING file to spell out for contributors that code outside lib/ is GPL and inside lib/ is LGPL, but that they give future permission to change the licence to GPL or LGPL if code has to move into (or out of) lib/, based on acceptance of a patch into the CRIU code base, so j random developer can't download the code and make it all LGPL by applying a private patch to move everything into lib/. All the Parallels authors have agreed to this, but we have a couple of non parallels ones on the cc to this email I'd like explicit acks from. Cc: Qiang Huang <h.huangqiang@huawei.com> Cc: Andrew Grigorev <andrew@ei-grad.ru> Signed-off-by:
James Bottomley <JBottomley@Parallels.com> Acked-by:
Qiang Huang <h.huangqiang@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 29 Mar, 2013 4 commits
-
-
Andrey Vagin authored
The netlink_diag doesn't provide any info about non-connected and non-bound sockets. 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
VMA-s may be protected against read, so rights for such VMA-s should be changed for dumping and protected back after dumping. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's a stupid mistake which resulted in all tasks share the rlimits on restore :( Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 28 Mar, 2013 8 commits
-
-
Andrey Vagin authored
It isn't required anymore Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The idea is simple. If the collection of given type of sockets failed, crtools can't be sure, that it's able to dump such sockets correctly. 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>
-
Andrey Vagin authored
Currently do_dump_one_inet_fd returns ret, but this variable is overwritten a few times and it can be zero on error paths. Use a separate variable for the function exit code. By default it is -1 and it is set to zero at the end. It's not changed anywere anywhere except these two places. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The packet diag are not compiled in Fedora 19 kernel. The netlink diag is going to be merged in 3.10. 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
Some syscalls return error code, so for easier debugging instead of zapping it -- print it together with error message. And make error message more detailed as well. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 27 Mar, 2013 14 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Otherwise we will clean up the root mntns too. Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Otherwise if the root is mounted with MS_SHARED, pivot_root fails with EINVAL. Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The CLD_XXX macros are not bit fields. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
So when we fail print error thus a user would know where exactly it failed. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> CC: Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This will result in more sane error in case restore is launched on such semi-complete images. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Currently dump silently terminates and restore emits some meaning-less messages in either case. Make these important messages more informative. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The functionality for dumping signals and netlink sockets are not merged in the upstream kernel yet. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
lookup_socket() returns pointer or NULL. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Some exit()'s are called with exit(-1), some are with exit(1). Use exit(1) everywhere for consistency. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's being noticed on arm platform the .got table has been missed to include in .crblob section, so fix it. Reported-by:
Chanho Park <chanho61.park@samsusng.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
And add pid arg for more verbosity. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-