mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-14 22:53:40 -04: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 only present since llfuse 1.3.0.
This commit is contained in:
parent
597f67c667
commit
d99a275da9
1 changed files with 2 additions and 0 deletions
|
|
@ -518,6 +518,8 @@ class FuseOperations(llfuse.Operations):
|
|||
stat_.f_files = 0
|
||||
stat_.f_ffree = 0
|
||||
stat_.f_favail = 0
|
||||
if hasattr(stat_, 'f_namemax'): # since llfuse 1.3.0
|
||||
stat_.f_namemax = 255 # == NAME_MAX (depends on archive source OS / FS)
|
||||
return stat_
|
||||
|
||||
def get_item(self, inode):
|
||||
|
|
|
|||
Loading…
Reference in a new issue