1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 06:31:58 +00:00

fuse: set f_namemax in statfs result, fixes #2684

setting it to 255 for now (as seen on Linux / ext4),
better than the default 0.

the attribute is present since llfuse 1.3.0, which is
the minimum requirement currently anyway.
This commit is contained in:
Thomas Waldmann 2020-04-12 21:05:38 +02:00
parent 27bf0220ac
commit 0ab987d5a9

View file

@ -540,6 +540,7 @@ def statfs(self, ctx=None):
stat_.f_files = 0
stat_.f_ffree = 0
stat_.f_favail = 0
stat_.f_namemax = 255 # == NAME_MAX (depends on archive source OS / FS)
return stat_
def getattr(self, inode, ctx=None):