From fee1bbd79ef8767ed149c1b1af4a39ad35e07772 Mon Sep 17 00:00:00 2001 From: Vishnu Kannan Date: Fri, 9 May 2014 19:01:29 +0000 Subject: [PATCH] Correct a comment in libcontainer Mount Namespace setup. Docker-DCO-1.1-Signed-off-by: Vishnu Kannan (github: vishh) --- pkg/libcontainer/mount/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/libcontainer/mount/init.go b/pkg/libcontainer/mount/init.go index cfe61d1532..2d1f6516f0 100644 --- a/pkg/libcontainer/mount/init.go +++ b/pkg/libcontainer/mount/init.go @@ -36,7 +36,7 @@ func InitializeMountNamespace(rootfs, console string, container *libcontainer.Co flag = syscall.MS_SLAVE } 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 { return fmt.Errorf("mouting %s as bind %s", rootfs, err)