Explorar o código

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

fuse: set f_namemax in statfs result, fixes #2684
TW %!s(int64=5) %!d(string=hai) anos
pai
achega
0a47e3e160
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/borg/fuse.py

+ 1 - 0
src/borg/fuse.py

@@ -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):