[CRIU] [PATCHv3 1/2] unix: sysctl -- Preserve max_dgram_qlen value

Andrei Vagin avagin at gmail.com
Mon Nov 25 10:48:53 MSK 2019


On Sun, Nov 03, 2019 at 08:55:16AM -0800, Andrei Vagin wrote:
> > @@ -1824,6 +1899,8 @@ static int dump_netns_conf(struct ns_id *ns, struct cr_imgset *fds)
> >  	int ret = -1;
> >  	int i;
> >  	NetnsEntry netns = NETNS_ENTRY__INIT;
> > +	SysctlEntry *unix_confs = NULL;
> > +	size_t sizex = ARRAY_SIZE(unix_conf_entries);
> >  	SysctlEntry *def_confs4 = NULL, *all_confs4 = NULL;
> >  	int size4 = ARRAY_SIZE(devconfs4);
> >  	SysctlEntry *def_confs6 = NULL, *all_confs6 = NULL;
> > @@ -1840,7 +1917,8 @@ static int dump_netns_conf(struct ns_id *ns, struct cr_imgset *fds)
> >  	o_buf = buf = xmalloc(
> >  			i * (sizeof(NetnsId*) + sizeof(NetnsId)) +
> >  			size4 * (sizeof(SysctlEntry*) + sizeof(SysctlEntry)) * 2 +
> > -			size6 * (sizeof(SysctlEntry*) + sizeof(SysctlEntry)) * 2
> > +			size6 * (sizeof(SysctlEntry*) + sizeof(SysctlEntry)) * 2 +
> > +			sizex * (sizeof(SysctlEntry*) + sizeof(SysctlEntry))
> 
> need to add a comment which explains what all these mean
> 

You can ignore this comment.


More information about the CRIU mailing list