From d18f5c3808f8df40fb8e3e153887e921bc71103b Mon Sep 17 00:00:00 2001 From: unclejack Date: Tue, 3 Feb 2015 18:30:37 +0200 Subject: [PATCH] daemon/graphdriver/aufs: enable direct io Signed-off-by: Cristian Staretu --- daemon/graphdriver/aufs/aufs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/graphdriver/aufs/aufs.go b/daemon/graphdriver/aufs/aufs.go index 5e9d747f2a..3ac47aed19 100644 --- a/daemon/graphdriver/aufs/aufs.go +++ b/daemon/graphdriver/aufs/aufs.go @@ -421,7 +421,7 @@ func (a *Driver) aufsMount(ro []string, rw, target, mountLabel string) (err erro // Mount options are clipped to page size(4096 bytes). If there are more // layers then these are remounted individually using append. - b := make([]byte, syscall.Getpagesize()-len(mountLabel)-50) // room for xino & mountLabel + b := make([]byte, syscall.Getpagesize()-len(mountLabel)-54) // room for xino & mountLabel bp := copy(b, fmt.Sprintf("br:%s=rw", rw)) firstMount := true @@ -445,7 +445,7 @@ func (a *Driver) aufsMount(ro []string, rw, target, mountLabel string) (err erro } if firstMount { - data := label.FormatMountLabel(fmt.Sprintf("%s,xino=/dev/shm/aufs.xino", string(b[:bp])), mountLabel) + data := label.FormatMountLabel(fmt.Sprintf("%s,dio,xino=/dev/shm/aufs.xino", string(b[:bp])), mountLabel) if err = mount("none", target, "aufs", 0, data); err != nil { return }