Skip to content

Commit

Permalink
runtimetest: fix mounts check
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Ma Shimiao committed Jun 9, 2017
1 parent bbf9886 commit 475ef2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/runtimetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,11 @@ func validateMountsExist(spec *rspec.Spec) error {
}

for _, specMount := range spec.Mounts {
if specMount.Type == "bind" || specMount.Type == "rbind" {
logrus.Warnf("%v is bind mount, check is not supported yet", specMount.Destination)
continue
}

found := false
for _, sysMount := range mountsMap[filepath.Clean(specMount.Destination)] {
if err := mountMatch(specMount, sysMount); err == nil {
Expand Down

0 comments on commit 475ef2c

Please sign in to comment.