2
0
Эх сурвалжийг харах

Merge pull request #480 from alex3d/patch-1

Optimized fuse inode cache
TW 9 жил өмнө
parent
commit
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):