[CRIU] [PATCH 1/N] crtools: add --work-dir(-W) option
Ruslan Kuprieiev
kupruser at gmail.com
Thu Nov 14 17:33:49 PST 2013
This set of patches will allow us to specifie work directory where pidfiles/logs/stats are placed.
Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
crtools.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/crtools.c b/crtools.c
index 0e592d8..32f3f3b 100644
--- a/crtools.c
+++ b/crtools.c
@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
return -1;
while (1) {
- static const char short_opts[] = "dsRf:t:p:hcD:o:n:v::xVr:jl";
+ static const char short_opts[] = "dsRf:t:p:hcD:o:n:v::xVr:jlW:";
static struct option long_opts[] = {
{ "tree", required_argument, 0, 't' },
{ "pid", required_argument, 0, 'p' },
@@ -104,6 +104,7 @@ int main(int argc, char *argv[])
{ "contents", no_argument, 0, 'c' },
{ "file", required_argument, 0, 'f' },
{ "images-dir", required_argument, 0, 'D' },
+ { "work-dir", required_argument, 0, 'W' },
{ "log-file", required_argument, 0, 'o' },
{ "namespaces", required_argument, 0, 'n' },
{ "root", required_argument, 0, 'r' },
@@ -168,6 +169,8 @@ int main(int argc, char *argv[])
return -1;
}
break;
+ case 'W':
+ break;
case 'o':
opts.output = optarg;
break;
@@ -385,6 +388,7 @@ usage:
" -D|--images-dir DIR directory for image files\n"
" --pidfile FILE write a pid of a root task, service or page-server\n"
" to this file\n"
+" -W|--work-dir DIR directory for logs/pidfiles/stats and for criu process itself\n"
"\n"
"* Special resources support:\n"
" -x|--" USK_EXT_PARAM " allow external unix connections\n"
--
1.8.1.2
More information about the CRIU
mailing list