[CRIU] [PATCH] libcriu: Add criu_set_root to the interface.

Deyan Doychev deyan at 1h.com
Wed Mar 19 10:59:26 PDT 2014


From: Deyan Doychev <deyandoichev at gmail.com>

This function implements the --root command line option in libcriu.

Signed-off-by: Deyan Doychev <deyandoichev at gmail.com>
---
 lib/criu.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/criu.c b/lib/criu.c
index 33927e8..c5667aa 100644
--- a/lib/criu.c
+++ b/lib/criu.c
@@ -99,6 +99,11 @@ void criu_set_log_level(int log_level)
 	opts->log_level		= log_level;
 }
 
+void criu_set_root(char *root)
+{
+	opts->root = strdup(root);
+}
+
 void criu_set_log_file(char *log_file)
 {
 	opts->log_file = strdup(log_file);
-- 
1.7.1



More information about the CRIU mailing list