From 772f5495b7bb03a8fb97f9ae5fb5fa97c98a87b3 Mon Sep 17 00:00:00 2001 From: hsinko <21551195@zju.edu.cn> Date: Mon, 29 Feb 2016 21:32:30 -0800 Subject: [PATCH] folders->directories Signed-off-by: hsinko <21551195@zju.edu.cn> --- daemon/graphdriver/aufs/aufs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/graphdriver/aufs/aufs.go b/daemon/graphdriver/aufs/aufs.go index 2d73d282fc..71ea423424 100644 --- a/daemon/graphdriver/aufs/aufs.go +++ b/daemon/graphdriver/aufs/aufs.go @@ -233,6 +233,8 @@ func (a *Driver) Create(id, parent, mountLabel string) error { return nil } +// createDirsFor creates two directories for the given id. +// mnt and diff func (a *Driver) createDirsFor(id string) error { paths := []string{ "mnt", @@ -243,6 +245,9 @@ func (a *Driver) createDirsFor(id string) error { if err != nil { return err } + // Directory permission is 0755. + // The path of directories are /mnt/ + // and /diff/ for _, p := range paths { if err := idtools.MkdirAllAs(path.Join(a.rootPath(), p, id), 0755, rootUID, rootGID); err != nil { return err