[CRIU] [PATCH 1/2] zdtm.py: also check that sharing options are restored for mounts

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Mon Jun 25 15:53:36 MSK 2018


We already check (root, mountpoint) pairs preserve, do the same for
(root, mountpoint, shared, slave) fours.

Signed-off-by: Pavel Tikhomirov <ptikhomirov 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 c795490ae..631e0c2ce 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1326,7 +1326,7 @@ do_sbs = False
 
 		cmounts = []
 		try:
-			r = re.compile("^\S+\s\S+\s\S+\s(\S+)\s(\S+)")
+			r = re.compile("^\S+\s\S+\s\S+\s(\S+)\s(\S+)\s\S+\s[^-]*?(shared)?[^-]*?(master)?[^-]*?-")
 			for m in open("/proc/%s/root/proc/%s/mountinfo" % (test.getpid(), pid)):
 				cmounts.append(r.match(m).groups())
 		except IOError as e:
-- 
2.17.0



More information about the CRIU mailing list