[CRIU] [PATCH 3/5] criu --help: improve --inherit-fd description
Kir Kolyshkin
kir at openvz.org
Wed Nov 2 10:59:10 PDT 2016
Add that --inherit-fd may also access file_path argument, such as
in this example from wiki (see
https://criu.org/Inheriting_FDs_on_restore#Regular_files):
$ ./test.sh > /tmp/old &
<pid>
$ sudo criu dump -j -t <pid>
$ sudo criu restore -d -j --inherit-fd 'fd[7]:tmp/old' 7> /tmp/new
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
criu/crtools.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/criu/crtools.c b/criu/crtools.c
index 1b40b87..96d27ce 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -898,6 +898,7 @@ usage:
" pipe[inode]\n"
" socket[inode]\n"
" file[mnt_id:inode]\n"
+" path/to/file\n"
" --empty-ns net Create a namespace, but don't restore its properties\n"
" (assuming it will be restored by action scripts)\n"
" -J|--join-ns NS:{PID|NS_FILE}[,OPTIONS]\n"
--
2.7.4
More information about the CRIU
mailing list