statfs sample: add missing locking
parent
e78223ecee
commit
fac69e018f
|
@ -78,6 +78,9 @@ func dirAttrs() fuseops.InodeAttributes {
|
|||
}
|
||||
|
||||
func (fs *statFS) fileAttrs() fuseops.InodeAttributes {
|
||||
fs.mu.Lock()
|
||||
defer fs.mu.Unlock()
|
||||
|
||||
return fs.cannedStatResponse
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue