Skip to content

Commit 475ef2c

Browse files
author
Ma Shimiao
committed
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 <mashimiao.fnst@cn.fujitsu.com>
1 parent bbf9886 commit 475ef2c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cmd/runtimetest/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,11 @@ func validateMountsExist(spec *rspec.Spec) error {
579579
}
580580

581581
for _, specMount := range spec.Mounts {
582+
if specMount.Type == "bind" || specMount.Type == "rbind" {
583+
logrus.Warnf("%v is bind mount, check is not supported yet", specMount.Destination)
584+
continue
585+
}
586+
582587
found := false
583588
for _, sysMount := range mountsMap[filepath.Clean(specMount.Destination)] {
584589
if err := mountMatch(specMount, sysMount); err == nil {

0 commit comments

Comments
 (0)