Skip to content

Commit 7ab0fc8

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 175af97 commit 7ab0fc8

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
@@ -557,6 +557,11 @@ func validateMountsExist(spec *rspec.Spec) error {
557557
}
558558

559559
for _, specMount := range spec.Mounts {
560+
if specMount.Type == "bind" || specMount.Type == "rbind" {
561+
// TODO: add bind or rbind check.
562+
continue
563+
}
564+
560565
found := false
561566
for _, sysMount := range mountsMap[filepath.Clean(specMount.Destination)] {
562567
if err := mountMatch(specMount, sysMount); err == nil {

0 commit comments

Comments
 (0)