Browse Source

Merge pull request #33587 from bergwolf/aufs

fix aufs mount option length calculation
Brian Goff 8 years ago
parent
commit
226bf3e0d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      daemon/graphdriver/aufs/aufs.go

+ 1 - 1
daemon/graphdriver/aufs/aufs.go

@@ -573,7 +573,7 @@ func (a *Driver) aufsMount(ro []string, rw, target, mountLabel string) (err erro
 
 	offset := 54
 	if useDirperm() {
-		offset += len("dirperm1")
+		offset += len(",dirperm1")
 	}
 	b := make([]byte, syscall.Getpagesize()-len(mountLabel)-offset) // room for xino & mountLabel
 	bp := copy(b, fmt.Sprintf("br:%s=rw", rw))