mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
criu(8): fix --inherit-fd description
This patch describes the correct syntax of --inherit-fd. travis-ci: success for Add/fix description of --external and --inherit-fd CC: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
aa2cb64d58
commit
0df3f79fc0
1 changed files with 17 additions and 5 deletions
|
|
@ -263,11 +263,23 @@ For example, the command line for the above example should look like this:
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
Restores previously checkpointed processes.
|
Restores previously checkpointed processes.
|
||||||
|
|
||||||
*--inherit-fd* *fd[*'N'*]:*'path'::
|
*--inherit-fd* *fd[*'N'*]:*'resource'::
|
||||||
Inherit file descriptors. This asks *criu* to use an already opened
|
Inherit a file descriptor. This option lets *criu* use an already opened
|
||||||
file descriptor 'N' for restoring a file indentified by 'path'. Note
|
file descriptor 'N' for restoring a file indentified by 'resource'.
|
||||||
that the 'N' must be enclosed in a literal square brackets, that
|
This option can be used to restore an external resource dumped
|
||||||
usually needs to be escaped from shell.
|
with the help of *--external* *file*, *tty*, and *unix* options.
|
||||||
|
+
|
||||||
|
The 'resource' argument can be one of the following:
|
||||||
|
+
|
||||||
|
- *tty[*'rdev'*:*'dev'*]*
|
||||||
|
- *pipe[*'inode'*]*
|
||||||
|
- *socket[*'inode'*]*
|
||||||
|
- *file[*'mnt_id'*:*'inode'*]*
|
||||||
|
- 'path/to/file'
|
||||||
|
|
||||||
|
+
|
||||||
|
Note that square brackets used in this option arguments are literals and
|
||||||
|
usually need to be escaped from shell.
|
||||||
|
|
||||||
*-d*, *--restore-detached*::
|
*-d*, *--restore-detached*::
|
||||||
Detach *criu* itself once restore is complete.
|
Detach *criu* itself once restore is complete.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue