Merge pull request #33587 from bergwolf/aufs
fix aufs mount option length calculation Upstream-commit: 226bf3e0d92511d20792b1dd1bf72fb3eb67b6a9 Component: engine
This commit is contained in:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user