[CRIU] [PATCH v5 18/21] unix: Rework ghost name generation
Cyrill Gorcunov
gorcunov at gmail.com
Sat May 12 20:11:27 MSK 2018
On Sat, May 12, 2018 at 10:04:55AM -0700, Andrey Vagin wrote:
> On Thu, May 10, 2018 at 05:57:58PM +0300, Cyrill Gorcunov wrote:
> > We need unique names of ghost unix sockets so that they won't
> > inetrsect with another simultaneously running criu instance,
> > since while using containers with own root fs is a preferred
> > there is no mandatory requirement to do so, and people are
> > free to c/r individual process trees on the host with
> > share root.
> >
> > For this sake when we create a unix socket to be treated
> > as a ghost (ie with furthre delete once connected) we
> > need it to be a unique amont others. For this sake we
> > use uuid library which fits our needs. In particular
> > ghost names are converted into the form of
> >
> > | /criu-e7845e6a-28f8-41bf-adda-e61efe81b3f4
>
> * We can't create all ghost sockets in /, because it can be read-only.
> * We have to create a ghost file on the same mountpoint where is
> was before dump.
>
As been discussed face to face, I'll rework this moment
to keep former names.
More information about the CRIU
mailing list