| 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( |