[CRIU] [PATCH 10/12]v2 deduplication: add auto-dedup option

Tikhomirov Pavel snorcht at gmail.com
Mon Dec 16 02:55:34 PST 2013


Signed-off-by: Tikhomirov Pavel <snorcht at gmail.com>
---
 crtools.c            |    4 ++++
 include/cr_options.h |    1 +
 2 files changed, 5 insertions(+)

diff --git a/crtools.c b/crtools.c
index 1076a46..c47a660 100644
--- a/crtools.c
+++ b/crtools.c
@@ -129,6 +129,7 @@ int main(int argc, char *argv[])
 			{ "prev-images-dir", required_argument, 0, 53},
 			{ "ms", no_argument, 0, 54},
 			{ "track-mem", no_argument, 0, 55},
+			{ "auto-dedup", no_argument, 0, 56},
 			{ },
 		};
 
@@ -268,6 +269,9 @@ int main(int argc, char *argv[])
 		case 55:
 			opts.track_mem = true;
 			break;
+		case 56:
+			opts.auto_dedup = true;
+			break;
 		case 54:
 			opts.check_ms_kernel = true;
 			break;
diff --git a/include/cr_options.h b/include/cr_options.h
index b90b4e1..717c9ae 100644
--- a/include/cr_options.h
+++ b/include/cr_options.h
@@ -34,6 +34,7 @@ struct cr_options {
 	char			*addr;
 	bool			track_mem;
 	char			*img_parent;
+	bool			auto_dedup;
 };
 
 extern struct cr_options opts;
-- 
1.7.9.5



More information about the CRIU mailing list