[Devel,1/3] criu: export join_ve helper

Submitted by Stanislav Kinsburskiy on July 21, 2017, 7:41 a.m.

Details

Message ID 20170721074153.16840.11299.stgit@skinsbursky-vz7.qa.sw.ru
State New
Series "criu: restore iptables in VE#0"
Headers show

Commit Message

Stanislav Kinsburskiy July 21, 2017, 7:41 a.m.
It will be used to restore iptables in VE#0 on restore stage.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 criu/cr-restore.c      |    2 +-
 criu/include/crtools.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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__ */