From 7ab0fc85b76d8bc01d71e5ec5aea8f0cb07987f8 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Fri, 9 Jun 2017 17:21:48 +0800 Subject: [PATCH] runtimetest: fix mounts check Even if bind mount succeed, there will not any bind or rbind key word in type of options of mount. So, we can not make sure if bind mount succeed. It'd better to skip bind mount check Signed-off-by: Ma Shimiao --- cmd/runtimetest/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/runtimetest/main.go b/cmd/runtimetest/main.go index 938fa2796..776f2125b 100644 --- a/cmd/runtimetest/main.go +++ b/cmd/runtimetest/main.go @@ -557,6 +557,11 @@ func validateMountsExist(spec *rspec.Spec) error { } for _, specMount := range spec.Mounts { + if specMount.Type == "bind" || specMount.Type == "rbind" { + // TODO: add bind or rbind check. + continue + } + found := false for _, sysMount := range mountsMap[filepath.Clean(specMount.Destination)] { if err := mountMatch(specMount, sysMount); err == nil {