fix add ro mount for userattr-unmount unexpected timeout

Signed-off-by: Xinlin Ma <forblue.lin@gmail.com>
This commit is contained in:
Xinlin Ma 2022-05-27 12:30:41 +02:00
parent 8c27ce4193
commit fa4720fa16

View File

@ -145,7 +145,7 @@ func NeedsUserXAttr(d string) (bool, error) {
} }
opts := []string{ opts := []string{
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")), 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")),
"userxattr", "userxattr",
} }