Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
PR #1741: copy large files instead of hard linking
Browse files Browse the repository at this point in the history
  • Loading branch information
reidpr authored Oct 19, 2023
1 parent 5000f03 commit 7b6544f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/build_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ def large_prepare(self):
def large_restore(self):
"Hard link my file to the copy in large file storage."
target = ch.storage.build_large_path(self.large_name)
ch.DEBUG("large file: %s: linking: %s" % (self.path_abs, self.large_name))
self.path_abs.hardlink(target)
ch.DEBUG("large file: %s: copying: %s" % (self.path_abs, self.large_name))
ch.copy2(target, self.path_abs)

def pickle(self):
(self.image_root // PICKLE_PATH) \
Expand Down

0 comments on commit 7b6544f

Please sign in to comment.