MCPcopy
hub / github.com/borgbackup/borg / __init__

Method __init__

src/borg/hlfuse.py:85–113  ·  view source on GitHub ↗
(self, manifest, args, repository)

Source from the content-addressed store, hash-verified

83 """Virtual filesystem based on archive(s) to provide information to fuse"""
84
85 def __init__(self, manifest, args, repository):
86 self._args = args
87 self.numeric_ids = args.numeric_ids
88 self._manifest = manifest
89 self.repo_objs = manifest.repo_objs
90 self.repository = repository
91
92 self.default_uid = os.getuid()
93 self.default_gid = os.getgid()
94 self.default_dir = None
95
96 self.current_ino = 0
97 self.inodes = {} # node.ino -> packed item
98 self.root = self._create_node()
99 self.pending_archives = {} # DirEntry -> Archive
100
101 self.allow_damaged_files = False
102 self.versions = False
103 self.uid_forced = None
104 self.gid_forced = None
105 self.umask = 0
106 self.archive_root_dir = {} # archive ID --> directory name
107
108 # Cache for file handles
109 self.handles = {}
110 self.handle_count = 0
111
112 # Cache for chunks (moved from ItemCache)
113 self.chunks_cache = LRUCache(capacity=10)
114
115 def _create_node(self, item=None, parent=None):
116 self.current_ino += 1

Callers

nothing calls this directly

Calls 2

_create_nodeMethod · 0.95
LRUCacheClass · 0.85

Tested by

no test coverage detected