Skip to content

Commit

Permalink
cgofuse: update handle's IO lock comment
Browse files Browse the repository at this point in the history
  • Loading branch information
djdv committed Dec 21, 2022
1 parent 2b4925f commit 0e2c51f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/filesystem/cgofuse/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ type (
// NOTE: PID omitted as not used.
}
fileHandle struct {
ioMu sync.Mutex // TODO: name and responsibility; currently applies to the position cursor
// TODO: Our path based locks should be enough to make this redundant,
// however, the underlying `fs.FS` files should expose this mechanism itself.
// (So that cross API locks can be possible. E.g. FUSE+9P accessing the same `fs.File`)
ioMu sync.Mutex
goFile fs.File
}
seekerFile interface {
Expand Down

0 comments on commit 0e2c51f

Please sign in to comment.