浏览代码

Merge pull request #5712 from vishh/fix_typo

Correct a libcontainer Mount Namespace setup comment.
Michael Crosby 11 年之前
父节点
当前提交
16fe76e770
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/libcontainer/mount/init.go

+ 1 - 1
pkg/libcontainer/mount/init.go

@@ -36,7 +36,7 @@ func InitializeMountNamespace(rootfs, console string, container *libcontainer.Co
 		flag = syscall.MS_SLAVE
 		flag = syscall.MS_SLAVE
 	}
 	}
 	if err := system.Mount("", "/", "", uintptr(flag|syscall.MS_REC), ""); err != nil {
 	if err := system.Mount("", "/", "", uintptr(flag|syscall.MS_REC), ""); err != nil {
-		return fmt.Errorf("mounting / as slave %s", err)
+		return fmt.Errorf("mounting / with flags %X %s", (flag | syscall.MS_REC), err)
 	}
 	}
 	if err := system.Mount(rootfs, rootfs, "bind", syscall.MS_BIND|syscall.MS_REC, ""); err != nil {
 	if err := system.Mount(rootfs, rootfs, "bind", syscall.MS_BIND|syscall.MS_REC, ""); err != nil {
 		return fmt.Errorf("mouting %s as bind %s", rootfs, err)
 		return fmt.Errorf("mouting %s as bind %s", rootfs, err)