[CRIU] [PATCH] zdtm.py: bind-mount a test root as slave

Andrey Vagin avagin at openvz.org
Tue Dec 15 03:01:54 PST 2015


From: Andrew Vagin <avagin at virtuozzo.com>

In this case it has an external master_id and we want to test that
criu can handle it correctly.

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index ca4fe28..5bb1880 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -167,7 +167,7 @@ class ns_flavor:
 		self.__mknod("rtc")
 
 	def init(self, l_bins, x_bins):
-		subprocess.check_call(["mount", "--make-private", "--bind", ".", self.root])
+		subprocess.check_call(["mount", "--make-slave", "--bind", ".", self.root])
 		self.root_mounted = True
 
 		if not os.access(self.root + "/.constructed", os.F_OK):
-- 
2.4.3



More information about the CRIU mailing list