소스 검색

Merge pull request #480 from alex3d/patch-1

Optimized fuse inode cache
TW 9 년 전
부모
커밋
c4588e4eb4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      borg/fuse.py

+ 1 - 1
borg/fuse.py

@@ -28,7 +28,7 @@ class ItemCache:
 
     def get(self, inode):
         self.fd.seek(inode - self.offset, io.SEEK_SET)
-        return next(msgpack.Unpacker(self.fd))
+        return next(msgpack.Unpacker(self.fd, read_size=512))
 
 
 class FuseOperations(llfuse.Operations):