Closed joscarsson closed 4 years ago
FUSE file systems are expected to protect their own data structures, unless the -s
switch is passed which instructs the FUSE layer to serialize requests. This is true of cgofuse as well.
I will add this to the documentation.
Thanks!
Finally added this to the documentation: 6b4bd137607ec423738e89f860118447083a5352
Sorry for the long delay.
Thanks for a great library!
Perhaps it is obvious for others, but I was wondering about thread-safety and the different callback methods. Is it on the implementor of the
FileSystemInterface
to protect data structures, or is it done by the library? In thePassthrough
example, nothing is protected while inMemfs
all methods are protected behind a singleMutex
. Is it because the thread-safety is guaranteed by the underlying filesystem in thePassthrough
case?Would be nice to have some mention of this in the README/godoc reference.