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

copy large files instead of hard linking #1741

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/build_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,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