[CRIU] [PATCH v2 3/3] namespaces: docs updated

Kinsbursky Stanislav skinsbursky at openvz.org
Mon Jan 30 10:46:20 EST 2012


From: Stanislav Kinsbursky <skinsbursky at parallels.com>



Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>

---
 Documentation/crtools.txt |    5 +++--
 crtools.c                 |    6 ++++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Documentation/crtools.txt b/Documentation/crtools.txt
index 80d58d4..c7b028d 100644
--- a/Documentation/crtools.txt
+++ b/Documentation/crtools.txt
@@ -47,8 +47,9 @@ OPTIONS
 -d::
     Detach 'crtools' itself once restore is complete.
 
--n::
-    Checkpoint namespaces.
+-n <ns>::
+    Checkpoint namespaces. Namespaces must be separated by comma.
+    Currently supported namespaces: uts.
 
 -o <file>::
     Write logging messages to 'file'.
diff --git a/crtools.c b/crtools.c
index 615c886..a050100 100644
--- a/crtools.c
+++ b/crtools.c
@@ -360,8 +360,8 @@ int main(int argc, char *argv[])
 
 usage:
 	printk("\nUsage:\n");
-	printk("  %s dump [-c] -p|-t pid\n", argv[0]);
-	printk("  %s restore -p|-t pid\n", argv[0]);
+	printk("  %s dump [-c] -p|-t pid [-n ns]\n", argv[0]);
+	printk("  %s restore -p|-t pid [-n ns]\n", argv[0]);
 	printk("  %s show [-c] (-p|-t pid)|(-f file)\n", argv[0]);
 
 	printk("\nCommands:\n");
@@ -376,6 +376,8 @@ usage:
 	       "                 checkpoint complete, in case of showing file contents --\n"
 	       "                 show contents of pages dumped in hexdump format\n");
 	printk("  -d             detach after restore\n");
+	printk("  -n             checkpoint/restore namespaces - values must be separated by comma\n");
+	printk("                 supported: uts\n");
 
 	printk("\nAdditional common parameters:\n");
 	printk("  -D dir         save checkpoint files in specified directory\n");



More information about the CRIU mailing list