1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 17:57:59 +00:00

fuse: remove unneeded version check and compat code

we require >= 1.3 now anyway, see setup.py.
This commit is contained in:
Thomas Waldmann 2020-04-12 00:43:43 +02:00
parent 392bc3e3b1
commit 33519263ac

View file

@ -8,7 +8,6 @@
import time
from collections import defaultdict
from signal import SIGINT
from distutils.version import LooseVersion
import llfuse
@ -28,14 +27,9 @@
# Does this version of llfuse support ns precision?
have_fuse_xtime_ns = hasattr(llfuse.EntryAttributes, 'st_mtime_ns')
fuse_version = LooseVersion(getattr(llfuse, '__version__', '0.1'))
if fuse_version >= '0.42':
def fuse_main():
return llfuse.main(workers=1)
else:
def fuse_main():
llfuse.main(single=True)
return None
def fuse_main():
return llfuse.main(workers=1)
# size of some LRUCaches (1 element per simultaneously open file)
# note: _inode_cache might have rather large elements - Item.chunks can be large!