[CRIU] [PATCH 2/5] deduplication: add dedup comand to criu
Pavel Emelyanov
xemul at parallels.com
Tue Oct 15 00:14:52 PDT 2013
> @@ -345,6 +346,10 @@ int main(int argc, char *argv[])
> if (!strcmp(argv[optind], "service"))
> return cr_service(opts.restore_detach);
>
> + if (!strcmp(argv[optind], "dedup")) {
Excessive braces
> + return cr_dedup();
> + }
> +
> pr_msg("Unknown command \"%s\"\n", argv[optind]);
> usage:
> pr_msg("\n"
> new file mode 100644
> index 0000000..3840a12
> --- /dev/null
> +++ b/include/cr-dedup.h
> @@ -0,0 +1,6 @@
> +#ifndef __CR_DEDUP_H__
> +#define __CR_DEDUP_H__
> +
> +int cr_dedup(void);
Not sure a header with one fwd decl is required. Move this into crtools.h,
there's a block of such stuff.
> +
> +#endif
More information about the CRIU
mailing list