Commit 555c8acd authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

crtools: add --work-dir(-W) option

Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 291aa3f6
...@@ -93,7 +93,7 @@ int main(int argc, char *argv[]) ...@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
return -1; return -1;
while (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[] = { static struct option long_opts[] = {
{ "tree", required_argument, 0, 't' }, { "tree", required_argument, 0, 't' },
{ "pid", required_argument, 0, 'p' }, { "pid", required_argument, 0, 'p' },
...@@ -104,6 +104,7 @@ int main(int argc, char *argv[]) ...@@ -104,6 +104,7 @@ int main(int argc, char *argv[])
{ "contents", no_argument, 0, 'c' }, { "contents", no_argument, 0, 'c' },
{ "file", required_argument, 0, 'f' }, { "file", required_argument, 0, 'f' },
{ "images-dir", required_argument, 0, 'D' }, { "images-dir", required_argument, 0, 'D' },
{ "work-dir", required_argument, 0, 'W' },
{ "log-file", required_argument, 0, 'o' }, { "log-file", required_argument, 0, 'o' },
{ "namespaces", required_argument, 0, 'n' }, { "namespaces", required_argument, 0, 'n' },
{ "root", required_argument, 0, 'r' }, { "root", required_argument, 0, 'r' },
...@@ -168,6 +169,8 @@ int main(int argc, char *argv[]) ...@@ -168,6 +169,8 @@ int main(int argc, char *argv[])
return -1; return -1;
} }
break; break;
case 'W':
break;
case 'o': case 'o':
opts.output = optarg; opts.output = optarg;
break; break;
...@@ -385,6 +388,7 @@ usage: ...@@ -385,6 +388,7 @@ usage:
" -D|--images-dir DIR directory for image files\n" " -D|--images-dir DIR directory for image files\n"
" --pidfile FILE write a pid of a root task, service or page-server\n" " --pidfile FILE write a pid of a root task, service or page-server\n"
" to this file\n" " to this file\n"
" -W|--work-dir DIR directory for logs/pidfiles/stats and for criu process itself\n"
"\n" "\n"
"* Special resources support:\n" "* Special resources support:\n"
" -x|--" USK_EXT_PARAM " allow external unix connections\n" " -x|--" USK_EXT_PARAM " allow external unix connections\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment