Skip to content

Commit fa4720f

Browse files
committed
fix add ro mount for userattr-unmount unexpected timeout
Signed-off-by: Xinlin Ma <forblue.lin@gmail.com>
1 parent 8c27ce4 commit fa4720f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snapshots/overlay/overlayutils/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func NeedsUserXAttr(d string) (bool, error) {
145145
}
146146

147147
opts := []string{
148-
fmt.Sprintf("lowerdir=%s:%s,upperdir=%s,workdir=%s", filepath.Join(td, "lower2"), filepath.Join(td, "lower1"), filepath.Join(td, "upper"), filepath.Join(td, "work")),
148+
fmt.Sprintf("ro,lowerdir=%s:%s,upperdir=%s,workdir=%s", filepath.Join(td, "lower2"), filepath.Join(td, "lower1"), filepath.Join(td, "upper"), filepath.Join(td, "work")),
149149
"userxattr",
150150
}
151151

0 commit comments

Comments
 (0)