[CRIU] [PATCH 2/2] opts: Allo to specify the maximum size of ghost files

Cyrill Gorcunov gorcunov at gmail.com
Mon Aug 10 05:25:40 PDT 2015


On Mon, Aug 10, 2015 at 03:13:01PM +0300, Pavel Emelyanov wrote:
> 
> > @@ -60,6 +60,7 @@ void init_opts(void)
> >  	opts.cpu_cap = CPU_CAP_DEFAULT;
> >  	opts.manage_cgroups = CG_MODE_DEFAULT;
> >  	opts.ps_socket = -1;
> > +	opts.ghost_limit = (1 * 1024 * 1024);
> 
> = MAX_GHOST_FILE_SIZE

What for? This constant is defined in .c file, I don't
see a reason to redefine it somehere in header until
we really need it. Hm?


More information about the CRIU mailing list