mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
crtools: add --work-dir(-W) option
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
291aa3f6d6
commit
555c8acd4d
@@ -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"
|
||||
|
Reference in New Issue
Block a user