Re: [Devel] [PATCH criu 1/3] mount: Add export_mnt_ns_roots helper

2017-10-23 Thread Andrei Vagin
On Thu, Oct 12, 2017 at 10:21:29AM +0300, Cyrill Gorcunov wrote: > This helper produce space separated list of > mount namespace roots which can be exported > then into environment variable. > > https://jira.sw.ru/browse/PSBM-71861 > > Signed-off-by: Cyrill Gorcunov > --- > criu/include/mount.h

Re: [Devel] [PATCH criu 1/3] mount: Add export_mnt_ns_roots helper

2017-10-23 Thread Cyrill Gorcunov
On Mon, Oct 23, 2017 at 03:19:41PM -0700, Andrei Vagin wrote: ... > > This function is always return dst... How vzctl will find a required > mount? It walks over mount points and check if symlink to the desired device exist (we create a special symlink at moment of dump). Once symlink is found we

Re: [Devel] [PATCH criu 1/3] mount: Add export_mnt_ns_roots helper

2017-10-23 Thread Andrei Vagin
On Thu, Oct 12, 2017 at 10:21:29AM +0300, Cyrill Gorcunov wrote: > This helper produce space separated list of > mount namespace roots which can be exported > then into environment variable. > > https://jira.sw.ru/browse/PSBM-71861 > > Signed-off-by: Cyrill Gorcunov > --- > criu/include/mount.h

Re: [Devel] [PATCH criu 2/3] action-scripts: Export mount namespace roots via CRIU_MNT_NS_ROOTS

2017-10-23 Thread Andrei Vagin
On Thu, Oct 12, 2017 at 10:21:30AM +0300, Cyrill Gorcunov wrote: > In particular we need to process filesystem to restore > ploop device migration, thus export roots and the script > can use CRTOOLS_INIT_PID together with nsenter to step > into prepared file systems and whatever needed. > > https:

Re: [Devel] [PATCH libvzctl 3/3] scripts: Tune up ploop links on post-setup-namespaces stage

2017-10-23 Thread Andrei Vagin
On Thu, Oct 12, 2017 at 10:21:31AM +0300, Cyrill Gorcunov wrote: > From: Cyrill Gorcunov > > The restore of ploop device is a bit tricky: its major/minor > is not a constant but allocated dynamicaly by the kernel > driver. Thus we may have a situation when /dev/ploopXX > points for some obsolete