mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-12 05:32:30 -04:00
fuse2: remove path from packed inodes to save memory
This commit is contained in:
parent
a842234843
commit
8eb676b047
1 changed files with 5 additions and 1 deletions
|
|
@ -97,7 +97,11 @@ class FuseBackend:
|
|||
if item is None:
|
||||
self.inodes.pop(ino, None)
|
||||
else:
|
||||
self.inodes[ino] = msgpack.packb(item.as_dict())
|
||||
# Remove path from the item dict before packing to save memory.
|
||||
# The path is already encoded in the DirEntry tree structure
|
||||
item_dict = item.as_dict()
|
||||
item_dict.pop("path", None)
|
||||
self.inodes[ino] = msgpack.packb(item_dict)
|
||||
|
||||
def _create_filesystem(self):
|
||||
self.set_inode(self.root.ino, self.default_dir)
|
||||
|
|
|
|||
Loading…
Reference in a new issue