소스 검색

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

fuse: set f_namemax in statfs result, fixes #2684
TW 5 년 전
부모
커밋
0a47e3e160
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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):