[CRIU] [PATCH 5/6] options: Add --const-tty option
Cyrill Gorcunov
gorcunov at openvz.org
Wed Sep 26 09:05:46 EDT 2012
In pretty rare cases a user might want the crtools
to not migrate dumped slave peers but restore them
on existing locations.
A case for that is two tasks where one opens master
peer and second opens a slave peer, but only second
task is dumped.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
crtools.c | 5 +++++
include/crtools.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/crtools.c b/crtools.c
index 121e2da..92081eb 100644
--- a/crtools.c
+++ b/crtools.c
@@ -99,6 +99,7 @@ int main(int argc, char *argv[])
{ "veth-pair", required_argument, 0, 47},
{ "action-script", required_argument, 0, 49},
{ "ext-tty", no_argument, 0, 50},
+ { "const-tty", no_argument, 0, 51},
{ },
};
@@ -216,6 +217,9 @@ int main(int argc, char *argv[])
case 50:
opts.ext_tty = true;
break;
+ case 51:
+ opts.const_tty = true;
+ break;
case 'V':
pr_msg("Version: %d.%d\n", CRIU_VERSION_MAJOR, CRIU_VERSION_MINOR);
return 0;
@@ -311,6 +315,7 @@ usage:
pr_msg(" * network-lock - lock network in a target network namespace");
pr_msg(" * network-unlock - unlock network in a target network namespace");
pr_msg(" --ext-tty allow external tty connections\n");
+ pr_msg(" --const-tty constant tty connections\n");
pr_msg("\n* Logging:\n");
pr_msg(" -o|--log-file [NAME] log file name (relative path is relative to --images-dir)\n");
diff --git a/include/crtools.h b/include/crtools.h
index 10c407d..88bba0a 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -94,6 +94,7 @@ struct cr_options {
bool restore_detach;
bool ext_unix_sk;
bool ext_tty;
+ bool const_tty;
bool tcp_established_ok;
bool evasive_devices;
unsigned int namespaces_flags;
--
1.7.7.6
More information about the CRIU
mailing list