[CRIU] [PATCH 1/5] crtools: add --work-dir(-W) option

Pavel Emelyanov xemul at parallels.com
Tue Nov 12 11:20:24 PST 2013


On 11/13/2013 01:42 AM, Ruslan Kuprieiev wrote:

Missing help text for the option.

> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> ---
>  crtools.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/crtools.c b/crtools.c
> index 0e592d8..4a0017f 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;
> 




More information about the CRIU mailing list