Browse code

Correct a comment in libcontainer Mount Namespace setup. Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)

Vishnu Kannan authored on 2014/05/10 04:01:29
Showing 1 changed files
... ...
@@ -36,7 +36,7 @@ func InitializeMountNamespace(rootfs, console string, container *libcontainer.Co
36 36
 		flag = syscall.MS_SLAVE
37 37
 	}
38 38
 	if err := system.Mount("", "/", "", uintptr(flag|syscall.MS_REC), ""); err != nil {
39
-		return fmt.Errorf("mounting / as slave %s", err)
39
+		return fmt.Errorf("mounting / with flags %X %s", (flag | syscall.MS_REC), err)
40 40
 	}
41 41
 	if err := system.Mount(rootfs, rootfs, "bind", syscall.MS_BIND|syscall.MS_REC, ""); err != nil {
42 42
 		return fmt.Errorf("mouting %s as bind %s", rootfs, err)