[CRIU] [PATCH] files-reg: Drop MAX_GHOST_FILE_SIZE

Cyrill Gorcunov gorcunov at gmail.com
Mon Aug 10 06:04:17 PDT 2015


On Mon, Aug 10, 2015 at 03:56:10PM +0300, Pavel Emelyanov wrote:
> 
> Thus we have MAX_GHOST_FILE_SIZE dangling in files-reg.c w/o any usage.
> Please, fix.

Indeed, thanks! Attached.
-------------- next part --------------
>From 1255da8584ff3d981ae562ca2e9210cb65c77157 Mon Sep 17 00:00:00 2001
From: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Mon, 10 Aug 2015 16:02:18 +0300
Subject: [PATCH] files-reg: Drop MAX_GHOST_FILE_SIZE

Not needed anymore.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 files-reg.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/files-reg.c b/files-reg.c
index 16233831bb04..6ef8db57bccd 100644
--- a/files-reg.c
+++ b/files-reg.c
@@ -66,12 +66,6 @@ struct link_remap_rlb {
 };
 static LIST_HEAD(link_remaps);
 
-/*
- * This constant is selected without any calculations. Just do not
- * want to pick up too big files with us in the image.
- */
-#define MAX_GHOST_FILE_SIZE	(1 * 1024 * 1024)
-
 static int create_ghost(struct ghost_file *gf, GhostFileEntry *gfe, char *root, struct cr_img *img)
 {
 	int gfd, ghost_flags, ret = -1;
-- 
2.4.3



More information about the CRIU mailing list