[CRIU] [PATCH 16/17] unix: Add support of ghost sockets

Andrei Vagin avagin at virtuozzo.com
Wed Apr 4 20:38:18 MSK 2018


On Wed, Apr 04, 2018 at 10:27:33AM +0300, Cyrill Gorcunov wrote:
> On Wed, Apr 04, 2018 at 12:00:30AM -0700, Andrei Vagin wrote:
> > > 
> > > I think we don't need to generate a new unique name for deleted sockets.
> > > 
> > > We can use the old scheme, but before deleting a file, we need to open
> > > it with O_PATH and save a file descriptor in fdstore, then we can use it
> > > to connect peer sockets.
> > >
> > 
> > Pls take a look at the attached patch. 
> 
> I suppose it passes the test, so I'm more than fine with it!
> Merge it into criu-dev please and lets move on :)

It is POC. It doesn't support a case, when a socket directory was
deleted, maybe something else, so you need to improve it.


More information about the CRIU mailing list