Merge pull request #5108 from ThomasWaldmann/fuse-statfs-fix-namemax

fuse: set f_namemax in statfs result, fixes #2684
This commit is contained in:
TW 2020-04-12 22:11:22 +02:00 committed by GitHub
commit 0a47e3e160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -540,6 +540,7 @@ class FuseOperations(llfuse.Operations, FuseBackend):
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):