MCPcopy Create free account
hub / github.com/borgbackup/borg / process_fifo

Method process_fifo

src/borg/archive.py:1336–1349  ·  view source on GitHub ↗
(self, *, path, parent_fd, name, st, strip_prefix)

Source from the content-addressed store, hash-verified

1334 return status
1335
1336 def process_fifo(self, *, path, parent_fd, name, st, strip_prefix):
1337 with self.create_helper(path, st, "f", strip_prefix=strip_prefix) as (
1338 item,
1339 status,
1340 hardlinked,
1341 hl_chunks,
1342 ): # fifo
1343 if item is None:
1344 return status
1345 with OsOpen(path=path, parent_fd=parent_fd, name=name, flags=flags_normal, noatime=True) as fd:
1346 with backup_io("fstat"):
1347 st = stat_update_check(st, os.fstat(fd))
1348 item.update(self.metadata_collector.stat_attrs(st, path, fd=fd))
1349 return status
1350
1351 def process_dev(self, *, path, parent_fd, name, st, dev_type, strip_prefix):
1352 with self.create_helper(path, st, dev_type, strip_prefix=strip_prefix) as (

Callers

nothing calls this directly

Calls 5

create_helperMethod · 0.95
OsOpenFunction · 0.85
stat_update_checkFunction · 0.85
stat_attrsMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected