mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-19 02:29:19 -05:00
fuse: add thread/async safety warning
This commit is contained in:
parent
646f279062
commit
4eed3ecd5b
1 changed files with 15 additions and 0 deletions
|
|
@ -1,3 +1,18 @@
|
|||
"""
|
||||
FUSE filesystem implementation for `borg mount`.
|
||||
|
||||
IMPORTANT
|
||||
=========
|
||||
|
||||
This code is only safe for single-threaded and synchronous (non-async) usage.
|
||||
|
||||
- llfuse is synchronous and used with workers=1, so there is only 1 thread,
|
||||
and we are safe.
|
||||
- pyfuse3 uses Trio, which only uses 1 thread, but could use this code in an
|
||||
asynchronous manner. However, as long as we do not use any asynchronous
|
||||
operations (like using "await") in this code, it is still de facto
|
||||
synchronous, and we are safe.
|
||||
"""
|
||||
import errno
|
||||
import functools
|
||||
import io
|
||||
|
|
|
|||
Loading…
Reference in a new issue