[Devel] [PATCH 1/3] criu: export join_ve helper
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Fri Jul 21 10:41:53 MSK 2017
It will be used to restore iptables in VE#0 on restore stage.
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
criu/cr-restore.c | 2 +-
criu/include/crtools.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 534b0f3..c07be1c 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -1761,7 +1761,7 @@ extern char *get_dumpee_veid(pid_t pid_real);
* but presume to find it in known place. Otherwise simply
* don't enter into veX with one warning.
*/
-static int join_ve(pid_t pid, bool veX)
+int join_ve(pid_t pid, bool veX)
{
static const char ve0_tasks_path[] = "/sys/fs/cgroup/ve/tasks";
static bool may_join_ve = false;
diff --git a/criu/include/crtools.h b/criu/include/crtools.h
index 534f93d..29fccb8 100644
--- a/criu/include/crtools.h
+++ b/criu/include/crtools.h
@@ -39,4 +39,6 @@ extern void pr_check_features(const char *offset, const char *sep, int width);
ret; \
})
+int join_ve(pid_t pid, bool veX);
+
#endif /* __CR_CRTOOLS_H__ */
More information about the Devel
mailing list