[CRIU] [PATCH 0/2] zdtm: don't skip mounts with the same root and target

Andrey Vagin avagin at openvz.org
Tue May 24 14:29:36 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Now we don't detect extra mounts, if they have peers with the same root
and target paths.

====================== Run zdtm/static/mnt_ext_auto in ns ======================
cc -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -iquote ../lib/arch/x86/include -I../lib  -c -o mnt_ext_auto.o mnt_ext_auto.c
cc   mnt_ext_auto.o ../lib/libzdtmtst.a   -o mnt_ext_auto
Start test
./mnt_ext_auto --pidfile=mnt_ext_auto.pid --outfile=mnt_ext_auto.out --dirname=mnt_ext_auto.test
Run criu dump
Run criu restore
1: Old mounts lost: []
1: New mounts appeared: [('/test', '/ext_mounts')]
############# Test zdtm/static/mnt_ext_auto FAIL at mounts compare #############

Andrew Vagin (2):
  zdtm: don't skip mounts with the same root and source
  zdtm/mnt_ext_*: don't affect the host mount namespace

 test/zdtm.py                      | 14 +++++++---
 test/zdtm/static/mnt_ext_auto.c   | 56 +++++++++++++++++++++------------------
 test/zdtm/static/mnt_ext_master.c | 49 ++++++++++++++--------------------
 3 files changed, 60 insertions(+), 59 deletions(-)

-- 
2.7.4



More information about the CRIU mailing list