statfs sample: add missing locking

geesefs-0-30-9
Michael Stapelberg 2 years ago
parent e78223ecee
commit fac69e018f
  1. 3
      samples/statfs/statfs.go

@ -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…
Cancel
Save