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

Method __init__

src/borg/fuse.py:481–488  ·  view source on GitHub ↗
(self, manifest, args, decrypted_repository)

Source from the content-addressed store, hash-verified

479 """Export archive as a FUSE filesystem"""
480
481 def __init__(self, manifest, args, decrypted_repository):
482 llfuse.Operations.__init__(self)
483 FuseBackend.__init__(self, manifest, args, decrypted_repository)
484 self.decrypted_repository = decrypted_repository
485 data_cache_capacity = int(os.environ.get("BORG_MOUNT_DATA_CACHE_ENTRIES", os.cpu_count() or 1))
486 logger.debug("mount data cache capacity: %d chunks", data_cache_capacity)
487 self.data_cache = LRUCache(capacity=data_cache_capacity)
488 self._last_pos = LRUCache(capacity=FILES)
489
490 def sig_info_handler(self, sig_no, stack):
491 logger.debug(

Callers

nothing calls this directly

Calls 4

LRUCacheClass · 0.85
debugMethod · 0.80
__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected