[Devel] [PATCH 1/2] vzctl: synchronize CRIU with vzctl

2013-05-31 Thread Andrey Vagin
vzctl provides two descriptors signalfd and waitfd, it's used for apply host-side configuration after creating environment. A signal is send to signalfd after creating environment and an answer is recieved from waitfd. Signed-off-by: Andrey Vagin --- scripts/Makefile.am| 3 ++- scripts/vps-

[Devel] [PATCH 2/2] ct: return positive error code from ct_env_create_real and ct_restore_fn

2013-05-31 Thread Andrey Vagin
The most part of vzctl functions return positive error code. This two functions were exceptions, because they return PID of init to create netns file. Currently each of these functions creates netns file by itself. Signed-off-by: Andrey Vagin --- src/lib/hooks_ct.c | 40 -

Re: [Devel] [PATCH 1/2] vzctl: synchronize CRIU with vzctl

2013-05-31 Thread Kir Kolyshkin
On 05/31/2013 02:56 AM, Andrey Vagin wrote: vzctl provides two descriptors signalfd and waitfd, it's used for apply host-side configuration after creating environment. A signal is send to signalfd after creating environment and an answer is recieved from waitfd. Looks awesome overall. See some

Re: [Devel] [PATCH 1/2] vzctl: synchronize CRIU with vzctl

2013-05-31 Thread Kir Kolyshkin
On 05/31/2013 11:15 AM, Kir Kolyshkin wrote: On 05/31/2013 02:56 AM, Andrey Vagin wrote: vzctl provides two descriptors signalfd and waitfd, it's used for apply host-side configuration after creating environment. A signal is send to signalfd after creating environment and an answer is recieved f

Re: [Devel] [PATCH 2/2] cpt: restore veth devices with correct names (v4)

2013-05-31 Thread Kir Kolyshkin
The whole series applied, thanks! http://git.openvz.org/?p=vzctl;a=commitdiff;h=20bd87251 http://git.openvz.org/?p=vzctl;a=commitdiff;h=4fdbcb51f5 http://git.openvz.org/?p=vzctl;a=commitdiff;h=557abfef46 On 05/30/2013 03:07 AM, Andrey Vagin wrote: transmit pair of veth names to criu via the op

Re: [Devel] [PATCH] [RFC] cpt: clean up dump files

2013-05-31 Thread Kir Kolyshkin
On 05/30/2013 03:43 AM, Andrey Vagin wrote: OpenVZ checkpointing saves all data in one file. Currently criu is used for upstream CTs and it generates many files (one file for each type of objects), so we can get the following error Stale CT dump file /var/lib/vz/dump/Dump.101 found, removing Can

[Devel] [PATCH 1/2] vzctl: synchronize CRIU with vzctl (v2)

2013-05-31 Thread Andrey Vagin
vzctl provides two descriptors signalfd and waitfd, it's used for apply host-side configuration after creating environment. A signal is send to signalfd after creating environment and an answer is recieved from waitfd. v2: fix comments from Kir Signed-off-by: Andrey Vagin --- scripts/Makefile.a

Re: [Devel] [PATCH 1/2] vzctl: synchronize CRIU with vzctl (v2)

2013-05-31 Thread Kir Kolyshkin
Applied with the below fix. On 05/31/2013 01:10 PM, Andrey Vagin wrote: vzctl provides two descriptors signalfd and waitfd, it's used for apply host-side configuration after creating environment. A signal is send to signalfd after creating environment and an answer is recieved from waitfd. v2:

Re: [Devel] [PATCH 2/2] ct: return positive error code from ct_env_create_real and ct_restore_fn

2013-05-31 Thread Kir Kolyshkin
Committed with the following fix On 05/31/2013 02:56 AM, Andrey Vagin wrote: The most part of vzctl functions return positive error code. This two functions were exceptions, because they return PID of init to create netns file. Currently each of these functions creates netns file by itself. Sig

Re: [Devel] [PATCH 1/2] vzctl: synchronize CRIU with vzctl (v2)

2013-05-31 Thread Kir Kolyshkin
On 05/31/2013 01:10 PM, Andrey Vagin wrote: vzctl provides two descriptors signalfd and waitfd, it's used for apply host-side configuration after creating environment. A signal is send to signalfd after creating environment and an answer is recieved from waitfd. v2: fix comments from Kir Signed