[CRIU] [PATCH 01/12] page-read: Don't try to dedup from img cache/proxy
Pavel Emelyanov
xemul at virtuozzo.com
Wed Jun 28 16:46:07 MSK 2017
It's simply impossible (yet), so emit a warning.
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
criu/pagemap.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/criu/pagemap.c b/criu/pagemap.c
index 130e511..4a0f142 100644
--- a/criu/pagemap.c
+++ b/criu/pagemap.c
@@ -433,11 +433,8 @@ static int maybe_read_page_img_cache(struct page_read *pr, unsigned long vaddr,
break;
}
- if (opts.auto_dedup) {
- ret = punch_hole(pr, pr->pi_off, len, false);
- if (ret == -1)
- return -1;
- }
+ if (opts.auto_dedup)
+ pr_warn_once("Can't dedup from image cache\n");
if (ret == 0 && pr->io_complete)
ret = pr->io_complete(pr, vaddr, nr);
--
2.1.4
More information about the CRIU
mailing list